Digital Input / sensor

eetech00

Joined Jun 8, 2013
4,705
Hi

I agree with MAX.

Why use the relay when the input is programmable? Could connect the sensor output directly to the PLC. Pull up the input thru a resistor if necessary.

But...the use of a PLC call “failsafe” into question.
eT
 

MaxHeadRoom

Joined Jul 18, 2013
30,661
But...the use of a PLC call “failsafe” into question.
eT
I agree, if this is used for a critical condition shut down, the normal procedure is to place it in series or in circuit with the E-Stop or other shut down circuit.
But as it is only appears to be a single contact, two wire device, using it to operate a relay would be preferred in order to satisfy the critical shut down and also advise the PLC that an external shut down condition has occurred.
A proper display of the circuit section that is involved would have made it easier to give a definitive answer.
Max.
 

Phil-S

Joined Dec 4, 2015
241
Is the sensor a simple pressure switch?
Why not get one in exactly the same configuration and avoid all the logic confusion?
Or am I missing something?
 

PhilTilson

Joined Nov 29, 2009
154
As usual, I am wondering why people need to make things so complicated! And, as usual, I may be missing something :)

What about this:
upload_2019-7-12_17-56-59.png

If sensor outputs 24V, transistor turns relay on, A1 closes, equipment operates.
If sensor drops to 0 volts, relay drops out, equipment stops.
If wire to sensor breaks, 4K7 resistor pulls down input, relay drops out, equipment stops.
If relay fails, contacts open, equipment stops.

Not quite failsafe, as if relay contacts get welded together, equipment doesn't stop! However, you can't have everything!
 
All oil pressure switches for unattended engine operation short to ground on low or no oil pressure. In many cases the switch is an integral part of an oil pressure gauge. They may also have a temperature gauge with a kill switch if over temperature condition.
I'm guessing the new oil pressure switch is for this type of operation.
Here is a typical wiring example, note the pressure gauge in the upper right:
upload_2019-7-12_12-4-49.png
Modifying the ladder logic is the simplest answer but he may not have access to the PLC.
 
What you're missing is that no logical inversion is needed. The sensor closes to ground when the oil is low. This is a legacy from the days when they worked by shorting the primary of a magneto.

As usual, I am wondering why people need to make things so complicated! And, as usual, I may be missing something :)

What about this:
View attachment 181566

If sensor outputs 24V, transistor turns relay on, A1 closes, equipment operates.
If sensor drops to 0 volts, relay drops out, equipment stops.
If wire to sensor breaks, 4K7 resistor pulls down input, relay drops out, equipment stops.
If relay fails, contacts open, equipment stops.

Not quite failsafe, as if relay contacts get welded together, equipment doesn't stop! However, you can't have everything!
As usual, I am wondering why people need to make things so complicated! And, as usual, I may be missing something :)

What about this:
View attachment 181566

If sensor outputs 24V, transistor turns relay on, A1 closes, equipment operates.
If sensor drops to 0 volts, relay drops out, equipment stops.
If wire to sensor breaks, 4K7 resistor pulls down input, relay drops out, equipment stops.
If relay fails, contacts open, equipment stops.

Not quite failsafe, as if relay contacts get welded together, equipment doesn't stop! However, you can't have everything!
 

MaxHeadRoom

Joined Jul 18, 2013
30,661
As usual, I am wondering why people need to make things so complicated! And, as usual, I may be missing something :)

!
Because we don't really know if it is PLC input or a hardwired logic, if PLC the simplest is to change the occurance of the SW input logic.
If so no need for a relay.
Max,
 

eetech00

Joined Jun 8, 2013
4,705
As usual, I am wondering why people need to make things so complicated! And, as usual, I may be missing something :)
Sometimes things can seem too simple. ;)

Not quite failsafe, as if relay contacts get welded together, equipment doesn't stop! However, you can't have everything!
What if the transistor shorts to ground?:cool:
The equipment doesn’t stop..

eT
 
Because we don't really know if it is PLC input or a hardwired logic, if PLC the simplest is to change the occurance of the SW input logic.
If so no need for a relay.
Max,
His initial post indicated an Allen Bradley PLC and later he mentioned an input card that requires +24 volts. A pull up resistor and invert the logic in the PLC would be sufficient.
 

MaxHeadRoom

Joined Jul 18, 2013
30,661
His initial post indicated an Allen Bradley PLC and later he mentioned an input card that requires +24 volts. A pull up resistor and invert the logic in the PLC would be sufficient.
Pull-up not necessary for a contact closure switch, just invert the programmed logic!
Max.
 
Last edited:
The pull-up is necessary because the switch goes to ground and that cannot be changed.

On the other hand, inversion is NOT required because 0v input is already the fault condition.
 

PhilTilson

Joined Nov 29, 2009
154
What you're missing is that no logical inversion is needed. The sensor closes to ground when the oil is low. This is a legacy from the days when they worked by shorting the primary of a magneto.
The inversion was to guard against the failure of the relay. If you rely on the grounding of the sensor to switch on the relay whose NC contacts are running the device, then failure of the relay means the device keeps working. This solution fails safe if the relay fails or if the sensor wiring fails.

I'm not suggesting there is any one right answer - this was just a solution that would work!
 
Top