36
Tool change module
:008
SF10
;stores tool number into register F10
LRH051
;loads the current (old) T code
=LF10
;compares it with the new tool code
LRH001
;if they are equal the new T code fed back
to
SRH051
;the NC
SF10
;stores the T code into register F10
R
;returns from module :008
Z
LRH002
;before it stops the spindle loads and saves
SF14
;the
current
spindle
code
(M3, M4,
M5)
5
C005
;calls spindle module with the code 5
LRH001
;loads new tool code
BCD
;converts it into BCD for display purpose
PBM"!TOOL"
;blinking
message
on display "TOOL
[OP]"
C150
;waiting for START button
LF14
;loads the saved spindle code
C005
;restores spindle rotation
LRH001
;the new T code is fed back to the NC
SRH051
SF10
;saves
the
new
T
code into register
F10
R
;end of module :008
Spindle speed module
:009
LRH000
;loads the programmed S value NC -> PLC
SRH050
;actual speed fed back to the NC
R
;end of module :009
Module of other M codes
:010
;no executable M function assigned
R
;return
End of program (M02, M30) module
:011