Orient Type Not Found

in RobotStudio
Hello,
I am an architecture student working with an IRB2600. I have created a set of targets that are all aligned with the toolhead work object. In rapid I am trying to declare a constant orientation, in order to reorient these points so the tool head reaches the targets at a prescribed angle. I have done something similar before, but for some reason I am getting an error saying, "type not found: orient"
This is an excerpt from the code in question:
CONST orient AngleP := [0.653281482, 0.27059805, 0.653281482, 0.27059805];
PointA.rot := AngleP;
Any thoughts/suggestions.
Thanks.
I am an architecture student working with an IRB2600. I have created a set of targets that are all aligned with the toolhead work object. In rapid I am trying to declare a constant orientation, in order to reorient these points so the tool head reaches the targets at a prescribed angle. I have done something similar before, but for some reason I am getting an error saying, "type not found: orient"
This is an excerpt from the code in question:
CONST orient AngleP := [0.653281482, 0.27059805, 0.653281482, 0.27059805];
PointA.rot := AngleP;
Any thoughts/suggestions.
Thanks.
Tagged:
0
Comments
-
Worked here.
VAR robtarget PointA:=[[1000,1000,1000],[0.5,0,0.5,0],[-1,0,-1,0],[9E9,9E9,9E9,9E9,9E9,9E9]];
CONST orient AngleP:=[0.653281482, 0.27059805, 0.653281482, 0.27059805];
PROC ChangeRot()
TPErase;
TPWrite ValToStr(PointA.rot);
PointA.rot := AngleP;
TPWrite ValToStr(PointA.rot);
ENDPROC
0 -
Hmmm.
Thank you.
Seems like something else is the problem then. I didn't think the error was in the code.
I will keep investigating.0 -
I figured out the problem, I named a variable orient, which obviously caused trouble.
Thanks
~JS0
Categories
- All Categories
- 5.6K RobotStudio
- 399 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 336 IRC5
- 67 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 828 RAPID Programming
- 12 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 107 Collaborative Robots
- 5 Job listings