MDI Commands not getting read
06 Aug 2017 17:14 #97071
by 10K
MDI Commands not getting read was created by 10K
I'm,getting this error
when I load LinuxCNC. Everything looks OK. Here's my .INI file.
and here's the section of vc-p2s.hal that causes the error. (Any of the four lines will cause the error.)
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.
halui-mdi-command-06 does not exist
when I load LinuxCNC. Everything looks OK. Here's my .INI file.
[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.)
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 or Create an account to join the conversation.
08 Aug 2017 05:10 #97161
by nkp
Replied by nkp on topic MDI Commands not getting read
Try to delete the "empty" lines.
[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
[HALUI]
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 or Create an account to join the conversation.
08 Aug 2017 10:41 #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
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 or Create an account to join the conversation.
08 Aug 2017 14:03 #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
with
and everything works!
There must have been some slight change to the newest version of LinuxCNC that caused this.
MDI_COMMAND=
with
MDI_COMMAND=""
and everything works!
There must have been some slight change to the newest version of LinuxCNC that caused this.
The following user(s) said Thank You: tivoi
Please Log in or Create an account to join the conversation.
17 Aug 2017 00:12 #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.
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 or Create an account to join the conversation.
17 Aug 2017 14:43 #97631
by andypugh
Replied by andypugh on topic MDI Commands not getting read
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
net foo motion.bar
source /this/is/a/file
net this to.that
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds