Eight Digit Totalizer
Eight Digit Totalizer
(OP)
I need to program a 8 digit totalizer.I have a pulsed input per 1K gallons.The mech. local totalizer needs to match a remote HMI display (wonderware).When the value reaches 65535 (Modicon PLC) This is where I'm Having Trouble.





RE: Eight Digit Totalizer
Use 32-bit count instead of 16-bit.
RE: Eight Digit Totalizer
RE: Eight Digit Totalizer
RE: Eight Digit Totalizer
RE: Eight Digit Totalizer
The modicon could well be one of those PLCs that only support integers. You are incrementing a data register for each unit passed. If you check the manual you may well find that the maximum value for an integer is 65535If this is the case look to see if there is a DREG DOUBLE or REAL -(yes 32 bit as xyzz says) if not then consider making an overflow flag at 9999 and counting up from there in a second register.
Use your programming PC (not the wonder ware display) to see whats in the register. If it keeps going then your wonderware may be integer.
Have fun now
Don01
RE: Eight Digit Totalizer