Installation manual
CNC 8060
CNC 8065
PLC PROGRAMMING.
4.
(REF: 1402)
·273·
Summary programming commands.
Consulting instructions.
• Simple consulting instructions.
I1··1024 Inputs.
O1··1024 Outputs.
M1··8192 Marks.
MSG1··1024 Messages.
ERR1··1024 Errors.
T1··512 Timers (status).
C1··256 Counters (status).
B0··31 R1··1024 Register bit.
CLK Clocks.
M <CNC-PLC> Marks for CNC-PLC communication.
• Flank detection instructions.
DFU Up flank detection.
DFD Down flank detection.
• Comparing instructions.
CPS For comparisons.
Operators.
NOT Negates the result of the consultation.
AND Logic function "AND".
OR Logic function "OR”.
XOR Logic "Exclusive OR" function.
\ Line feed.
( ) Consulting instruction whose value is always "1".
Action instructions.
• Assignment binary action instructions.
• Conditional binary action instructions.
= SET If expression = "1", it sets the resource to "1".
= RES If expression = "1", it sets the resource to "0".
= CPL If expression = "1", it complements the resource.
• Sequence breaking action instructions.
= JMP L Unconditional jump.
= CAL Call to a subroutine.
= RET Return or end of a subroutine.
• Arithmetic action instructions.
= MOV Move.
= NGU R1··1024 Complements the bits of a register.
= NGS R1··1024 Register sign change.
= ADS Add.
= I 1/1024 = O 1/1024 = M 1/8192
= MSG 1/1024 = ERR 1/1024 = TEN 1/512
= TRS 1/512 = TGn 1/512 #/R = CUP 1/256
= CDW 1/256 = CEN 1/256 = CPR 1/256 #/R
= B 0/31 R 1/499 = CNC-PLC mark