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.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings