RAPID variable hiding/referencing
Grzegorz
✭
in RobotStudio
Hi,
I would like to ask you, whether you know about possibility to hide/cloak one variable with other. Let's assume that I have variable numA defined, next I want to define cloaking variable numB. When I write something to numB, it must be written to numA and in opposite direction also.
var num numA;
reference numB;
numA:=10;
tpwrite numB; !in this moment FlexPendant says "10"
numB:=20;
tpwrite numA; !in this moment FlexPendant says "20"
I hope it's not very stupid question.
Any help appreciated.
I would like to ask you, whether you know about possibility to hide/cloak one variable with other. Let's assume that I have variable numA defined, next I want to define cloaking variable numB. When I write something to numB, it must be written to numA and in opposite direction also.
var num numA;
reference numB;
numA:=10;
tpwrite numB; !in this moment FlexPendant says "10"
numB:=20;
tpwrite numA; !in this moment FlexPendant says "20"
I hope it's not very stupid question.
Any help appreciated.
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