Is there a way to log the G-Code executed in subroutines?
 
For example below is from the psng_manual_change.ngc that moves to the tool 
change position, loads a tool and measures it.   
 
So when it runs from the main program parsing the T1 M6 G43 for example it 
launches this code but we don't actually see the calculated parameters from say 
the G53 lines nor whether it fails and the M71 is run.
 
How does one say single step or see exactly what is happening?
Thanks
John
 
 
; We must execute this only in the milltask interpreter
; or preview will break, so test for '#<_task>' which is 1 for
; the milltask interpreter and 0 in the UI's
O100 if [#<_task> EQ 0]
    (debug, Task ist Null)
    M72 ; Restore modal state
    O100 return [999]
O100 endif
 
; Ensure we're in G90 / absolute mode
G90
 
; First go up & then move to change position
G53 G0 Z[#<_ini[AXIS_Z]MAX_LIMIT>+#<_ini[PROBE_SCREEN]Z_SAFE_TRAVEL_OFFSET>]
G53 G0 X[#<_ini[CHANGE_POSITION]X>] Y[#<_ini[CHANGE_POSITION]Y>]
G53 G0 Z[#<_ini[CHANGE_POSITION]Z>]
 
; Cancel tool offset
G49
 
; using the code being remapped here means 'use builtin behaviour'
M6
 
O200 if [#<_hal[probe.use_tool_measurement]> EQ 0]
    M71 ; Invalidate Modal Autorestore
    o<_psng_modal_restore> call
    O200 return [3] ; indicate no tool measurement
O200 endif
 
 
"ELS! Nothing else works as well for your Lathe"
Automation Artisans Inc.
www dot autoartisans dot com 
 

_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to