Share variables between 3+ RAPID Tasks
Kappa95
✭
Hello community,
I am working with an IRB 2400/16 and I am developing an applications which uses 3 tasks: T_PAR, T_EXTRUDER, T_ROB1.
T_PAR is a tasks which communicates via socket for getting a data message and save the message in 8 variables: 6 for the pose and 2 for speed and extrusion parameter.
T_EXTRUDER: takes the extrusion parameter from the reading in T_PAR and makes a communication socket with another device.
T_ROB1: Takes the pose data from T_PAR and executes the motion.
Question: the variables are saved in SYSTEM module and shared installing the module in the autoloading. But they are only shared between T_PAR and T_EXTRUDER. Is it normal?
Thank you in advance
Fede
I am working with an IRB 2400/16 and I am developing an applications which uses 3 tasks: T_PAR, T_EXTRUDER, T_ROB1.
T_PAR is a tasks which communicates via socket for getting a data message and save the message in 8 variables: 6 for the pose and 2 for speed and extrusion parameter.
T_EXTRUDER: takes the extrusion parameter from the reading in T_PAR and makes a communication socket with another device.
T_ROB1: Takes the pose data from T_PAR and executes the motion.
Question: the variables are saved in SYSTEM module and shared installing the module in the autoloading. But they are only shared between T_PAR and T_EXTRUDER. Is it normal?
Thank you in advance
Fede
0
Best Answers
-
The Data must be declared as PERS in all tasks which must share it.Lee Justice0
-
Kappa95 said:But with PERS the data can be modified between all tasks?
I usually only to declare the "initial value", the :=, in one of the task, e.g.
T_ROB1: bTest:=TRUE;
T_ROB2: bTest;
T_ROB3: bTest;
-----------------
David
Swedish freelance ABB robot programmer0
Answers
-
But with PERS the data can be modified between all tasks?0
-
yes-----------------
David
Swedish freelance ABB robot programmer0 -
lemster68 said:The Data must be declared as PERS in all tasks which must share it.
//Markus Näslund1
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings