Hi! When I turn OFF the machine the program stop on line number X. The next day I turn the machine on againt and I found the program already in that X line. Usually I think is more safe to reinitialize the program and reset it to be sure of the rebot position and it's controls. But do it manually avery time is criticizable. So is there a way to automatically initialize and reset a program each time the machine is turned on for the first time...
INITIALIZE and RESET a HOLDABLE PROGRAM on STARTUP
-
IlFincoITA -
November 23, 2017 at 5:40 PM -
Thread is marked as Resolved.
-
-
When you turn off the machine is a robot in your home position? Because if you jump from the middle of the program to the beginning, you can crush the robot.
-
I agree with vladarious that it can be dangerous, unsless in your initialization routines you can well handle such intermediate "unknown" situations
but to do it ists quite simple. write a routine that is called by a condition handler activated by a digital input (either a HW input, or one of the buttons U1 .. U4 or on the Bus from the PLC, it doesnt matter), and this condition is in running NOHOLD Programm. The routine can then do one of two things...
- either cold start, command: sys_call ('CCRC'). Diadvantage: it will take some time to restart, advantage: every thing will be reset
- or deactivate the programm and activate it again, commands: sys_call('pd', 'progr_path_and_name), delay 50, sys_call('pa', 'progr_path_and_name)