How to pass the actual coordinates in MDI_COMMAND
31 May 2011 08:09 #10209
by aike
How to pass the actual coordinates in MDI_COMMAND was created by aike
Hi!
I want to create button (pyvcp or hard external - no difference) to set the offset G54-G59 commands.
In ini file in {HALUI} section there are several strings:
MDI_COMMAND = G10L2P2X[$XVALUE]Z[$ZVALUE]
MDI_COMMAND = G10L2P3X[$XVALUE]Z[$ZVALUE]
where XVALUE and ZVALUE - actual X,Z coordinates.
How can I transfer the actual coordinates to halui.mdi-command-XX?
The operator set the tool near desired point and push "G54 button"
The offset of new coordinate system will enter in EMC.
Is it possible?
Or I need to change the halui.mdi-command-XX on the fly?
I know the actual X and Z coordinates (axis.N.motor-position-cmd).
I want to create button (pyvcp or hard external - no difference) to set the offset G54-G59 commands.
In ini file in {HALUI} section there are several strings:
MDI_COMMAND = G10L2P2X[$XVALUE]Z[$ZVALUE]
MDI_COMMAND = G10L2P3X[$XVALUE]Z[$ZVALUE]
where XVALUE and ZVALUE - actual X,Z coordinates.
How can I transfer the actual coordinates to halui.mdi-command-XX?
The operator set the tool near desired point and push "G54 button"
The offset of new coordinate system will enter in EMC.
Is it possible?
Or I need to change the halui.mdi-command-XX on the fly?
I know the actual X and Z coordinates (axis.N.motor-position-cmd).
Please Log in or Create an account to join the conversation.
31 May 2011 09:22 #10210
by andypugh
Replied by andypugh on topic Re:How to pass the actual coordinates in MDI_COMMAND
I think you probably want G10 L20, rather than G10 L2
www.linuxcnc.org/docview/html/gcode_main.html#sec:G10-L20
www.linuxcnc.org/docview/html/gcode_main.html#sec:G10-L20
Please Log in or Create an account to join the conversation.
31 May 2011 13:49 #10223
by aike
Replied by aike on topic Re:How to pass the actual coordinates in MDI_COMMAND
Hi!
Thank you!
It works.
G10L20 the same I need.
Thank you!
It works.
G10L20 the same I need.
Please Log in or Create an account to join the conversation.
09 Jun 2011 11:19 #10388
by piasdom
Replied by piasdom on topic Re:How to pass the actual coordinates in MDI_COMMAND
can i use this to have an offset button. i want to be able to
touch my material(/w edge finder) and then click pyvcp button
to offset it to half. so far i have this. is there another pin i need to 3
be connected to ? T'anks !
postgui.hal
net mdi-offset halui.mdi-command-04 == pyvcp.mdi-offset
axis.ini
MDI_COMMAND = G10L2P2 X.125 y.125
touch my material(/w edge finder) and then click pyvcp button
to offset it to half. so far i have this. is there another pin i need to 3
be connected to ? T'anks !
postgui.hal
net mdi-offset halui.mdi-command-04 == pyvcp.mdi-offset
axis.ini
MDI_COMMAND = G10L2P2 X.125 y.125
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds