Bit-shift instructions
584
Part III FP Instructions
For Relay T/C Register Constant
LeftDirection,
DataInput,
ShiftTrigger,
Reset
X Y R L T C - - - -
Carry - Y R L T C - - - -
d1, d2 - WY WR WL SV EV DT LD FL -
Operands
Example
In this example the function has been programmed in ladder diagram (LD) and structured text
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable enable_leftShift is set to TRUE, the function shifts left, else it shifts right.