Stop and restart program

More
21 May 2017 18:06 #93444 by albova
Replied by albova on topic Stop and restart program
hi to all,
Resuming this discussion.
I entered the M30 interruption in the sub control tool (ctrlut).
I know, you should not do this, but it seems to work.
The code is this:
o<ctrlut> sub
o300 if [#100 gt #200]
#100=0
g53 z0
m5
g4 p 3
g53 g0 x11 y-21 z0 (si alza fino a z zero macchina)
g0 z[#31+0.5] (si sposta in rapido fino a 2mm sopra lo zero utensile nuovo)
g38.2 z[#31-#35-1.0] f20 (esegue il controllo con max -1mm)
; (DEBUG,5063 = #5063)
#32=#5063 (#32 misura rilevata dal tastatore)
#33=[#31-#32] (#31 zero utensile nuovo su tastatore)
#34=[#32-#31] (#33 e #34 differenze positive e negative)
(nel caso del #34 si controlla che il motore z non )
(si sia spostato in basso rispetto allo zero macchina)
; (DEBUG,31 = #31)
; (DEBUG,32 = #32)
; (DEBUG,33 = #33)
; (DEBUG,34 = #34)


o200 if [#33 gt #35] (#35 tolleranza impostata per controllo utensile)
(DEBUG, FUORI TOLLERANZA -)
(DEBUG,LINEA = #101)
g53 g0z0 (se fuori tolleranza si alza fino a zero z macchina)
M30 <<<<<<=====================================================
o200 endif

o201 if [#34 gt #35] (#35 tolleranza impostata per controllo utensile)
(DEBUG, FUORI TOLLERANZA +)
(DEBUG,LINEA = #101)
g53 g0z0 (se fuori tolleranza si alza fino a zero z macchina)
M30 <<<<<======================================================
o201 endif
g53 g0 z0
m3
g4 p 3
o300 endif
o<ctrlut> endsub
M2

What are the problems that might come out?
regards
Ale

Please Log in or Create an account to join the conversation.

Time to create page: 0.060 seconds
Powered by Kunena Forum