Official GSK Agents in South Africa
Tel: +27 11 626 2720, [email protected]
GSK218MC Series Machining Center CNC System PLC & Installation Connection Manual
54
Volume I
Programming
Controllable condition:
Reset (RST):
RST=0 : Release the reset.
RST=1 : Reset W=0.
Execution code (ACT)
ACT
=
0: Do not execute ADD code, W keeps invariable.
ACT
=
1: Execute the ADD code.
Parameter:
Length : Specify the data length (1 byte or 2 bytes) and the specifying method of the
addend (constant or address).
Fig. 5-30-2
S1 : Specify the storage addend address.
S2 : The specifying method of the addend is determined by the specification of the Length.
S3 : Specify the output operation address.
Output:
W=0: Operation is normal.
W=1: Operation is abnormal.
When the add operation result exceeds the specified data length, W=1.
5.31 SUB (Binary Subtraction)
Function:
This code is used for the subtraction of the 1 byte or 2 bytes binary data. The minuend and the
subtraction output data should be set the storage address with the corresponding byte length.
Format:
Fig. 5-31-1