Advanced Search

Search Results (Searched for: )

  • oneKone
  • oneKone
30 Jul 2025 22:03
Replied by oneKone on topic Ethercat CATIO-A setup

Ethercat CATIO-A setup

Category: EtherCAT

again, cheers once again for pointing me in the right direction.

unfortunately i'm still far to green to get a working hal snippet for pwm control, but chatGPT isn't... after a bit of back and forward this was the result:

setp lcec.0.0.PWM-OUT-0 98304000 #sets frequency to 1.5khz

loadrt scale count=1
loadrt conv_float_u32 count=1

addf scale.0 servo-thread
addf conv-float-u32.0 servo-thread

setp scale.0.gain 3.5

net gui-rpm spindle.0.speed-out => scale.0.in
net scaled-rpm scale.0.out => conv-float-u32.0.in
net rpm-u32 conv-float-u32.0.out => lcec.0.0.DUTY-OUT-0


i now have a working PWM out!

i did try outputting to analog out but there seems to be some problem with it, for example 20 000 rpm would output 3v, 10 000rpm would give 5v, 7500 rpm would output 2v. It's not the end of the world, but hopefully i can get it sussed at the very least for others that try this board.

once again,
cheers for the help to get a working PWM out!
Displaying 14236 - 14236 out of 14236 results.
Time to create page: 0.342 seconds
Powered by Kunena Forum