GSK218M CNC System Connection and PLC Manual
50
Perform the short path rotation, and calculate the postion number of previous one position of goal
position.
Current position number S2=1, position number of rotation graduation S1=12,RNO=1,DIR=1
POS=1,INC=0:
When S3=10 goal position is A, and ACT=1, S4=11,W=1.
When S3=8 goal position is B, and ACT=1, S4=9,W=1.
When S3=5 goal position is C, and ACT=1, S4=4,W=0.
When S3=3 goal position is D, and ACT=1, S4=2,W=0.
5.17 SFT(shift register)
Function:
The instruction shifts 1-byte (8-bit) data by a bit to the left or right. Note that W=1 whendata “1” is
shifted from the left extremity (bit 8) in left shift or from the right extremity (bit 0) in right shift.
Format:
ROT
12
S2
S3
S4
SFT
S1
Address of
shift data
Length
Format
designation
(W)
ACT
DIR
CONT
RST
RNO
ACT
(W)
DIR
POS
INC