Author Topic: INITIALIZE and RESET a HOLDABLE PROGRAM on STARTUP  (Read 769 times)

0 Members and 1 Guest are viewing this topic.

Offline IlFincoITA

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 97
INITIALIZE and RESET a HOLDABLE PROGRAM on STARTUP
« on: November 23, 2017, 04:40:48 PM »
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...

Offline Vladarius

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 23
Re: INITIALIZE and RESET a HOLDABLE PROGRAM on STARTUP
« Reply #1 on: December 18, 2017, 08:30:37 AM »
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.

Offline Ashraf

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
Re: INITIALIZE and RESET a HOLDABLE PROGRAM on STARTUP
« Reply #2 on: December 20, 2017, 10:11:27 AM »
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)