·492·
Installation manual
CNC 8055
CNC 8055i
12.
LOGIC CNC INPUTS AND OUTPUTS
SOFT: V02.2X
General logic inputs
PLCABORT (M5022)
The PLC sets this signal high to indicate to the CNC that it must stop the PLC axes. It also cancels
the rest of the movement and the possible blocks that might have been sent from the PLC.
Once this process is ended, the CNC automatically deactivates this signals.
The following example shows how the axes controlled by the PLC may be moved by means of
external push-buttons.
On power-up, the CNC sets this mark to "0".
PLCREADY (M5023)
This mark indicates the PLC status.
PLCREADY = 0 PLC stopped.
PLCREADY = 1 PLC running.
If this mark is set to 0. The PLC program will stop.
This mark MUST be set to 1 so the CNC allows the spindle and/or the axes to be moved. Otherwise,
it will issue the corresponding error message.
INT1 (M5024) INT2 (M5025) INT3 (M5026) INT4 (M5027)
The PLC sets one of these signals to logic state "1" to "tell" the CNC to interrupt the execution of
the currently running program and jump to execute the interruption subroutine whose number is
indicated in the general machine parameter "INT1SUB" (P35), "INT2SUB" (P36), "INT3SUB" (P37)
or "INT4SUB" (P38) respectively.
All these inputs have the same priority and are active by level (not by flank or edge). Only the first
one being detected high ("1") will be attended to.
The status of these signals "INT1", "INT2", "INT3", "INT4" are not stored; therefore, it is
recommended to activate these marks at the PLC by means of an instruction of the "=SET" type.
These marks will be deactivated automatically when starting the execution of the corresponding
subroutine.
An interruption subroutine cannot, in turn, be interrupted.
BLKSKIP1 (M5028)
The PLC sets this signal at a high logic level to tell the CNC that the block skip condition "/ or /1"
is met, therefore, the blocks which have this block skip condition will not be executed.
BLKSKIP2 (M5029)
The PLC sets this signal at a high logic level to tell the CNC that the block skip condition "/ or /2"
is met, therefore, the blocks which have this block skip condition will not be executed.
BLKSKIP3 (M5030)
The PLC sets this signal at a high logic level to tell the CNC that the block skip condition "/ or /3"
is met, therefore, the blocks which have this block skip condition will not be executed.
M01STOP (M5031)
The PLC sets this signal at a high logic level to tell the CNC to stop the execution of the part program
when the auxiliary (miscellaneous) M01 function is executed.
Sample
The PLC will order to move the "C" axis by 1 meter every time the "C+" button is pressed, but stopping
it when this key is released.
DEF CPLUS I2
Symbol to define the "C+" push button.
DFU CPLUS =CNCEX (G91 G1 C1000 F3000, M1)
Pressing the button commands it to move 1000 mm.
DFD CPLUS = SET PLCABORT
Releasing the button aborts the movement.