Access data in all tasks
Is there a way to see data across all tasks in a controller? For example i have VAR num nChkCount; declared in task 1 and want to be able to read it in task 2 but unless its declared locally in task 2 it can not be seen.
0
Comments
-
Hello, you have to declare your variable as PERS in the two tasks:
PERS num nChkCount:=0;
☑️2024 - RobotStudio® User Group0 -
Or, could turn nChkCount into a group output to be used by any task.
0 -
im trying to avoid duplicating data, instead im just passing the num through a group output and reading it in the other task0
-
Either way, but it's not data duplication -- by declaring a global PERS in both tasks they stay linked as one.
1
Categories
- All Categories
- 5.5K RobotStudio
- 397 UpFeed
- 18 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 319 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 804 RAPID Programming
- 4 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings