Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK218MC Series Machining Center CNC System PLC & Installation Connection Manual
44
Volume I
Programming
S3=5, S4
=
4 and W
=
0, when the objective position is C in ACT = 1.
S3=3, S4
=
2 and W
=
0 when the objective position is D in the ACT = 1.
5.20 SFT (Register Displacement/Shifting)
Function:
This code can be shifted 1 byte (8-bit) based upon the digits specifying by the code parameter
each time. The “1” that overflows from cycle shifting will be added from the negative direction, for
example, the top bit “1” is overflown when shifting to left, the lowest bit supplies “1”, vice versa.
Format:
Fig. 5-20-1
Controllable condition:
Specify the shifting direction (DIR)
DIR=0, left shift
DIR=1, right shift
State specifying (CONT)
CONT=0, Do not perform the cycle shifting
CONT=1, perform the cycle shifting
Reset (RST)
Reset shifting output data (W=1) is (W=0)
RST=0, W does not reset
RST=1, W resets (W=0)
Execution condition (ACT)
ACT=0, Do not perform the SFT code.
ACT=1, Perform the shifting, set ACT to 0 after the code is performed, if only 1 bit is
moved.