pin 'pyvcp.xxxxx' does not exist
net min-home-x => pyvcp.xlimitswitch will correctly light up an LED in my pyvcp panel.
net xpos-cmd => pyvcp.my-x-position will show the axis position
net spindle-start <= pyvcp.spindle-on => halui.spindle.start in my custom.hal file exits with error - "pin 'pyvcp.spindle-on' does not exist" even though it is listed in my custompanel.xml file as:-
I have tried implementing the jog axis example in the manual and get the same message for those pins too.
Am I missing something as to why the hal does not acknowledge pins that are used for input???
Any pointers in the right direction appreciated
When my hal connection to the pyvcp pin is commented out, the config loads, and looking in hal show, the pyvcp pins are listed and displayed in the gui.
I am using mesa 5i20's, one machine using hostmot4 runs the config and functions fully, the second machine I am trying to use hm2 with no luck so far.
Try searching the manuals first, you might have better luck...
Still cant get my spindle to change speed via the pyvcp but I will log that in separate thread if I dont succeed.
from the manual:
Scale controls a float or a s32 pin. You increase or decrease the value of the pin be either dragging the slider, or pointing at the scale and rolling your mouse-wheel. The "halpin" will have both "-f" and "-i" added to it to form the float and s32 pins. Width is the width of the slider in vertical and the height of the slider in horizontal orientation.
Amazing how many times you read something and dont quite see it!!
Still can highly recommend the Show Hal Configuration for solving this kind of problem. I think I had some white spaces in names. It was able to show if the pin was recognised and I could check the name against the postgui.hal name for consistency.
If you read something and it ain't right or doesn't make sense I'm the go to guy for suggestions to improve the manuals. I try to take an EMC new-bee's view when I work on a section of the manual.
Glad you got it working.
net min-home-x => pyvcp.xlimitswitch
net min-home-y => pyvcp.ylimitswitch
net max-home-z => pyvcp.zlimitswitch
#net myhalxpos <= halui.axis.o.pos-relative => pyvcp.my-x-position
#net myhalypos <= halui.axis.1.pos-relative => pyvcp.my-y-position
#net myhalzpos <= halui.axis.2.pos-relative => pyvcp.my-z-position
net xvel-cmd <= axis.0.joint-vel-cmd => pyvcp.my-x-velocity
net yvel-cmd <= axis.1.joint-vel-cmd => pyvcp.my-y-velocity
net zvel-cmd <= axis.2.joint-vel-cmd => pyvcp.my-z-velocity
In the first three lines above, I get the limit switches fine in my ui - nice.
In the last three lines I get the joint velocity fine.
But in the three lines with # I get:- pin 'halui.axis.0.pos-relative' does not exist. (when no # obviously)
Yet I can see them in the "show hal configuration"
Am I missing another "-f" John?