gromit

SLC5/05 error fault

4 posts in this topic

Experienced a processor error/fault on SLC5/05.

Major Error S:6=20h

Error Description: A minor error bit is set at the end of the scan.

Narrowed it down to program, but can't find the culprit.

I added  OTU S:5/0 to end of program, which allowed the error to clear and the processor to begin running/executing again.

What are the boundaries, or min & max values for integers and floats???

Thanks!

Share this post


Link to post
Share on other sites

it seems you have math overflow trap in your program and sometimes it is not easy to troubleshooting . For me, going online and  test to eliminate  suspiciously logic  one by one  work best.  

I think you also need to reset the S:1/13 also so the program can continue run ,I would reset S:5/0  and S:1/13 if you just simply  want the program to run and ignore the error . However, this does not fix the issue that you have overflow in the program.

the signed integers are 16 bit so it  has range  -32,768 or 32,767

for the floating points, there are more to it .The discussion is  here you can check it out

 http://forums.mrplc.com/index.php?/topic/16332-slc-500-floating-point-limit/

 

Hope this helps!

Edited by mikey431

Share this post


Link to post
Share on other sites

Much appreciated Mikey.

I believe also that it is a math overflow error, but am unable to find the culprit.

The program is running after adding the S:5/0 OTU to the end of the program.

I saved the program and data table values, and am looking through it now.

Thanks for the equivalent ranges which I will use up against all values in the subroutine that is causing the error.

Much appreciated!!!

Share this post


Link to post
Share on other sites

Mikey,

I looked through the entire LAD52 routine, and didn't see anything obvious.

I attached the PDF of the subroutine/program to see if maybe you could spot something.

Thanks.

CAL86246_LAD52_160112.pdf

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