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
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings