VA Motion Controller Programming Manual
165
Funtion and Action examples
The value
16 #01
(
BYTE
)
is shifted to the left by three digits
When the contact C300 is ON when this
instruction is executed,
Move all bits of address V525 to the left
by 3 bits:
Execution result: . 1 6 # 01 moves to the
left . 3 bit stored to V527 in
10.1.35 ROR (cyclic right shift instruction )
LD, FBD programming language
Function: The ROR instruction is used to cyclically shift the input value to the right.
Note : IL, ST language programming needs to insert variables IN1, IN2 and OUT or use
constants in the current POU variable worksheet
Data type processed by ROR instruction
Number of bits shifted right
As a result, when the value of the pin IN or N changes,
it is shifted to the right. As follows : shift two bits to the
right