On Fri, Sep 24, 2010 at 12:00 PM, Jon Elson <[email protected]> wrote:
> Don Stanley wrote: > > On Thu, Sep 23, 2010 at 9:18 PM, Jon Elson <[email protected]> > wrote: > > > > > >> Don Stanley wrote: > >> > >>> Hi All; > >>> What conditions do the JP1 and JP2 set? > >>> I need 0-10 Volt from the DAC, preferably using all eight bits. > >>> > >> > Just for future reference, I have added this info to the doc page at > http://pico-systems.com/spindac.html > > Thanks, that fixed that. > > > > The other 10% step problem is; motion.spindle-speed-out is passed > > through scale.0 and mux2.0 to correct for different gears of the > > spindle drive. One of those is apparently messing with the data but > > it looks good in Hal Show. > > I'll test that tomorrow and pass it on. > > Unless you (or someone) already know the answer and solution? > > > Well, it sounds like one of those components is treating the value as an > integer > rather than a float. Can you check what is being sent to > > ppmc.0.DAC8.00.value? Is it getting values that are changing in small > increments, but the output only changes in large jumps? > > If so, then there is either a hardware problem and some of the data > bits are not getting through to the DAC, or there is a new software > quirk in the driver. > Jon; I am using the Axis Display Manual Control window Spindle controls for the following ppmc.0.DAC8.00.value inputs and a meter on the DAC outputs. JP1 missing and JP2 horizontal right. ppmc.0.DAC8.00.value DAC Volts Out Comment 0.003333333 0.0176 Spindle CW or CCW=1 RPM 0.3366663 0.0176 101 RPM 0.6699993 0.0176 201 RPM 1.003332 1.003332 301 RPM This sequence continues with DAC Output changes only when input is up another 1 Volt. My _io.hal code is as follows: ####################################################### # Spindle Speed, Direction and Gears # DAC jumpers = JP1 removed JP2 horizontal right ####################################################### setp mux2.0.in0 [SPINDLE]LOW_GEAR_V_RPM # 10 volts/350 RPM = 0.0285714 setp mux2.0.in1 [SPINDLE]HIGH_GEAR_V_RPM # 10 volts/3000 RPM = 0.00333333 #setp scale.0.offset 0.0 #setp ppmc.0.DAC8.00.scale 300. net spindle-rpm-cmd motion.spindle-speed-out => scale.0.in net spindle-higear ppmc.0.din.06.in-not => mux2.0.sel net spindle-gain mux2.0.out => scale.0.gain net spindle-volts scale.0.out => ppmc.0.DAC8.00.value net spindle-fwd motion.spindle-forward => ppmc.0.dout.00.out net spindle-rev motion.spindle-reverse => ppmc.0.dout.01.out Your _io.hal works fine with the Axis Display on my system. That's the sum of my knowledge to this point. Thanks for your help Don > > You might try using the univstepdiags program. The command is > sudo ./univstepdiags 378 spindle > > It then asks for the output in volts. So, enter 1.25 or 2.5 and see if you > get > values in fractions of volts. I will check this here, but my test system > is really old, based on the 6.06 release, so if it is a software problem, > it may not show up. > > If you don't have it, the diags program can be loaded from here : > http://pico-systems.com/codes/univstepdiags.tgz > > Jon > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
