Nirtec Studio Forum

General Category => Machines Simulator => Troubleshooting => Topic started by: PaaVil on August 27, 2025, 11:36:24 AM

Title: GetRotation angle problem
Post by: PaaVil on August 27, 2025, 11:36:24 AM
If I use GetRotation to get the angle it only goes 0-90 and although the part still rotates the angle starts to go back to 0 when it reaches 90. So if I rotate a part to 100 degrees the GetRotation will go to 90 and then go down to 80. After a long while I found out that it only does that when measuring rotation around x-axle. If i measure from z- or y-axle it works normally and measures to 100. Is this on purpose or is it a bug?
Title: Re: GetRotation angle problem
Post by: EasyPLC_Master on August 27, 2025, 05:49:53 PM
Can you send an example of the behavior described? a .maq file will be OK.
Title: Re: GetRotation angle problem
Post by: PaaVil on August 29, 2025, 11:35:41 AM
Here is a maq file with three boxes each made to rotate around a different axis. Rotation is achieved with digital output and angle is shown at analog input.
Title: Re: GetRotation angle problem
Post by: EasyPLC_Master on August 29, 2025, 09:57:39 PM
OK, seen!
It's a bug regarding angular reading; it will be fixed in the next version.

Thanks for the feedback.