VA Motion Controller Programming Manual
168
As a result, when the value of the pin
IN
or
N
changes, it
is shifted left. Move left by two, as follows
Value before left shift
1 1 1 0 0 0 1 1
Value after left shift
1 0 0 0 1 1 0 0
Funtion and Action examples
The address V536 ( BYTE ) the value of the
left . 3 bit
When the contact C300 is ON when this
instruction is executed, the address V535 all
bits to the left . 3 bits:
Execution result: 1 6#01 moves
left 3 bits output 16 #80
10.1.38 SHR (right shift instruction )
LD, FBD programming language
Function: The instruction is used to shift the input value to the right, the right end of the
data is shifted out, and the left end is filled with 0 .
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 SHR instruction