dcooper33
Lifetime Supporting Member + Moderator
Hi guys,
I'm having fits with what should be a simple project.
On a rewinding application, I'm trying to count revolutions of a large bedroll using a flag and high-speed proximity sensor.
Equipment:
PLC-5/40e with 1771-VHSC counter card
Dedicated 24VDC Power supply
TURCK Ni 4-M12-VP6X-H1141 12mm Inductive Prox
The flag is mounted laterally just under the circumference of the 20" diameter bedroll, which is travelling at a surface speed of 1300 fpm. The prox is stationary and picks up the lateral approach of the flag. The flag is 1.5" and passes within 2mm of the face of the prox.
So I calculate
1300 * 12/60 = 260 in/sec = .00384 sec/in
.00384 * 1.5 in = .00576 secs of on-time, every 1/4 sec or so.
The spec sheet for the sensor says its switching frequency is 2000hz, and the 1771-VHSC manual says that a channel in counter mode can handle 1MHZ, so picking up this flag consistently should be no problem.
I know that the number of revolutions per machine cycle is 60. I need to trigger an event on 59, and end it at 60.
The problem is that the sensor does not always count 60. It counts anywhere from 60-68 pulses per cycle. I've never seen it count < 60, but I have verified with an array tracking machine cycle encoder positions that the machine occasionally misses a pulse entirely (There should be a pulse every 6 degrees, but occasionally there are 12). Mostly though, I see double counts < 1 degree apart.
The wiring for the prox and the VHSC input channel is in a dedicated conduit, about a 20 foot run to PLC panel. The power is on a dedicated power supply.
Here's the really odd part: I've used three different power supplies, wired into three different AC (120V) power sources. I have a SOLA 2.5a, a SOLA 10a, and an AB 10a power supply. The AC sources are off the main control power circuit, off of a dedicated circuit (fused) from the control transformer, and a dedicated power cord plugged into the panel convenience outlet (fed from same control transformer).
Now, of all the combinations that I have tried, the ONLY thing that worked consistently was using the 10a AB power supply plugged into the convenience port! With this combo, it counts 60 pulses every time, just like it should.
Never seen anything like this, and don't know what to make of it. Obviously, the one working method is not a workable solution. I've double and triple-checked all the power wiring in the cabinet, and even ran it outside of the panduit channels to avoid noise. Haven't tried to scope the 120v signal, but I've never heard of the AC voltage causing these kinds of problems with a device on the 24volt side of a power supply.
Anybody have any ideas what I might be missing here?
Thanks,
Dustin
I'm having fits with what should be a simple project.
On a rewinding application, I'm trying to count revolutions of a large bedroll using a flag and high-speed proximity sensor.
Equipment:
PLC-5/40e with 1771-VHSC counter card
Dedicated 24VDC Power supply
TURCK Ni 4-M12-VP6X-H1141 12mm Inductive Prox
The flag is mounted laterally just under the circumference of the 20" diameter bedroll, which is travelling at a surface speed of 1300 fpm. The prox is stationary and picks up the lateral approach of the flag. The flag is 1.5" and passes within 2mm of the face of the prox.
So I calculate
1300 * 12/60 = 260 in/sec = .00384 sec/in
.00384 * 1.5 in = .00576 secs of on-time, every 1/4 sec or so.
The spec sheet for the sensor says its switching frequency is 2000hz, and the 1771-VHSC manual says that a channel in counter mode can handle 1MHZ, so picking up this flag consistently should be no problem.
I know that the number of revolutions per machine cycle is 60. I need to trigger an event on 59, and end it at 60.
The problem is that the sensor does not always count 60. It counts anywhere from 60-68 pulses per cycle. I've never seen it count < 60, but I have verified with an array tracking machine cycle encoder positions that the machine occasionally misses a pulse entirely (There should be a pulse every 6 degrees, but occasionally there are 12). Mostly though, I see double counts < 1 degree apart.
The wiring for the prox and the VHSC input channel is in a dedicated conduit, about a 20 foot run to PLC panel. The power is on a dedicated power supply.
Here's the really odd part: I've used three different power supplies, wired into three different AC (120V) power sources. I have a SOLA 2.5a, a SOLA 10a, and an AB 10a power supply. The AC sources are off the main control power circuit, off of a dedicated circuit (fused) from the control transformer, and a dedicated power cord plugged into the panel convenience outlet (fed from same control transformer).
Now, of all the combinations that I have tried, the ONLY thing that worked consistently was using the 10a AB power supply plugged into the convenience port! With this combo, it counts 60 pulses every time, just like it should.
Never seen anything like this, and don't know what to make of it. Obviously, the one working method is not a workable solution. I've double and triple-checked all the power wiring in the cabinet, and even ran it outside of the panduit channels to avoid noise. Haven't tried to scope the 120v signal, but I've never heard of the AC voltage causing these kinds of problems with a device on the 24volt side of a power supply.
Anybody have any ideas what I might be missing here?
Thanks,
Dustin