|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
Using an Interposing Relay
Hello, We have a 12v prximity senosor connected to an interposing relay. The interposing relay is giving a 5v input to the cRIO through the Digital IO sidecar for feedback of the loading arm position. Is this in violation of r65 and r66? We have attached a schematic of our setup. Thank you.
We have an image of the wiring diagram for this setup: |
|
#2
|
|||||
|
|||||
|
Re: Using an Interposing Relay
I don't see any reason for your relay to be against the rules.
The only problem I see is that the way you have it drawn, it won't do what you expect. If you leave a Digital Input pin unconnected, an internal pullup resistor will bring it to +5v and it will read True. Your relay will connect +5v to it, leaving the value unchanged. If you instead connect "ground" to it when the relay is activated, the input will read False and you can tell the difference. You'll want to remember that the signal is backwards from what you might expect -- or if the sensor has a white wire with the opposite sense from the black one, you could use that instead. However, the relay might not be necessary. What is the part number of your sensor? If it is NPN output, it doesn't actually provide 12 volts on the output pin. All it can do is pull the pin to ground, and that is perfectly compatible with the DIO on the Digital Sidecar. On the other hand, if it's a PNP or fully-driven output, then you do need to account for the higher voltage. But instead of the active relay, you could use a simple resistor divider, with 14k in series with the connection to the DIO signal pin and 10k from the DIO pin to ground. Depending on the exact part number, you might also need a 10k resistor directly from the sensor output to ground. |
|
#3
|
|||
|
|||
|
Re: Using an Interposing Relay
Quote:
Quote:
Thank you again for your quick reply. |
|
#4
|
|||
|
|||
|
Re: Using an Interposing Relay
I just want to make sure we have our photo switch (PE) connected properly. It is an A-B 42EF–D1MNAK–A2 (NPN Diffuse). Currently, we are feeding the photo switch from a dedicated circuit breaker (as it's a custom circuit per the rules). We currently have the white (it could be either the white or black) connected to pin 1 of GPIO5. Per the snap shoot of the wiring diagram from the A-B PE user manual:
Wiring Diagram Photoswitch (DO & LO) 42EF-D1KBAK-a.pdf Brown - Connected to the +12VDC Blue - Connected to the DC 12V common White & Black are the photo switch's output signal. From the picture of our hand drawn schematic , Schematic PE1 to GPIO5.pdf I am bring the White wire into the signal pin (pin 1). I am not using the center pin (pin 2). Pin 3 is tied to the DC Common bus. Now that I am looking at the A-B schematic and place it context w/ Alan Anderson's comments, I believe we wired the PE correctly. Being a sourcing input/output, I think we need to tie the White or Black Wire to a GPIO's pin 1. Please verify whether I am right or wrong. I would hate to waste time troubleshooting an easy fix that should have been caught at testing. Thanks, |
|
#5
|
|||||
|
|||||
|
Re: Using an Interposing Relay
Quote:
Quote:
|
|
#6
|
|||
|
|||
|
Re: Using an Interposing Relay
Quote:
Thanks, Alan. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|