SLC 5/03 S:24 indexed address fault

zetsubou

Member
Join Date
Jul 2016
Location
Melbourne
Posts
6
Hi everyone, I've got an SLC 5/03 that's suddenly started doing some funny things. I'm wondering if it might indicate the PLC is failing.

When S:24 has a value of -1, data table shows all bits high (1111111111111111). Does this mean it actually has a value of 65535?

Also, if we had an address #N97:0 when S:24 = -1, wouldn't this result in a major fault because it's out of N97 range?

It's worked for years until now and the value -1 is integral to the PLC logic working, I just don't understand how.
 
When S:24 has a value of -1, data table shows all bits high (1111111111111111). Does this mean it actually has a value of 65535?
No, bit 15 is a sign bit.

http://www.binaryconvert.com/result_signed_short.html?decimal=045049

Also, if we had an address #N97:0 when S:24 = -1, wouldn't this result in a major fault because it's out of N97 range?

No, a sign integer has a range of -32768 to +32767.

Can you tell the forum what the fault code is? (under processor status, error tab)
 
Last edited:

Similar Topics

I have an automatic storage and retrieval system which uses indexed addressing to store the data for each stored and retrieved product. This...
Replies
7
Views
2,417
I have a complex SLC program that used doubel index addressing. For example N[N47:162]:[N47:1]. When it coverts through the AB conversion tool...
Replies
4
Views
4,072
Hello All! I am writing today because I cannot figure this out for the life of me. Another site I am affiliated with keeps having their slc 5/03s...
Replies
10
Views
188
I’m attempting to send a temperature from a SLC-5/02 to an EZiMarquee display. The vendor said to use a MSG instruction to send the data to the...
Replies
1
Views
110
Hello all. I have a few SLCs in my plant and of late we've seen a weird issue: The system will be running normally and then randomly the outputs...
Replies
2
Views
121
Back
Top Bottom