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,421
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,921
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
9
Views
203
the conveyor can stop because of a safety sensor or safety switch. And also it can stop because of an object jam detector sensor. If the conveyor...
Replies
5
Views
186
Good Day to all of you, this is my first post, i will try to explain as best as possible, english is not my natural language. I am performing an...
Replies
0
Views
40
Back
Top Bottom