# Multitasking - Recognize "PP to main" from non motion task (Button activated AND SystemInput)?

**URL:** <https://tech-community.robotics.abb.com/t/multitasking-recognize-pp-to-main-from-non-motion-task-button-activated-and-systeminput/6610>\
**Category:** Robot Controller\
**Created:** [April 29, 2015, 8:11am UTC](https://tech-community.robotics.abb.com/t/multitasking-recognize-pp-to-main-from-non-motion-task-button-activated-and-systeminput/6610 "2015-04-29T08:11:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erwin](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/erwin/32/2633_2.png) [@Erwin](https://tech-community.robotics.abb.com/u/Erwin)\
**Post date:** [April 29, 2015, 8:11am UTC](https://tech-community.robotics.abb.com/t/multitasking-recognize-pp-to-main-from-non-motion-task-button-activated-and-systeminput/6610/1 "2015-04-29T08:11:53Z")

</div>

Is it possible to recognize that the program pointer in the motion task was set to main, from a non motion multitask which is always running?  
No matter if it was set to main manually or with a system input.

I know that ther is this command: “IsStopStateEvent (\PPToMain)”  
But i cannot specify in which task the event should be monitored. It only works in the task were it was called.
