CloudHead84
Hello everyone!

Since i didnt find alot of motion control projects i recently started to develop a stepper controller, that is controlled over modbus TCP via compliant function Blocks/Functions for OpenPLC (designed after PLCopen motion guideline).
Hardware will be a Teensy4.1 with onboard Ethernet for step/dir-signals.
[159583834-0b0fe905-bf78-46a9-b57c-8987204d72fe]

project status
  • no release yet
  • modbus TCP communication is running for 1 motor
  • first openPLC function blocks created in Codesys (MC_AxisModbus, MC_Power, MC_Reset, MC_Stop, MC_MoveVelocity, MC_MoveAbsolute, MC_MoveRelative)
  • first function blocks ported to OpenPLC

253C3B0E-B250-4833-B77E-12B0FC07B8B3.jpeg[158897530-49c3237d-0893-4524-8a08-eb9b87bab08a]

  Unbenannt.jpg 

————————
Update:
I did first stepper moves :-)

https://youtu.be/bMGx0n8RxtE

Greetings
Nils

Reply 2 0
CloudHead84
i created a GitHub repo.

https://github.com/CloudHead84/Modbus-Stepper-Controller
Reply 0 0
thiagoralves
This is pretty cool! Thanks for sharing
Reply 2 0
CloudHead84

Thank you very much, Thiango.

I still have pretty much to do, but finally i have a "vision" or roadmap in my mind for the a first release.

The final goal still is to enable stepper axis groups for coordinated motions... But that depends on the stepper librarys...

Reply 1 0
CloudHead84
Up to 4 steppers are now supported.

Stepper.jpg
Reply 1 0
18835130897
it is cool!I used your program and tried using LD, but the axis connection part showed red and the values did not change. Can you help me😭tmp1A1C.png
Reply 0 0
18835130897
it is code,i need help😢
Reply 0 0
Reply