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.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 301 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 830 RAPID Programming
- 13 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings