Work with probe

More
5 years 5 days ago #224475 by jcdammeyer
Replied by jcdammeyer on topic Work with probe
Here it is on the Pi4 which is connected to a MESA 7i92H. Not sure if the real time delay warning is because I'm also connected via WiFi or if the CAN bus code is taking too much time.

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

More
5 years 5 days ago #224482 by furynick
Replied by furynick on topic Work with probe
On my side I just renamed psng.glade to psng_1280x1024.glade and made a symbolic link to the file that fit my screen and I have a different panel according to which file I choose.

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

More
5 years 4 days ago #224546 by jcdammeyer
Replied by jcdammeyer on topic Work with probe
This might be a better general LCNC question but since it happens inside one of the probe macros I thought I'd start here.

The issue is with manual tool change as parsed in a users g-code like
Code:
T1 M6 G43
My observations were that the system would move to the tool position.  Move up and then move down again.  It appears as if the commenting this statement out of doesn't seem to make a difference as the manual tool change operation movement is still being done.
Code:
#loadusr -W hal_manualtoolchange
I determined that behaviour by discovering that there are two XYZ locations for tool changes.  The guide tells us to add this:
Code:
[CHANGE_POSITION] # Absolute coordinates of the tool change point X = 1 Y = 1 Z = -0.5
The guide doesn't tell us to remove these tool change parameters as I have with the '#' symbols
Code:
[EMCIO] EMCIO = io CYCLE_TIME = 0.100 TOOL_TABLE = tool.tbl #TOOL_CHANGE_POSITION = 2.5 2 -4 #TOOL_CHANGE_QUILL_UP = 0
By setting the XYZ TOOL_CHANGE_POSITION to a dramatically different position from the [CHANGE_POSITION] shows that the spindle is first moved to that position and then to the [EMCIO] TOOL_CHANGE_POSITION. Commenting those out leaves the spindle at the [CHANGE_POSITION]

I think it's happening because of this in the psng_manual_change.ngc subroutine file.
Code:
; using the code being remapped here means 'use builtin behaviour' M6

Why is there in essence a recursive call to the M6 function we are currently in?  I don't understand why that is there.  I suspect that's what results in the use of the [EMCIO] TOOL_CHANGE_POSITION.

Anyone have any ideas about this?
Thanks
John





 

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

More
5 years 4 days ago #224552 by furynick
Replied by furynick on topic Work with probe
Well, it's not recursive, the remap option load the appropriate code when the program calls M6.
Then, inside the remapped code, it's the original M6 that is called to ensure LinuxCNC is aware of tool change and set all necessary values on the modal state of the machine (tool number, tool diameter, tool length, etc).

If original M6 is not called within remapped function, the tool will not be considered as changed and probably make erratic behaviour after M6 call in main program.
The following user(s) said Thank You: jcdammeyer

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

More
5 years 4 days ago #224591 by jcdammeyer
Replied by jcdammeyer on topic Work with probe

Well, it's not recursive, the remap option load the appropriate code when the program calls M6.
Then, inside the remapped code, it's the original M6 that is called to ensure LinuxCNC is aware of tool change and set all necessary values on the modal state of the machine (tool number, tool diameter, tool length, etc).

If original M6 is not called within remapped function, the tool will not be considered as changed and probably make erratic behaviour after M6 call in main program.
 
So the question then is if the loadusr manual tool change line is commented out but there are values in [EMCIO] like TOOL_CHANGE_POSITION why is there a move to that location?  What else is running that probably shouldn't be?  Commenting that out solves the move problem but there are others on the test bench Pi4 where I haven't' re-enabled the loadusr manual tool change.

I'll put together a detailed description of those.  Very strange. 

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

More
5 years 3 days ago #224634 by myval
Replied by myval on topic Work with probe
Hey,
just wondering if there is version for 2.9?

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

Time to create page: 0.141 seconds
Powered by Kunena Forum