ML1400 HSC overflow problem

Join Date
Nov 2019
Location
Bambang
Posts
1
I have programmed a cut-to-length system on ML1400 which I am simulating with a voltage controlled oscillator driving HSC:0. The program uses a touch screen to set the length of the sheet and number of sheets in a batch. The HSC counts the (simulated) encoder, and slows and stops the VCO when the preset is reached.
All works as expected for preset lengths up to 1999(mm). However if I enter a preset length 2000 or greater, flag HSC:0/OF sets, the counter resets to zero and it screws up my slowdown calculation math. But I have set the overflow value HSC:0.OVF to 99999 so there is no way the accumulator is reaching this value. What is going on?
I originally had HSC:3 as the operational counter where the problem was noticed. I shifted code and wiring to use HSC:0 but the problem is exactly the same. :unsure:
 
Assuming the number of pulses = mm then I don't know what the problem is.
As far as I know the HIP value if reached will reset the count.
Remember that the transfer to say N7:xx will only handle integers so anything above 32767 will result in an error or negative number.
 

Similar Topics

How to wire a Differential encoder to ML1400. Using the HSC I have set up the HSC before using Single ended but have a nice US Digital...
Replies
0
Views
1,112
Setting up the Function file for the HSC as Mode 8 I think I only use the A+ & B+ inputs on I:0/0/0 & I:0/0/1. Why do they show A/C & B/D for the...
Replies
0
Views
1,242
Hi Guys I'm new to Allen Bradley and I'm trying to figure out how to get a simple encoder input into the MicroLogix 1400. After looking through...
Replies
13
Views
5,802
Hi Guru's I have been trying to set up my HSC interrupt (HSC:0/HPI)to trigger a counter in my ladder logic. I read the manual like 5 times and I...
Replies
10
Views
4,333
Hello, I am new here and have been working with PLCs for a few years now. I have been tasked with setting up a Micrologix 1400….. to a Cmore 10...
Replies
10
Views
447
Back
Top Bottom