GSK218M CNC System Connection and PLC Manual
35
Programming
RD
X002.1
AND.NOT
X002.2
RD.NOT
F100.3
AND
F100.6
OR.STK
RD R022.1
WRT
Y003.7
As the above figure, there are three branch circuit
①
,
②
,
from left bus to the node N1, among
③
which
①
,
is circuit block
②
in series; when there is the serial circuit block in the parallel from the
bus to node or between nodes, the following branch end uses RD instruction except for the first
branch. The branch is not serial circuit block to use OR instruction.
③
OR.STK and AND.STK are instructions without operation components, indicating the OR, AND
relationship between circuit blocks.
4.5 AND.STK instruction
Instruction and function
Instruction Function
AND.STK
Sets the logical product of ST0 and ST1, and shifts the
stack register right by one bit.
Instruction specification
z
When the branch loop (parallel loop block) is connected to the previous loop in series, use
AND.STK instruction. The starting point of branch uses RD, RD.NOT instruction, after the
parallel loop block ends, AND,STK instruction is connected to previous loop in series.
z
AND.STK a sole instruction without other address.
Programming
RD
X002.1
OR.NOT
F100.3
OR.NOT X011.0
RD
R100.0
AND.NOT
R100.3
RD
G003.3
AND
R009.7
RD
←
⑴
AND.STK
←
⑵
WRT
Y003.7
As the above figure and instruction list, RD
⑴
reports the circuit block in series is connected
parallely; AND.STK
⑵
reports the block and are connected in series.
①
②
Node N1
Block
①
Block
②
Summary of Contents for 218M
Page 3: ...GSK 218M CNC System Connection and PLC Manual...
Page 15: ...GSK218M CNC System Connection and PLC Manual 12 Volume one Programming...
Page 70: ...GSK218M CNC System Connection and PLC Manual 67 Volume Two Function...
Page 140: ...GSK218M CNC System Connection and PLC Manual 137 Volume Three Operation...
Page 160: ...GSK218M CNC System Connection and PLC Manual 157 Volume Four Connection...