7i47s Analog out

More
6 years 8 months ago #156983 by dremeier
7i47s Analog out was created by dremeier
Can someone give me an example for the analog out of the 7i47s, regarding for spindle control?
Is that a hardware PWM or need as software PWM? The Bit file is correct, I got it direct from Mesa. thx!
I tried a lot bus nothing works. Using l-cnc 2.9.
Any suggestions are welcome!

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156984 by PCW
Replied by PCW on topic 7i47s Analog out
You would use hardware PWM set to about 5KHz
What bit file are you using?

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156985 by dremeier
Replied by dremeier on topic 7i47s Analog out
attached the bit file and pin file.

for hardware pwm I should see these pins in HAL-Show, right? But there is only pwmgen.value and pwmgen.on.

How does the hardware PWM would look like in HAL?

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156986 by PCW
Replied by PCW on topic 7i47s Analog out
pins should it should be something like

hm2_5i24.0.pwmgen.00.enable
and
hm2_5i24.0.pwmgen.00.value

and parameters
hm2_5i24.0.pwmgen.pwm_frequency
etc

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156989 by dremeier
Replied by dremeier on topic 7i47s Analog out
ok thank you, I got it, so far so good:

for testing I´ve this in the hal:
setp hm2_5i24.0.pwmgen.00.scale -100
setp hm2_5i24.0.pwmgen.00.output-type 1
setp hm2_5i24.0.pwmgen.00.enable TRUE
setp hm2_5i24.0.pwmgen.pwm_frequency 5000
setp hm2_5i24.0.pwmgen.00.offset-mode 0
setp hm2_5i24.0.pwmgen.00.value 20

But
if the value is 20 the voltage is 8V
if the value is 80 the voltage is 2V
but I guess it should be vice versa?

Please Log in or Create an account to join the conversation.

More
6 years 8 months ago #156990 by tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum