Hi all,
my Situation :
I have to rotate a cylindric Part according to a previously calculated angle.
There is one position that's calculated with that angle. For the most times its working fine, but there are some very few times where my problem occurs.
The calculated angle drives axis 6 to software limit. When I checked, the calculated angle was always -34. xxx/-35.000
Starting Situation : Position teached at A6 - 28°, A 0.00. Linear movement.
I wanted to Interrupt when the next positional value in axis 6 was going to be bigger than angle (345°)
Position_actual=$POS_ACT in sub.sps
INTERRUPT DECL 4 WHEN position_actual.A6 >= angle (angle.A6 in tryouts with E6POS and E6AXIS) DO angle_exceeded()
I declared angle in config.dat
as INT, REAL, E6POS and E6AXIS in different tries. None of it worked. Syntax check told me they don't match because of different type.
I tried to fill $AXIS_FOR into position_actual and compare with E6AXIS
position_actual=$AXIS_FOR
If position_actual >= angle.A6....
but that didn't work either.
Anyone got a tip or solution more elegant than that what I'm trying to do?
Would appreciate that very much
Thanks