- Posts: 74
- Thank you received: 47
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Great feedback I wasn't really happy with what came after the state machine but I've had to put this project down for a week or so and you forget everything when its so complex.rodw, I kind of think of a structure like this
Code:if drive ready if csp else if csv else if pv ... else if probing else if homing if homing_method == 1 else if homing_method == 2 else if homing_method == 37 Do the torque homing. Although it doesn't seem to be standard Keep track of what op-mode we were in last time so we recognize a transition between op-modes. To deal with offsets and such things.
Please Log in or Create an account to join the conversation.
Can you explain this timer? I would have thought you get the homing signal from linuxcnc, pass it on to the drive then loop until bit 12 goes true keeping lcnc in sync.. I can't remember off the top of my head how we check that the homing request has actually stuck but I seem to remember we could do this too before doing the loop. Bit 13 will tell us if there is an error during homing.@rodw Yes, I would have implemented it in the same way in a PLC. The only thing missing is the safety timer from start homing to axis in motion. Then the homing would be practically monitored. Regarding the axis jumping, you could set the feed rates to minimum after completion until Linuxcnc has synchronized.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.