I recently came across a strange error related to the motion planner configuration, which I’m hoping someone might be able to shed some light on as I haven’t been able to find info online.
50366: Reference Error Description
An error has occurred in the reference calculation in motion planner 1. Internal status -202. Consequences
The controller goes to Motors Off.
What is concerning is that there were no changes made to the motion configuration, and the process was running smoothly up until this error occurred. I made a slight change related to some custom datatypes using a RECORD, but there doesn’t seem to be any connection to this error. For troubleshooting, I loaded an older version of the module, restored a previously working back-up, and also restarted the system with no success. MoveAbsJ commands at the start of the program are working correctly, but the error appears at the first use of a MoveL or MoveC command.
Does anyone have any info related to motion planners or reference calculations? Thanks in advance for any help or advice!
Thanks for the help Lemster. I did attempt an I-start Reset, but the problem persisted.
The solution turned out to be to update the revolution counters of our independent axis (M7DM1). This axis is an external Siemens motor and when switched to independent mode with the IndCMove command, we would then get this error at the next MoveL or MoveC. Updating the rev counters is an easy enough fix, but I’m still left wondering what could have caused this error in the first place.
Yes the external axis ( a Siemens MU200 motor) is first reset and then switched to independent mode. Then when the MoveL command begins, the motor should begin rotating according to a TCP velocity system output. The error appeared whenever this external axis first tried to spin.
Here is the PROC which initializes the M7DM1 axis: