December 16, 2018, 06:19:06 AM
Robotforum | Industrial Robots Community

 Main and Routins Problem


Author Topic:  Main and Routins Problem  (Read 2263 times)

0 Members and 1 Guest are viewing this topic.

June 17, 2017, 09:09:58 PM
Read 2263 times
Offline

kntgzhn


Hello Everyone,

I have some problems with our robot and programming. I use offset function of robot. So, robot put the standart package.
I write 18 routines program ( up area 1, up area 2, up area 3..... and down area 1, down area 2, down area 3 .... until 18 number )

And then, ı created main program, called all programs. Program is working without problem. For example; ı want to start program from "up area 8 point"  BUT when program is working as automatically, pointer is going main ( starting point). Program is not going my line. In manuel mode, ı have not problem. Only automatic mode.

How to prevent this problem? Is there any advice or view)

Linkback: https://www.robot-forum.com/robotforum/index.php?topic=23479.0
« Last Edit: June 17, 2017, 09:26:44 PM by kntgzhn »

Today at 06:19:06 AM
Reply #1

Advertisement

Guest

June 17, 2017, 10:11:48 PM
Reply #1
Offline

jarm


You need to start the program from the beginning in auto. Stop before you jump from all programs to your first routine. Move the program pointer to the routine you want to call next. Auto, motors on, play....done


Sent from my iPhone using Tapatalk

June 17, 2017, 10:16:08 PM
Reply #2
Offline

jarm


You can not start a program from the middle of it in auto. All programs start from the main in auto. You can move the program pointer after you start it though. In manual you can start from anywhere cause your in MANUAL


Sent from my iPhone using Tapatalk

June 17, 2017, 10:22:59 PM
Reply #3
Offline

jarm


And if you don't know how to move the program pointer (pp). In manual, in your program editor, open the debug menu, highlight the line you want to jump to, press pp to cursor in the debug menu. Little yellow arrow should move next to your line. Auto, motors on ( little white button) play... done


Sent from my iPhone using Tapatalk

June 18, 2017, 06:22:22 AM
Reply #4
Offline

kntgzhn


Yes that's problem. Why am I move program pointer in auto mode?
When I press auto button, robot move "pp to main".
In this situation, I can use easily but it is complex for our operators.


Today at 06:19:06 AM
Reply #5

Advertisement

Guest

June 18, 2017, 07:41:03 AM
Reply #5
Offline

rizze


I think you should use a CallByVar  instruction.

June 18, 2017, 12:58:29 PM
Reply #6
Offline

jarm


Then you should write a new starting routine that lets you pick which routine you want to begin with. It's a little more complex but very doable. You are able to use if, then, else statements and user inputs. I'm sure you could build a starting routine that asks the operator where to begin.

I don't know how often you need to start with a different routine but if you place a stop cmd at the beginning of your first routine and show your operators how to move the program pointer then it should only take 5 secs to move it and restart.

 CallByVar will work as well but your operator needs to set the variable to the proper value.
 
Sent from my iPhone using Tapatalk
« Last Edit: June 18, 2017, 01:26:55 PM by jarm »

June 19, 2017, 11:32:19 AM
Reply #7
Offline

Iowan


Most of my S4C+ robots (and all my IRC5's) restart in Auto from Main... though I have a couple that are set to start from whatever program they were last running. That's not usually what I want, but might be what you're looking for.  I'll have to re-discover the flag that selects "current" or "main".

April 12, 2018, 10:57:56 AM
Reply #8
Offline

el_shaff3y


try to use

While true do

 your code in automatic

endwhile

April 23, 2018, 06:46:47 AM
Reply #9
Offline

hermann


You can try to add these lines in sys.cfg:
Code: [Select]
#
AUTO_COND_RESET:
      -name "AllDebugSettings"
and then load this .cfg file.

Today at 06:19:06 AM
Reply #10

Advertisement

Guest


Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

xx
PP to main, not to main??

Started by marcelvandekamp on ABB Robot Forum

5 Replies
3258 Views
Last post April 30, 2014, 03:45:24 PM
by bp
xx
Pointer on Main

Started by i_robot72 on ABB Robot Forum

13 Replies
5991 Views
Last post January 12, 2016, 06:01:37 PM
by i_robot72
xx
Main job from scratch?

Started by jstavevene on Yaskawa Motoman Robot Forum

5 Replies
3000 Views
Last post October 16, 2014, 10:21:16 PM
by Fabian Munoz
xx
PP to main at power up S4C

Started by Kroket on ABB Robot Forum

4 Replies
2502 Views
Last post October 07, 2013, 06:45:02 PM
by Kroket