# "move PP to main"

**URL:** <https://tech-community.robotics.abb.com/t/move-pp-to-main/1647>\
**Category:** Robot Controller\
**Created:** [January 29, 2008, 10:28am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647 "2008-01-29T10:28:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![memphiss](https://avatars.discourse-cdn.com/v4/letter/m/258eb7/32.png) [@memphiss](https://tech-community.robotics.abb.com/u/memphiss)\
**Post date:** [January 29, 2008, 10:28am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/1 "2008-01-29T10:28:06Z")

</div>

I have a problem on how to use RAPID instruction to let do similar things like “move PP to main” on teach pendant. Possible to do that?

S4C+ machine M2000

My problem is: every time I turn tobot key switch from “Auto” to “Manual”, PP will stop at the last recent line. After that, switch to automatic mode again, PP will stay at that line also and if you confirm with “Start” button,PP will start from that line. So now I have to click “move PP to main” before switch to auto mode everytime.

But I want robot to start from Main program everytime reset to automatic mode. Because doing this robot can call initialize module and it is more safe to machine.

Anyone knows how to realize this by special setting or a certain RAPID instruction?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Vador](https://avatars.discourse-cdn.com/v4/letter/v/74df32/32.png) [@Vador](https://tech-community.robotics.abb.com/u/Vador)\
**Post date:** [January 31, 2008, 12:53pm UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/2 "2008-01-31T12:53:10Z")

</div>

Hello,

you can try to do a simple routine with “ExitCycle” instruction.

And call the routine with a system “RESTART” Event.

It should do what you want.

Ex.

PROC ResetToMain()

ExitCycle;

ENDPROC

Ex. in SYS.CFG

In te section “CAB\_EXEC\_HOOKS:”

-Routine “ResetToMain” -Shelf “RESTART”

Bye.

---

<div class="post-metadata">

**Author:** ![lemster68](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/lemster68/32/1945_2.png) [@lemster68](https://tech-community.robotics.abb.com/u/lemster68)\
**Post date:** [February 14, 2008, 5:45pm UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/3 "2008-02-14T17:45:25Z")

</div>

Greetings,

I suggest that you read up on the function IsStopStateEvent. Then connect the START event to a routine using that function, if the result of IsStopStateEvent PPtoMain is false, you may prompt the user to Exitcycle or automatically ExitCycle without prompt. I would caution that you have some kind of Home check to ensure that you do not crash the robot.

LJ

---

<div class="post-metadata">

**Author:** ![vulpes\_h](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/vulpes_h/32/1293_2.png) [@vulpes\_h](https://tech-community.robotics.abb.com/u/vulpes_h)\
**Post date:** [February 15, 2008, 3:21pm UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/4 "2008-02-15T15:21:45Z")

</div>

it is also “system inputs” that can start your program from main…

you can trigger a start main " from a programmable key …

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/system/32/6_2.png) [@system](https://tech-community.robotics.abb.com/u/system)\
**Post date:** [August 16, 2008, 8:49am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/5 "2008-08-16T08:49:40Z")

</div>

you can let motorson = startmain. Every time you press Motor on button the PP will go to the top of program.

Hope this helps

---

<div class="post-metadata">

**Author:** ![carmila](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@carmila](https://tech-community.robotics.abb.com/u/carmila)\
**Post date:** [August 27, 2008, 7:00am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/6 "2008-08-27T07:00:02Z")

</div>

hi, how to let the motors on = start main? (pp to main)

one question again, can i make the start button (from FP) is triggered from other button? (maybe from PLC). So, I only need to turn on the IRC5, and my PLC, then I only press one button from PLC, and my system(both robot and PLC) work. Is it possible?

thank you

carmila

---

<div class="post-metadata">

**Author:** ![Thilbi](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@Thilbi](https://tech-community.robotics.abb.com/u/Thilbi)\
**Post date:** [August 27, 2008, 8:40am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/7 "2008-08-27T08:40:12Z")

</div>

Hi,

you can use the system inputs and outputs. One example from an eio.cfg (IRC 5):

SYSSIG\_IN:

-Signal “diProgStart” -Action “Start” -Arg1 “CONT”

-Signal “diMotorOn” -Action “MotorOn”

# 

SYSSIG\_OUT:

-Status “AutoOn” -Signal “doIRBinAuto”

-Status “CycleOn” -Signal “doProgRun”

# 

More information you can read in the documention “systemparameters”.

Best regards  
Thilbi

---

<div class="post-metadata">

**Author:** ![carmila](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@carmila](https://tech-community.robotics.abb.com/u/carmila)\
**Post date:** [August 27, 2008, 11:38am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/8 "2008-08-27T11:38:25Z")

</div>

hi, Thilbi.

Thanks for your advice. I will read and try it.

Thank you so much:wink:

carmila

---

<div class="post-metadata">

**Author:** ![carmila](https://avatars.discourse-cdn.com/v4/letter/c/4bbf92/32.png) [@carmila](https://tech-community.robotics.abb.com/u/carmila)\
**Post date:** [September 9, 2008, 4:02am UTC](https://tech-community.robotics.abb.com/t/move-pp-to-main/1647/9 "2008-09-09T04:02:54Z")

</div>

hi, Thilbi,

now I can start my program (from main) only from plc signal.

thank you so much.
