33
R
;return
PLC initialization module
:004
U405
;sets emergency state flag PLC -> NC
5
SRH052
;sets M5 status PLC -> NC
9
SRH053
;sets M9 status PLC -> NC
LF12
;loads last gear range code into OP
<11,
;if lower than 11, then sets 11 (M11)
11
Z
>14,
;if higher than 14, then sets 11 (M11)
11
Z
SRH054
;stores
gear
range
code
into
PLC -> NC
;register
LF10
;loads last T code into OP
SRH051
;stores T code into PLC -> NC register
0
SRH050
;stores 0 rpm for spindle speed into PLC ->
NC ;register
C053
;for display purpose
C052
;0V command signal output
D452
;turns off spindle command signal
SY00
;turns off all the outputs
SY02
;(Y000 - Y037)
LRP001
;loads CONST1 into OP
SM0
;stores OP into M0 timer (time between two
LRP003
;loads
CONST3
into
OP (spindle drive
;unipolar/bipolar)
=0
;unipolar
DF090
E
UF090
;bipolar
Z
:014
;label of internal cycle
NI412
;waiting for pressing machine on pushbutton
;(NC -> PLC)
G014
Z
U401
; a c k n o w l i d g e m e n t
o f
m a c h i n e
o n
pushbutton ;(PLC -> NC)
U400
;machine on pushbutton is lit (PLC ->
NC)
U404
;enables machine on output
25
;25 x 100ms = 2,5 for turning on the machine
SH1
;stores H1 into timer
:015
;label
of
internal
cycle:
waiting
for
;rebuilding of emergency stop circuitry
NH1
;tests timer H1, whether it is over
D404
;if it is over disables MON24V output
C003
;calls emergency module
G014
;waiting
for
the
next machine on
attempt