A SERVICE OF

logo

DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-98
Program Example 2:
1. When X0 is triggered, WSFRP instruction shifts X20~X27 into data stack Y20~Y37 and
Y20~Y37 also shift to the right with a group of 4 devices.
2. The figure below illustrates the right shift of the devices in one scan
n Y27~Y20 carry
o Y37~Y30 Y27~Y20
p X27~X20 Y37~Y30 completed
X0
WSFRP K1X20 K4 K2K1Y20
When using Kn device, the specified Kn value
(digit) must be the same.
X27 X26 X25 X24
Y37 Y36 Y35 Y34 Y33 Y32 Y31 Y30 Y27 Y26 Y25 Y24 Y23 Y22 Y21 Y20
1
2
3
2 digits (8 devices)in a group
shift to the right
Carry
X23 X22 X21 X20