Had a delay due to work and the VFD problem. I just bought a new one and will look at the old guy later... Anyhow, I have a minor problem with integrating the VistaCNC pendant. This should be an easy one.
I have two HAL files:
hurco.hal:
Code:
net jog-x-pos halui.jog.0.plus
vc-p4s.hal:
Code:
net jog.0.cont-plus vc-p4s.jog.0.plus => halui.jog.0.plus
error when starting:
Code:
./vc-p4s.hal:25: Pin 'halui.jog.0.plus' was already linked to signal 'jog-x-pos'
I get the error... I think. I have two things driving the same ping, halui.jog.0.plus. Those are jog-x-pos and jog.0.cont-plus (sourced from vc-p4s.jog.0.plus). My 'I think' is that I know that I have two outputs driving the same pin and that is bus contention; I'm not 100% sure my summary of *what* the two outputs are is correct, so confirmation there would be great.
My bigger problem, though, is how to solve this. It seems reasonable that I should be able to have a button on the control console and the pendant all initiate a jog. In fact, I can see three different jog buttons: the menu, a physical switch on the console, and the physical switch on pendant. But how do I do that? Hmmm... an OR operation? Is this the proper/sanctioned resolution for the case of two buttons?
hurco.hal:
Code:
# net jog-x-pos halui.jog.0.plus
vc-p4s.hal:
Code:
loadrt or2
addf or2.0 servo-thread
...
#net jog.0.cont-plus vc-p4s.jog.0.plus => halui.jog.0.plus
net jog.0.cont-plus vc-p4s.jog.0.plus
net jog.0.cont-plus or2.0.in0
net jog-x-pos or2.0.in1
net jog.0.plus.sig or2.0.out halui.jog.0.plus
Note: at least this compiles, but I have to have that jog.0.plus.sig in there, which has no other use than to avoid an error. That seems suspicious. Also, how does one easily tell what is a pin and what is a signal. They seem rather ambiguous.