Bit-shift instructions
597
Part III FP Instructions
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start changes from FALSE to TRUE, the function is carried out. It rotates 4 bits
(corresponds to one position in a hexadecimal representation) to the left. At input n the constant 4
is assigned directly to the function. You may, however, declare an input variable in the POU header
instead.
LD
ST
When programming with structured text, enter the following:
IF DF(start) THEN
F126_DROL( n:= 4,
d=> data);
END_IF;