Using cPos from motion task in a semistatic task
Hi all,
I’ve been trying to use cPos from a motion task in a semistatic task. Anytime I try it the semistatic task comes up with an argument error for the work object and took data. I am using this to try to measure the distance of weld paths. I am using RW 5.15.
I’ve been trying to use cPos from a motion task in a semistatic task. Anytime I try it the semistatic task comes up with an argument error for the work object and took data. I am using this to try to measure the distance of weld paths. I am using RW 5.15.
PROC MAIN()
1!!!2 AWLC.
I Seam 45
P_1:=Cpos (\Tool: =tR2_A500_45L|wobj: =wobjR2_0p35_2);
WaitTime 0.5;
P_2:=Pos (\Tool:=tR2_A500_45L \wobj:=wobjR2_0p35_2) ;
W_45:= Distance (P
_1, PL
_2) :
Add W45, L_ W45;
This is just the basic bit of the program to see if it would actually work.
Thanks in advance
Tagged:
0
Comments
-
If you want the tooldata and workobjectdata to be known to another task it must be declared in both (or more, if more tasks) and it must be declared as type PERS.Lee Justice0
-
Thank you, got this working now0
Categories
- All Categories
- 5.5K RobotStudio
- 390 UpFeed
- 17 Tutorials
- 13 RobotApps
- 296 PowerPacs
- 404 RobotStudio S4
- 1.8K Developer Tools
- 245 ScreenMaker
- 2.7K Robot Controller
- 302 IRC5
- 55 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 764 RAPID Programming
- 16 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings