Greetings all;

I have added two pwmgen's to the config strings of my 6040's 5i25 config 
strings, and they show up in the dmesg as

hm2/hm2_5i25.0:     IO Pin 008 (P3-05): PWMGen #0, pin Out1 (Dir or Down) 
(Output)
hm2/hm2_5i25.0:     IO Pin 009 (P3-06): PWMGen #0, pin Out0 (PWM or Up) 
(Output)

These two above with a straight thru cable would show up on the 7i76D as 
dir4 and step4, which would be pretty handy using step4 to drive an 
IRF520 based motor switch.


hm2/hm2_5i25.0:     IO Pin 025 (P2-05): PWMGen #1, pin Out1 (Dir or Down) 
(Output
hm2/hm2_5i25.0:     IO Pin 026 (P2-06): PWMGen #1, pin Out0 (PWM or Up) 
(Output)

And they now show in a halconfig as:
12  bit   IN          FALSE  hm2_5i25.0.pwmgen.00.enable
    12  float IN              0  hm2_5i25.0.pwmgen.00.value
    12  bit   IN          FALSE  hm2_5i25.0.pwmgen.01.enable
    12  float IN              0  hm2_5i25.0.pwmgen.01.value
which surprises me as there is not any associated addf's. And any attempt 
to add them is an error  Can I assume they are ready to rock and roll?

Now I see its default type=1, when I would rather its zero and not 
wasting a pin. where do I set that??

So I arrive at setting the first pwmgen.00.enable=true, its frequency to 
10 hz, and its input value to .5, scale is default at 1.0

But now I can't find an output to watch with the halscope to see if its 
running.

Am I supposed to be able to?

Thanks.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/gene>


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to