Error when running a .ngc from a glade button
17 Sep 2015 05:40 #62657
by tome
Error when running a .ngc from a glade button was created by tome
I have an embedded Glade TAB in Axis for tool touch off. I have a button set up with an action (mdi_tooltouchoff-ext) that contains a single command: o<probe-exterior-tool> call
The file probe-exterior-tool.ngc which is in ~linuxcnc/nc_files contains:
When I click the button I get this error:
Any idea what this means or what I am doing wrong?
Thanks,
-Tom
The file probe-exterior-tool.ngc which is in ~linuxcnc/nc_files contains:
(Load exterior cutting tool - odd tool number - you want to touch off)
o(probe-exterior-tool)sub
M70 (save modal state)
G92.2 (reset axis offsets to zero - if G92 offsets were in effect when we entered)
G49 (clear tool length compensation)
#<_Toolnum> = #5400 (set _Toolnum to the currently loaded tool)
#<_Probe_Speed> = 5
#<_Probe_Retract> = 0.5
#<_Fixture_Rad> = 1.357 (This is the radius of the edge of the ring from center of spindle)
G53 G0 X0 (This puts tool as far above ring as possible)
G53 G0 Z-6.4 (This will put exterior tool over the touch-off ring)
G10 L20 P9 X0 Z0 (This sets G59.3 X and Z axes to be 0 at the location above)
G59.3 (switch to coord system 9)
G38.2 X-1.5 F#<_Probe_Speed> (trip switch on the way down)
#1000 = [#5061 - #<_Fixture_Rad>] (set #1000 to current point plus fixture radius)
G10 L1 P#<_Toolnum> X#1000 (set tool table entry for _Toolnum X axis to calculated offset)
G0 X0 (Retract tool back to where we were - off of ring)
G0 Z2 (Move back from face of ring to begin Z touch off)
G10 L1 P#<_Toolnum> Z0
G43
G0 X1.2
M72 (restore modal state - this should also restore G92 offset if they were in effect when we entered)
o(probe-exterior-tool)endsub
When I click the button I get this error:
emc/task/emctask.cc 389: interp_error: bad number format (conversion failed) parsing ''
bad number format (conversion failed) parsing ''
Any idea what this means or what I am doing wrong?
Thanks,
-Tom
Please Log in or Create an account to join the conversation.
17 Sep 2015 16:39 #62678
by andypugh
Replied by andypugh on topic Error when running a .ngc from a glade button
The o sub and o endsub lines are in the wrong format, incorrect bracket type.
Please Log in or Create an account to join the conversation.
17 Sep 2015 19:43 - 17 Sep 2015 19:43 #62689
by tome
Replied by tome on topic Error when running a .ngc from a glade button
Ah! Thanks Andy I figured it was something like that...
-Tom
-Tom
Last edit: 17 Sep 2015 19:43 by tome.
Please Log in or Create an account to join the conversation.
Time to create page: 0.121 seconds