Lars Andersson wrote: > have a problem with my jog wwheel > > Parts of my setup.hal file: > > loadusr hal_input -W -A Bodnar > > net jogs axis.0.jog-counts <= input.0.abs-x-counts > > setp axis.0.jog-enable 1 > setp axis.0.jog-scale 0.01 > > Doing a "WATCH": > > input.0.abs-x-counts _does_ move with the input jog wheel > axis.0.jog-counts _does not_ move with the input jog wheel
If you think you connected two pins together with a signal, but one changes and the other doesn't, they are clearly NOT connected. Use halcmd to investigate that problem. The "show sig" command should show you all the signals in your configuration, "show sig jogs" will show you only the signal called "jogs". It should look something like this: Type Value Name (linked to) s32 0 jogs ==> axis.0.jog-counts <== input.0.abs-x-counts When you move the jogwheel, the values of both pins and the signal should change. Use 'show sig jogs' and 'show pin *counts' to see them in halcmd (each time you issue the command you will see a snapshot of their current values), or use halmeter for a continuous display. > SECOND ATTEMPT: > > If I instead do > > net jogs input.0.abs-x-counts > net jogs axis.0.jog-counts > > I get an error "Pin 'input.0.abs-x-counts' does not exist" > > Comment out the error-flagged line and restart AXIS; > > If I now enter "net jogs input.0.abs-x-counts" in the manual command > box after starting AXIS, the input device controls jog as expected. > So the pin input.0.abs-x-counts doesn't exist when your HAL line is trying to connect it, but it does exist later when you manually connect it. I haven't used hal_input, but I think what is happening is that the loadusr command is returning before hal_input is done creating its pins. The loadusr command has an option to wait for the component to become ready before returning - that will probably solve your problem. I don't have the syntax for that memorized - use 'halcmd help loadusr', or consult the hal man page, or the manual. Regards, John Kasunich ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users