Goody
Member
Has anyone got any good formulas for displaying the speed of a machine in Meters per Minute?
The problem:
A machine has been retro fitted with a small PLC and HMI a few years ago. (Not by me) The plc is controlling some pneumatic arms and valves. The timing of these valves is done by a proxy looking at gear teeth.
The main motor is controlled by a VFD and a potentiometer. The VFD had a plug in speed indicator that was on the main control panel. The operatives used this display to set the speed for different products that passed through the machine.
The speed indicator got smashed and the customer could not locate another (The drive is a make I have never heard of)
I was asked could I put a speed indication on the HMI.
They wanted a cheap and dirty fix as the speed indication is only used for approximation.
I decided to sample the pulses from the proxy, do the math’s (math) and give a fairly accurate M/P/M reading. Luckily the gear teeth that are being sampled are a 1 to 1 ratio with the speed of the machine.
I decided to sample the pulses every .5 of a second, then multiply this by 2 to give pulses per second, then multiply this by 60 for pulses per minute, then divide this by the distance between peak to peak of the gear teeth. To give a meters/per/ minute reading.
The result was accurate enough except for my time base sampling was (say) sometimes counting 17 pulses and next time 16 pulses with the machine running at the same speed.
With the multiplication this was exaggerating the count and the readout was fluctuating by 4 every .5 of a second. I need a steady readout.
Actually; writing the problem out here has just given me the answer but I will still post for the benefit if others to think about and of course for others to give solutions.
Isn’t this what PLC’s are about, - a problem – a good think – a solution.
The problem:
A machine has been retro fitted with a small PLC and HMI a few years ago. (Not by me) The plc is controlling some pneumatic arms and valves. The timing of these valves is done by a proxy looking at gear teeth.
The main motor is controlled by a VFD and a potentiometer. The VFD had a plug in speed indicator that was on the main control panel. The operatives used this display to set the speed for different products that passed through the machine.
The speed indicator got smashed and the customer could not locate another (The drive is a make I have never heard of)
I was asked could I put a speed indication on the HMI.
They wanted a cheap and dirty fix as the speed indication is only used for approximation.
I decided to sample the pulses from the proxy, do the math’s (math) and give a fairly accurate M/P/M reading. Luckily the gear teeth that are being sampled are a 1 to 1 ratio with the speed of the machine.
I decided to sample the pulses every .5 of a second, then multiply this by 2 to give pulses per second, then multiply this by 60 for pulses per minute, then divide this by the distance between peak to peak of the gear teeth. To give a meters/per/ minute reading.
The result was accurate enough except for my time base sampling was (say) sometimes counting 17 pulses and next time 16 pulses with the machine running at the same speed.
With the multiplication this was exaggerating the count and the readout was fluctuating by 4 every .5 of a second. I need a steady readout.
Actually; writing the problem out here has just given me the answer but I will still post for the benefit if others to think about and of course for others to give solutions.
Isn’t this what PLC’s are about, - a problem – a good think – a solution.