Installation manual
CNC 8035
13.
PLC PROGRAMMING EXAMPLE
Main module.
(SOFT M: V15.3X)
(S
OFT T: V16.3X)
·414·
----- Treatment of the axis overtravel limit switches -----
I-LIMTX1 = LIMIT+1
I-LIMTX2 = LIMIT-1
I-LIMTY1 = LIMIT+2
I-LIMTY2 = LIMIT-2
I-LIMTZ1 = LIMIT+3
I-LIMTZ2 = LIMIT-3
----- Treatment of the machine reference (home) switches -----
I-REF0X = DECEL1
I-REF0Y = DECEL2
I-REF0Z = DECEL3
----- Message treatment -----
The PLC allows displaying the corresponding PLC message at the CNC screen by activating marks
MSG1 through MSG255. This text must be previously edited at the PLC message table.
The following example shows how to generate a message to remind the operator to home the axes
after powering the machine up.
(MANUAL OR MDI OR AUTOMAT) AND NOT (REFPOIN1 AND REFPOIN2 AND REFPOIN3) =
MSG5
The message (MSG5) appears in the JOG, MDI or Automatic modes and only when the axes of
the machine have not been referenced (homed). The CNC logic outputs "REFPOIN" indicate that
the axes have been homed. ----- Error treatment -----
----- Error message treatment -----
The PLC permits displaying the corresponding error message on the CNC screen by activating
marks ERR1 through ERR128 as well as interrupting the CNC program execution stopping the axes
and the spindle. The activation of any of these marks does not activate the external CNC Emergency
output.
Because the PLC program is not interrupted by these marks, it is advised to make it possible to
change their status via accessible external inputs; otherwise, the CNC will keep receiving the same
error at every PLC scan (cycle) thus preventing access to any PLC mode.
The text associated to the error message must be previously edited at the PLC error table.
The next example shows how to generate the X axis overtravel limit overrun error when one of the
overtravel limit switches is pressed.
NOT I-LIMTX1 OR NOT I-LIMTX2 = ERR10