Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 391
Examples
If Reset is set, the instruction sets Out=ResetValue. If Reset is cleared, the
instruction sets Out=In when In> LastMaximum. Otherwise, the instruction sets
Out= LastMaximum.
Function Block
Structured Text
MAXCTag.In := input_value;
MAXCTag.Reset := reset_input;
MAXCTag.ResetValue := reset_value;
MAXC(MAXCTag);
result := MAXCTag.Out;
See also
Common Attributes on page 537
Structured Text Syntax on page 508