Orient Type Not Found

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.

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

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.

I figured out the problem, I named a variable orient, which obviously caused trouble.
Thanks
~JS