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,426
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,927
Hi all smart and knowledgeable people.I have a hmi connected to 2 Plcs via ethernet.These 2 Plcs connected to control 2 systems in one machine...
Replies
2
Views
82
Hello, We are now working on a software to collet the configuration of different PLC brands ,using a third software to backup all the simens...
Replies
1
Views
65
Dear Experts, I've come across an unusual piece of hardware for AB PLC-5 racks. I mean the NT-1776-HSD-R resolver input module. I have tried...
Replies
0
Views
40
Back
Top Bottom