10
other way ground, never call modules from the PLC program, that are used by
subroutines :005 - :019.
$"
At the time of escaping from the modules, the PLC
$$$$
NC data transfer register of the
particular module must be loaded to the current value (SRHnnn), because those
registers are used by the NC for its internal administration and for the displays!
:005
- Spindle START/STOP module
It is called when the NC executes command M03, M04, M19 or M05. In entering in
the module, the contents of registers OP and RH002 will be 3, 4, 19 or 5 in
accordance with commands M03, M04, M19 or M05, respectively. Prior to escaping
from the module, register RH052 must be set.
Mandatory activities: spindle start, direction reversal, stop or orientation.
Prohibited instructions: none.
:006
- Coolant module (M08, M09)
Called whenever the NC executes command M08, M09. At the time of entering in
the module, the contents of registers OP and RH003 will be 8 or 9 in accordance with
commands M08 and M09, respectively. Prior to escaping from the module, register
RH053 must be set.
Mandatory activities: turning the coolant on/off.
Prohibited instructions: none.
:007
- Gear change module
Called whenever the NC executes commands M11, M12, M13, M14, M15, M16,
M17 or M18. At the time of entering in the module, the contents of registers OP and
RH004 will be 0BH-12H in accordance with commands M11-M18, respectively.
Prior to escaping from the module, register RH054 must be set.
Mandatory activities: execution of a gear range selection.
Prohibited instructions: none.
:008
- Tool change module
The module is called when T command is executed in the part program. According
to parameter setting the OP register contains the programmed tool number (when
parameter 0101 MANUAL=1), or the tool pot number and the direction of new pot
search (when parameter 0101 MANUAL =0). In the latest case if the programmed
tool is not registered in the tool pot table directly the tool number is transferred to the
PLC.
The meaning of
OP is determined by it`s bit No. 15.
case a: if bit 15=0: tool number is in the OP register
then bit 14=0,
and bit 13 - bit 0 = tool number, programmed on address T
case b: if bit 15=1:the pot number of the tool referred on address T is in the OP
register
bit 14 tells the direction of tool pot search