Rockwell Automation Publication 1756-RM006K-EN-P - November 2018 309
UPDN Structure
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction
does not execute and outputs are not
updated.
Default is set.
Initialize BOOL The initialize input request for the
instruction. When Initialize is set, the
instruction sets Out and the internal
accumulator to InitialValue.
Default is cleared.
InitialValue REAL The initialize value of the instruction.
Valid = any float
Default = 0.0
InPlus REAL The input added to the accumulator.
Valid = any float
Default = 0.0
InMinus REAL The input subtracted from the
accumulator.
Valid = any float
Default = 0.0
Hold BOOL The hold input request for the
instruction. When Hold is set and
Initialize is cleared, Out is held.
Default is cleared.
Output Parameter Data Type Description
EnableOut BOOL Indicates if instruction is enabled.
Cleared to false if Out overflows.
Out REAL The output of the instruction.
Structured Text
Operand Type Format Description
UPDN tag UP_DOWN_ACCUM Structure UPDN structure
See Structured Text Syntax for more information of the syntax of expressions
within structured text.