PLC AB1500 has a nice instruction like the AutomationDirect Ibox “INC” instruction,

piscis

Member
Join Date
May 2003
Posts
241
Does anyone knows if the PLC AB1500 has a nice instruction like the AutomationDirect Ibox “INC” instruction, (increment) where you can use it as a counter and will reset itself after counting up to 9,999 without giving you an overflow error.
 
No, you gotta roll your own. The CTU might be a good starting point. If you preset it to 10000 and on the following rung XIC the DN bit and RES the counter, then it would do the same thing.

Paul
 
You can just use a RESset on a DoNe bit.

Are you sure 9,999 is where you are getting a math overflow from??? I have programs runing to 32767 with no problem.

copy and paste this into your logic. XIC C5:0/DN RES C5:0
 
The INC instruction is not a counter. Counters only increment on false-to-true transitions. I.e. if input rung is TRUE on this scan AND was FALSE on last scan, then increment counter accumulator. The INC instruction increments its argument every time the input rung is true.

The argument is not being reset by the INC instruction once its value is greater than 9999. The value is rolling over like an odometer.

The reason 9999 is the max value is that the Koyo default math is BCD and 9999 is the max value for a 16 bit word.
 
USe an ADD instruction and add 1 to the current value.

Then use a EQUal to clr the current value.
 

Similar Topics

Does anyone know if AB1500 PLC has an instruction like this one in AD “Filter Over Time - BCD (FILTER) IB-422” Or may know how to accomplish the...
Replies
5
Views
2,427
Has anyone explored averaging inputs or outputs? I think a PID may be the way to go but I have little experience with them. Thanks in advance, Chris
Replies
3
Views
1,928
Hello, I am a plc engineer and I have a job to do in the NIGERIA 25000 TON GRAIN SILOS STORAGE CONTROL PANEL. A problem where the panel is not...
Replies
1
Views
113
GitHub Link: Open Industry Project This is a side project I've been working on for some time. The goal is to provide an open platform for...
Replies
0
Views
122
Dear All, Currently i'm working with Endress Hauser flowmeter and AB PLC and try to integrate with 2 items. Flow meter spec using is Promass...
Replies
6
Views
156
Back
Top Bottom