Sannin

Function Sin,Cos in the sysmac studio

3 posts in this topic

Good morning everyone, I'm having difficulty using the "sin" and "cos" functions in sysmac, in particular the results of the functions are not correct, for example if I convert 180° into radians, with the result 3.14159 and then I do "sin", the result is -8.7422777e-08 when it should be 0. Could anyone tell me how to solve the problem? Thank you all

sin_cos.jpg

Edited by Sannin

Share this post


Link to post
Share on other sites

Hi,

The value is almost 0 ( 3.14159  is just approximation of PI) If there's a "." at the end of monitored value that means that this value is not all displayed.

 

sinus.jpg

Share this post


Link to post
Share on other sites

In the end I use the LREAL as a format to get the result even closer to zero. A thousand thanks

Edited by Sannin

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now