MDI Commands not getting read

More
9 years 2 months ago #97071 by 10K
I'm,getting this error

Code:
halui-mdi-command-06 does not exist

when I load LinuxCNC. Everything looks OK. Here's my .INI file.

Code:
[HAL] HALUI = halui HALFILE = Monarch_10EE.hal HALFILE = vc-p2s.hal POSTGUI_HALFILE = custom_postgui.hal POSTGUI HALFILE = vc-p2s-postgui.hal [HALUI] MDI_COMMAND= MDI_COMMAND= MDI_COMMAND= MDI_COMMAND= MDI_COMMAND= MDI_COMMAND=G10 L20 P1 X0 MDI_COMMAND=G10 L20 P1 Y0 MDI_COMMAND=G10 L20 P1 Z0 MDI_COMMAND=G0 X0 Y0 Z0 MDI_COMMAND=G0 Y0 MDI_COMMAND=G0 Z0

and here's the section of vc-p2s.hal that causes the error. (Any of the four lines will cause the error.)

Code:
net zero-x vc-p2s.zero-x => halui.mdi-command-05 net zero-y vc-p2s.zero-y => halui.mdi-command-06 net zero-z vc-p2s.zero-z => halui.mdi-command-07 net go-to-zero vc-p2s.go-to-zero => halui.mdi-command-08

I've been installing a new VistaCNC P2-S pendant to replace my XHC HB04. Oddly, the same MDI commands all worked with the XHC. I've looked in Halshow, and I don't see any pins associated with the mdi-commands. So I think that the problem is in LinuxCNC, not the pendant or pendant configuration.

Any ideas?

PS, I like the VistaCNC pendant much better than the XHC. It's better built, and much better integrated. No unused buttons, like the XHC. Except for having to comment out the mdi command lines, it all works.

Please Log in to join the conversation.

More
9 years 2 months ago #97161 by nkp
Replied by nkp on topic MDI Commands not getting read
Try to delete the "empty" lines.

[HALUI]
[strike] MDI_COMMAND=[/strike]
[strike] MDI_COMMAND=[/strike]
[strike] MDI_COMMAND=[/strike]
[strike] MDI_COMMAND=[/strike]
[strike] MDI_COMMAND=[/strike]
MDI_COMMAND=G10 L20 P1 X0
MDI_COMMAND=G10 L20 P1 Y0
MDI_COMMAND=G10 L20 P1 Z0
MDI_COMMAND=G0 X0 Y0 Z0
MDI_COMMAND=G0 Y0
MDI_COMMAND=G0 Z0

Please Log in to join the conversation.

More
9 years 2 months ago #97167 by nkp
Replied by nkp on topic MDI Commands not getting read
acc.:
net zero-x vc-p2s.zero-x => halui.mdi-command-00
net zero-y vc-p2s.zero-y => halui.mdi-command-01
net zero-z vc-p2s.zero-z => halui.mdi-command-02
net go-to-zero vc-p2s.go-to-zero => halui.mdi-command-03

Please Log in to join the conversation.

More
9 years 2 months ago #97173 by 10K
Replied by 10K on topic MDI Commands not getting read
Thanks! I didn't do quite what you suggested, but it gave me an idea. I replaced
Code:
MDI_COMMAND=

with
Code:
MDI_COMMAND=""

and everything works!

There must have been some slight change to the newest version of LinuxCNC that caused this.

Please Log in to join the conversation.

More
9 years 2 months ago #97603 by 10K
Replied by 10K on topic MDI Commands not getting read
I actually found that I was having another problem that complicated diagnosing this one.

Under [HAL], you can have multiple HALFILE = commands, but ONLY ONE POSTGUI_HALFILE = command. If you have more than one, only the first one will be read, and no error message will be generated that the additional files are not read.

It took me far longer that I'd like to admit to figure this out.

Please Log in to join the conversation.

More
9 years 2 months ago #97631 by andypugh
I think that one POSTGUI_HALFILE can "incude" another HAL file using the HAL "source" command.

net foo motion.bar
source /this/is/a/file
net this to.that

Please Log in to join the conversation.

Time to create page: 0.167 seconds
Powered by Kunena Forum