From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i connect 24VDC to digital input (usb 6008)

hello,

 

how can i connect 24VDC to digital input (usb 6008), is it possible with some optocoupler?

 

thanks

0 Kudos
Message 1 of 7
(5,763 Views)

The 6008 is a static DIO, so speed shouldn't be an issue.  Therefore an optocoupler should work.  Just make sure you get one the meets your specs.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(5,762 Views)
Depending on isolation requirements, you may be able to get away with a zener diode or voltage divider.
0 Kudos
Message 3 of 7
(5,753 Views)

Is it possible? (in attachment..),

 

thanks to all..

0 Kudos
Message 4 of 7
(5,716 Views)

That should work. The USB-6008 has an internal 4700 ohm pull up resistor to +5 V. If you were using a device without the pull up resistors, you would need to add an external resistor.

 

If there is any chance the optocoupler could be connected to the 24 V circuit in reverse polarity, adding a protective diode would prevent damage to the LED.

 

Lynn

0 Kudos
Message 5 of 7
(5,701 Views)

The solution shown should work. Anyway, using a zener diode or a voltage divider may not work properly. Many PLCs and other 24V control devices have outputs which source 24VDC when on high level and are simply switched off when on low level. A TTL compatible input will need a current sink to detect a proper low state, if the line is simply disconnected or switched off, it may be in an undefined state (detected as high level in most cases).

 

Of course, with the solution shown, the logic states will be reversed. I.e. the input will be in low state when the 24VDC line is on high level and vice-versa.

0 Kudos
Message 6 of 7
(5,656 Views)

thanks to all to yours answer..

 

second problem for me is analyze digital input but with 110 VAC (voltage is or not), i draw some connection with optocoupler PC814,

have any man from you some experience with this?

0 Kudos
Message 7 of 7
(5,647 Views)