how to store a triggdata type variable
haining
✭
in RobotStudio
I want to store a triggdata type variable , and call different triggdata in different cases, for:
var triggdata a{999};
var triggdata b;
var triggdata c;
a{1}:=b;
a{2}:=c;
TriggL p,v,a{1},z,t\WObj:=wobj0;
But I can;'t just use a "=" , because triggdata is NON-VALUE type, so I don't know how to store a triggdata type, anyone knows that ? THANK YOU!
var triggdata a{999};
var triggdata b;
var triggdata c;
a{1}:=b;
a{2}:=c;
TriggL p,v,a{1},z,t\WObj:=wobj0;
But I can;'t just use a "=" , because triggdata is NON-VALUE type, so I don't know how to store a triggdata type, anyone knows that ? THANK YOU!
Tagged:
0
Comments
-
I find a way to solve this , after TCP reached target point , triggIO will set the output , so I can use if instruction see which signal has been set, restore a num value, when I need to call the relative triggdata I just need to see the value of num, and doing the right Trigg .but this kind of way has a very clear shortage, I can't get the set output without reaching target point , So robot get interrupted during moving, I still can't record the triggdata, sad.0
-
And another question, RS can use pointer ?
such as
char *p , like C ?
I don't see any data type like this0 -
OK I found TriggDataCopy
I should have read instructions more carefully0 -
I found TriggDataCopy instruction in RW6 , but it doesn't exist in RW50
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)
- 783 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings