Andy, Thanks for pointing me in the (hopefully) right direction.
Ok.. Fiddling done.. You were VERY close to actual without having an EMC machine handy.. I'm impressed. When I get to starting up EMC, I get a message thatn axis.0.jog-enable has already been assigned. I'm assuming that there's a way to assign two separate outputs to the same input? Thanks, Michael On Jan 21, 2010, at 4:02 AM, Andy Pugh wrote: > 2010/1/21 Michael Jones <[email protected]>: > >> I was able to build a panel this afternoon that uses the widget, it >> works on screen, but how do I connect it (or other analog controls) >> to >> the HAL? > > I assume you mean the pvVCP "Jogwheel" control? > http://www.linuxcnc.org/docs/2.2/html/hal_pyvcp.html#r1_5_10 > > This might work given some fiddling... > > Each axis has a axis.N.jog-counts pin, (see > http://linuxcnc.org/docs/html/config_emc2hal.html) and a jog-enable > pin. > This takes an s32 value, but the widget outputs a float, so a > converter is needed. > To select which axis to jog you could use the buttons already in the > axis gui. > > This is all from memory as I don't have access to an EMC machine right > now. Some or all of these pins might be spelled incorrectly. (I am > particularly unsure about the axisgui.jog.N pins. You should be able > to see what they are really called under "show hal config" in the > "Machine" menu of axis. > > This probably needs to go in the custom_postgui.hal file as the gui > pins won't exist when the main hal file loads. > > loadrt conv_float_s32 count=1 > > addf conv_float_s32.0 servo-thread > > net jogwheel_float pyvcp.my-jogwheel.ouput => conv_float_s32.0.in > net jogwheel_long conv_float_s32.0.out => axis.0.jog-counts > axis.1.jog-counts axis.2.jog-counts > net jog_x axisgui.jog.x => axis.0.jog-enable > net jog_y axisgui.jog.y => axis.1.jog-enable > net jog_z axisgui.jog.z => axis.2.jog-enable > > -- > atp > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts > the > world's best and brightest in the field, creating opportunities for > Conference > attendees to learn about information security's most important > issues through > interactions with peers, luminaries and emerging and established > companies. > http://p.sf.net/sfu/rsaconf-dev2dev > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
