
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
- 398 UpFeed
- 19 Tutorials
- 13 RobotApps
- 299 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 324 IRC5
- 63 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 813 RAPID Programming
- 6 AppStudio
- 3 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings