July 2013 8.1 Display and operation 1247
M/S/T/Q transfer
during block scan
The PLC can collect the M/S/T/Q signals during the block scan in order to
output them after the block scan ends:
Set MP7681 to a value other than zero so that after a block scan the
message RESTORE MACHINE STATUS is displayed and output with the M/S/T/
Q signals.
With the external start key, activate the output of the displayed signals. As
long as these signals are being output, M4161 remains set.
In the system files PLC:\MGROUPS.SYS and PLC:\MSPLIT.SYS, define the
M functions to be output after a block scan.
The M/S/T/Q signals are output in this sequence (exception: see the
ORDER=PRIO instruction):
1. M function that was defined with MFIRST
2. M/S/T/Q signals in the programmed sequence
3. M function that was defined with MLAST
After RESTORE MACHINE STATUS, the control checks whether the status set by
the PLC agrees with the status calculated by the NC. No error message
appears if this is the case; if for example another traverse range is selected in
a tool change macro but the original traverse range is set at the end of the
macro. If the NC status and PLC status do not match, the error message
PLC function not permitted appears.
In order to run the above named functions on machines that have executed
them through the PLC, leading to the PLC function not permitted error
message, as an alternative there are functions that can be executed via an NC
macro:
FN17: SYSWRITE ID20 NR13, to switch between two spindles
FN31: RANGE SELECT, to switch the traverse range (RANGE), the axis
assignment (ASSIGNED), and the axis display (DISPLAYED)
FN32: PLC PRESET, to execute a PLC datum shift
The functions are only visible with code number 555343.
Function NC PLC
Spindle switch-over FN17: SYSWRITE ID20 NR13 Module 9175
Range of traverse, axis
assignment, axis display
FN31: RANGE SELECT Module 9152
Datum shift FN32: PLC PRESET Module 9230