I finally got back to the monarch drive project.  I purchased a 7i97 as I
would like to cnc it at some point - but currently I just need 2 analog
outputs, encoder outputs and some i/o.

anyway.  I have been goofing around with it and it seems that pwmgen.04
isn't working correctly.

I am using this simple hal file for testing

loadrt hostmot2
loadrt hm2_eth board_ip=10.10.10.10
loadrt threads name1=slow period1=1000000

addf hm2_7i97.0.read slow
addf hm2_7i97.0.write slow


setp hm2_7i97.0.pwmgen.pdm_frequency    75000
setp hm2_7i97.0.pwmgen.00.offset-mode   TRUE
setp hm2_7i97.0.pwmgen.00.output-type 1
setp hm2_7i97.0.pwmgen.04.output-type 1
setp hm2_7i97.0.pwmgen.04.offset-mode   TRUE
setp hm2_7i97.0.pwmgen.04.enable.invert_output true
#setp hm2_7i97.0.pwmgen.00.enable true


#setp hm2_7i97.0.pwmgen.00.value .5
setp hm2_7i97.0.encoder.00.scale 4096
start

pwmgen.00 works correctly.  when I enable it - the output voltage is 0.  If
I set the output to 1 - it is 10v and when I set it to -1 it is -10v..
perfect

When I enable pwmgen.04 - I instantly get 10v on the output.   If I set the
output to -1 - I get 0v out.

pwmgen.05 works correctly too...

what am I doing wrong?

sam

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to