MDI Commands
16 Jan 2015 06:20 #55052
by doronby
you are 100% correct its 64... and it is found here :
www.linuxcnc.org/docs/2.4/html/gui_halui.html
"When halui starts it will read the MDI_COMMAND fields in the ini, and export pins from 00 to the number of MDI_COMMAND's found in the ini up to a maximum of 64 commands."
Replied by doronby on topic Re:Probe for center of hole
Where does it say the limit is 63 commands?
BTW 0-63 is 64...
JT
you are 100% correct its 64... and it is found here :
www.linuxcnc.org/docs/2.4/html/gui_halui.html
"When halui starts it will read the MDI_COMMAND fields in the ini, and export pins from 00 to the number of MDI_COMMAND's found in the ini up to a maximum of 64 commands."
Please Log in or Create an account to join the conversation.
16 Jan 2015 20:37 #55077
by BigJohnT
Replied by BigJohnT on topic Re:Probe for center of hole
Are you running EMC 2.4? that is pretty old.The current documents don't mention a limit. The repository is down so I can see when that bit of text was removed from the documents. I can see that the limit was removed from the 2.5 docs...
JT
JT
Please Log in or Create an account to join the conversation.
16 Jan 2015 21:49 - 16 Jan 2015 21:50 #55079
by doronby
We are running Linuxcnc 2.5 on one machine and 2.6 on another.
If that limit was removed...Great !
Thanks.
-Doron
Replied by doronby on topic Re:Probe for center of hole
Are you running EMC 2.4? that is pretty old.The current documents don't mention a limit. The repository is down so I can see when that bit of text was removed from the documents. I can see that the limit was removed from the 2.5 docs...
JT
We are running Linuxcnc 2.5 on one machine and 2.6 on another.
If that limit was removed...Great !
Thanks.
-Doron
Last edit: 16 Jan 2015 21:50 by doronby.
Please Log in or Create an account to join the conversation.
16 Jan 2015 22:08 #55080
by dgarrett
Replied by dgarrett on topic Re:Probe for center of hole
it is a hard-coded limit:you can change it and build from source (Run-in-place)
./emc/usr_intf/halui.cc:#define MDI_MAX 64
Please Log in or Create an account to join the conversation.
16 Jan 2015 23:22 #55087
by BigJohnT
Replied by BigJohnT on topic Re:Probe for center of hole
Thanks dgarr, now to figure out why the limit was removed from the manual.
JT
JT
Please Log in or Create an account to join the conversation.
17 Jan 2015 01:04 #55095
by BigJohnT
Replied by BigJohnT on topic Re:Probe for center of hole
Gaaaa, I was looking at the halui man page and not the html document.
JT
JT
Please Log in or Create an account to join the conversation.
17 Jan 2015 10:02 - 17 Jan 2015 10:04 #55113
by doronby
Replied by doronby on topic Re:Probe for center of hole
ok,
i followed most of what is found here less debounce and pendant code :
7xcnc.com/software/probing/z-touch-plate/
I got a GUI button connected to an MDI-COMNAND that stars to execute the following o100.ngc sub
<pre>
o100 sub
G21
g54
g10 l20 p0 z0
g38.2 z-10 f10
g10 l20 p0 z11.316
G0 z30 F30
m2
o100 endsub
</pre>
The probe starts to slow step down (per the above o100 code) but, as soon as it touches the plate it stops BUT does not complete the rest of the steps in the o100.ngc routine.
When executing the same code as a stand along G-code, it works fine.(removing the sub stuff)
enclosed is my configuration files.
I am STUCK... have no idea how to debug this .
Using LinuxCNC 2.5 from the 2,5 liveCD
---PLEASE .... HELP---
-Doron
i followed most of what is found here less debounce and pendant code :
7xcnc.com/software/probing/z-touch-plate/
I got a GUI button connected to an MDI-COMNAND that stars to execute the following o100.ngc sub
<pre>
o100 sub
G21
g54
g10 l20 p0 z0
g38.2 z-10 f10
g10 l20 p0 z11.316
G0 z30 F30
m2
o100 endsub
</pre>
The probe starts to slow step down (per the above o100 code) but, as soon as it touches the plate it stops BUT does not complete the rest of the steps in the o100.ngc routine.
When executing the same code as a stand along G-code, it works fine.(removing the sub stuff)
enclosed is my configuration files.
I am STUCK... have no idea how to debug this .
Using LinuxCNC 2.5 from the 2,5 liveCD
---PLEASE .... HELP---
-Doron
Last edit: 17 Jan 2015 10:04 by doronby.
Please Log in or Create an account to join the conversation.
17 Jan 2015 11:10 #55115
by dgarrett
Replied by dgarrett on topic Re:Probe for center of hole
try removing the m2 from the sub
Please Log in or Create an account to join the conversation.
17 Jan 2015 20:46 #55121
by BigJohnT
Replied by BigJohnT on topic Re:Probe for center of hole
The program stop M2 goes outside the sub/endsub.
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
JT
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
JT
The following user(s) said Thank You: doronby
Please Log in or Create an account to join the conversation.
17 Jan 2015 22:10 - 17 Jan 2015 22:13 #55123
by doronby
i will try that today but the code stops way before the m2... it does not do the g10 l20 p0 z11.316 nor the G0 z30 F30..
.
Another idea I just came up with is that my probe signal polarity might be inverted from what the g38 command expects.
In a staight g-code file it gets an error but continues to execute the rest of the lines but inside the sub,,, it aborts the sub.
Is it possible as the cause ?
I will experiment and invert this pin this pm.
Thanks !
-Doron
Replied by doronby on topic Re:Probe for center of hole
The program stop M2 goes outside the sub/endsub.
linuxcnc.org/docs/html/gcode/o-code.html#_calling_files
JT
i will try that today but the code stops way before the m2... it does not do the g10 l20 p0 z11.316 nor the G0 z30 F30..
![:( :(](/media/kunena/emoticons/sad.png)
Another idea I just came up with is that my probe signal polarity might be inverted from what the g38 command expects.
In a staight g-code file it gets an error but continues to execute the rest of the lines but inside the sub,,, it aborts the sub.
Is it possible as the cause ?
I will experiment and invert this pin this pm.
Thanks !
-Doron
Last edit: 17 Jan 2015 22:13 by doronby.
Please Log in or Create an account to join the conversation.
Time to create page: 0.234 seconds