Multi Tasking
ravi
✭
in RobotStudio
Hi,
I want to write a multi tasking program. For this purpose I created two tasks. T_ROB1 and T_ROB2. T_ROB2 doesnt contains any movement instructions. T_ROB1 has a progam which needs data from a program in T_ROB2. How can I pass this data between these two programs?
I want to write a multi tasking program. For this purpose I created two tasks. T_ROB1 and T_ROB2. T_ROB2 doesnt contains any movement instructions. T_ROB1 has a progam which needs data from a program in T_ROB2. How can I pass this data between these two programs?
0
Comments
-
You can use a variable declared as PERS for the shared data. It must be declared in both tasks, but will be stored in shared memory.Henrik Berlin
ABB0 -
The problem with PERS is the value cannot be changed. I would like to get the position of the robot from T_ROB2 and send it to T_ROB1. T_ROB2 receives the robot position using TCP/IP communication from the camera.
0 -
I think you can change the value of a PERS variable. It is the same as a normal variable except that it remembers the last value that it was assigned, even if the program is stopped and started again.0
-
Thanks for the help. With some modifications of my program it works with persistant variables.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings