1/12/2022 11:26 AM | |
Joined: 11/4/2011 Last visit: 2/14/2025 Posts: 256 Rating:
|
Short answer: Retriggering the move command with new target position will technically do the job. You might consider to do the triggering and function call within OB MC-PreInterpolator (or if your PLC is a little older within OB MC-PostServo). These are called right after MC-Servo OB, so probably faster than OB1 or others, and in the same cycle as the motion OBs that then execute the commands, calculate position control and update the technology objects. But be aware that you should keep the runtime of these OBs as short as possible, since otherwise you will have overflows! So do not just put all your code in there, but instead keep it to a minimum. Long answer: There are other alternatives that might be better, but depend on the application. But here the PLC you have sets some limits.
|
Follow us on