Ali,

By default, do you mean you are using the configuration files in
/config/m5i20, or something else? One of the things you have to do with the
m5i20 board is to enable the PWM. That is found in the m5i20 configuration
in the m5i20_io.hal file, here:

# Connect amp enables to m5i20 dac enables
linksp Xenable => m5i20.0.dac-00-enable
linksp Yenable => m5i20.0.dac-01-enable
linksp Zenable => m5i20.0.dac-02-enable

The enables are in turn set in core_servo.hal here:
# connect the signals to the motion controller
linksp Xenable <= axis.0.amp-enable-out
linksp Yenable <= axis.1.amp-enable-out
linksp Zenable <= axis.2.amp-enable-out

If you are not getting TRUE on the amp-enable-out, then you will not be able
to enable the m5i20 DACs (you can check this with halcmd show pin). For the
time being, you could comment out the above lines and then add:

sets Xenable TRUE
sets Yenable TRUE
sets Zenable TRUE

Also it looks to me (someone more familiar with using this board for servo
control might correct me) as though 1.0 is the maximum you will see on
halscope, because the OUTPUT_SCALE is set to 1.0. Thus 0.0 => 0% duty cycle,
and 1.0 => 100% duty cycle.

Regards,
Eric

> Thanks for the response ...
> 
> What I meant was that the power is conncted to the 7i30 motor 
> power connector and it is turned on.  The
> +5V for the encoders comes from the 50 pin connector
> and that is why the encoders will always have power.
> 
> So yes the power to the motors is on but the PWM signal is 
> not going to the motors or is too low.  Also for testing 
> purposes I have the 7i30 set to the 1A max. setting.
> 
> As Peter mentioned in his response, 12V might be too low, I 
> will try with 30V but I am affraid the results will not be 
> too diffrent.  I suspect there is an issue with the INI file 
> (I am using the default one for now).
> 
> I've been reading the HAL docs and there are some things that 
> I will look at when I get back to my lab later. Something 
> about setting OUTPUT SCALE for PWM drives.
> 
> I still don't get why halscope won't register a signal 
> greated that 1V/div if I have MAX_OUTPUT set to 10 ?
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to