arnoldzw

Compile error s

3 posts in this topic

Hi all,

 

When compiling my program i`ll get an error:   The special relay M8023 is reset by the function INT_TO_REAL.

Program is running OK, but don`t know what gives this error, and how to solve this error.

 

When searching the forum i found this theat where some user tells that special relay M8023 is for floating operation.

 

I`am using an FX2n CPU, and do some calculations with floating numbers.   Set an WORD to floating. and do some calculations with it.

 

 

 

Share this post


Link to post
Share on other sites

M8023 is the enable condition for Floating Point operations in the FX Series PLC.

It sounds like the output of your conversion is switching off the M8023 at the end of your calculation.

The examples I have seen online change the M8023 to 0 on a seperate network/rung.

You should try doing this if you want to eliminate this 'warning'. However if your code is working as desired, you can discard this message.

ftp://81.105.173.212/PLC/Legacy%20Product/Fx%20Series/Fx/INSTRUCTIONS/SAL232A.PDF

 

Regards

Daniel.

 

Edited by collinsd70

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