AB SLC5/03 OTL & OTU instructions

LJBMatt said:
If in 89 years these pumps are still running off of the same processor and get an overflow fault, odds are you won't be available to take the phone call. I'd say the lifecycle of the system will be shorter than the time it takes for your counter to overflow.

When the counter reaches 32767 it will roll over to -32768 and then count up towards zero. Your PLC program will not care. You don't get an overflow fault on a counter. The counter itself has an overflow bit but you can ignore it. The .ACC/0 bit will toggle as normally because of the two's compliment binary form used for negative numbers. You never need to care what the actual value of .ACC is, only what the value of .ACC/0 is, and it will alternate properly.

It could alternate once a minute and you still don't have to worry about overflow, thats the beauty of twos compliment binary.

A few others have suggested a flip flop. That is also a very good way to solve the problem. Make sure you use a one-shot in your comparisson for the time. The one shot is not necessary with the counter in my example.

0111111111111100 = 32764
0111111111111101 = 32765
0111111111111110 = 32766
0111111111111111 = 32767
1000000000000000 = -32768 <- counter rolls over, notice ACC/0 and 2's compliment form.
1000000000000001 = -32767
1000000000000010 = -32766
 
Last edited:
Very good. Thank you all. I've gotten more practical information here with one post than with 50 calls to AB tech support.
 
Very good. Thank you. I've gotten more practical information with this one post than with fifty calls to AB tech support.
 

Similar Topics

I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,561
I am trying to connect to SLC5/03 using an FTDI usb to rs232 with female to female converter at 1 end... however I can not connect to it ... the...
Replies
8
Views
1,278
Good evening. I am in serious need of help. I am trying to connect a Panelview Plus 7 Standard to a SLC5/03(1741-L531) using a Moxa MGate...
Replies
3
Views
639
Hi. I am having trouble establishing comms between an slc5/04 and panel view plus 7 via a PLX51-net-eni. The set up is: 5/04 Channel 0 DF1...
Replies
8
Views
930
Hi All, I have programmed some MSG instruction in SLC5/05 64k CPU series D FW 13 brand new cpu. 2 of the MSG instructions are direct IP to other...
Replies
3
Views
984
Back
Top Bottom