
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings