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.
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.
10-23-2014 11:55 AM
hello,
how can i connect 24VDC to digital input (usb 6008), is it possible with some optocoupler?
thanks
10-23-2014 12:10 PM
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.
10-23-2014 05:34 PM
10-26-2014 08:13 AM
Is it possible? (in attachment..),
thanks to all..
10-26-2014 04:56 PM
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
10-29-2014 03:48 AM
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.
10-29-2014 09:36 AM
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?