Hello,
I am currently using a KR8 R1420HW (KRC4 with KSS 8.3.34) for a university project where I map $VEL_ACT to a Beckhoff Stepper Terminal's (EL7037) "Velocity" parameter. I have written a submit program that constantly updates the stepper motor speed based on $VEL_ACT. I would like to optimize my submit program to keep the cycle time as low as possible in order to get a more real time synchronization of the stepper with the robot. I do not have any "WAIT" commands or Interrupts in the program. I mainly use IF ELSE statements so that it only executes the code that I need, depending on the state of my end-effector at that instant.
I have two questions regarding this:
- Is there a way to record and track submit cycle times? If so, how can I find any documentation on it?
- If I go by the default template of .sub, there is a "TORQUE_MONITORING()" function inside the loop. Can someone explain me its purpose and if its going to improve my submit cycle times drastically if I take it out?
Any help is very appreciated as I am still an amateur when it comes to industrial robots and automation in general.