VA Motion Controller Programming Manual
166
The value before the right movement
Funtion and Action examples
The value 16 # 01 ( BYTE )
rightward shift three
When the contact
C300
is
ON
when this
instruction is executed,
The address
V528
all the bits to the
right
3
bits:
Execution results:
1 6#01
Move
3
bits to
the right to save to
V530
:
10.1.36 SEL (Selection Command )
LD, FBD
programming language
Function: The
SEL
instruction is used to select different input values based on two states
of a Boolean quantity.
OUT:=SEL ( IN, IN1 , IN2 )
Note : IL, ST language programming needs to insert variables IN, IN1, IN2 and OUT or use
constants in the current POU variable worksheet
Data type processed by
SEL
instruction
Result :
If IN=0, OUT=IN1;
If IN=1, OUT=IN2;
Funtion and Action examples