Installation manual
CNC 8055
CNC 8055i
CONCEPTS
7.
SOFT: V02.2X
·381·
Machine safety related functions
PLC programming example.
7.16.2 Cycle start disabled when hardware errors occur.
If when pressing the [CYCLE-START] key, a hardware error is detected (Axes board error, CAN
board error, etc.), the CNC does not allow executing or simulating the program. When a hardware
error occurs, the corresponding message is displayed.
PRG
REA
()=CNCRD(OPMODA,R100,M1000)
Reading of the OPMODA variable.
B0R100 = M100
Indicator of program in execution.
;
DFU M100 = CNCRD(PRGN,R101,M1000) = CNCRD(MDISL,R102,M1000)
At the beginning of the execution, it reads the program being executed (CNCRD) and the speed limit
set by MDISL.
;
M100 = CNCRD(PRGSL,R103,M1000)
While executing, it reads the speed limit set by the CNC.
;
M100 AND CPS R101 NE R201 = M101
If there is a new program in execution, it activates mark M101.
;
M100 AND CPS R101 EQ R201 = M102
If it is the same program, it activates mark M102.
;
M101 AND CPS R102 EQ 0 = ERR10
If there is a new program in execution (M101) and the speed has not been limited with MDISL (R102),
it issues error 10. This error must be defined in the PLC messages.
;
M101 AND CPS R102 NE 0 = MOV R101 R201 = MOV R102 R202
If there is a new program in execution (M101) and the speed has been limited with MDISL (R102),
it copies the program number and the speed limit.
;
M102 AND CPS R102 NE 0 = MOV R102 R202
If the same program is in execution (M102) and the speed is limited again with MDIS (R102), it copies
the speed limit.
;
M100 AND CPS R202 LT R103 = CNCWR(R202,PLCSL,M1000)
If there is a program in execution (M100) and the speed limit with MDISL (R202) is smaller than the
limit by CNC (R103), it applies the limit by PLC (value set by MDISL).
;
M100 AND CPS R202 GT R103 = CNCWR(R210,PLCSL,M1000)
If there is a program in execution (M100) and the speed limit with MDISL (R202) is greater than the
limit by CNC (R103), it does not limit the speed by PLC (R210=0).
;
DFD M100 = CNCWR(R210,PLCSL,M1000) = CNCWR(R210,MDISL,M1000)
After the execution, it cancels the speed limit by PLC and initializes the MDISL variable.
;
END