Lichuan 4 axis stepper need help-

More
24 Jan 2026 13:16 - 24 Jan 2026 13:18 #341857 by Hakan
Replied by Hakan on topic Lichuan 4 axis stepper need help-
Well, I think it follows the state diagram up to the point of operation
 

But for sure it isn't perfect. I have noticed multiple homing components around even if I don't use it myself.
Can you add support for PV (Profile Velocity) while you are at it? I made a quick fix for that.
PV is suitable for spindle mode.

You should be able to transition states manually, in halshow for example, using controlword and check statusword.
Maybe that can give a clue to why it seems so grumpy.
Attachments:
Last edit: 24 Jan 2026 13:18 by Hakan.
The following user(s) said Thank You: tommylight

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

  • rodw
  • rodw's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
24 Jan 2026 20:37 #341874 by rodw
Replied by rodw on topic Lichuan 4 axis stepper need help-
I gave some detailed instructions to Grok last night then slept like a baby.. I always wanted to use a C union to break out status word etc into  bits starts to make it readable.
 
 
Attachments:

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

More
24 Jan 2026 21:52 #341877 by Hakan
Replied by Hakan on topic Lichuan 4 axis stepper need help-
Its just a snippet of code and not the whole picture.
But I wouldn't switch state before statusword says the drive has switched state.
It would be in some pending_switch_state perhaps.

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

  • rodw
  • rodw's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
24 Jan 2026 22:05 #341879 by rodw
Replied by rodw on topic Lichuan 4 axis stepper need help-
Yes, I need to check it all. I did see previously that cia402 was not waiting for confirmation of homing or something so will watch for that....

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

Time to create page: 0.165 seconds
Powered by Kunena Forum