204
1.877.877.2269
BLACKBOX.COM
NEED HELP?
LEAVE THE TECH TO US
LIVE 24/7
TECHNICAL
SUPPORT
1.877.877.2269
CHAPTER 9: POWER, ENVIRONMENT AND DIGITAL I/O
9.3.2 DIGITAL I/O INPUT CONFIGURATION
When either of the two digital I/O (DIO1 & DIO2) outlets is configured as an Input on the System > I/O Ports, it can be used to monitor the
current status of any attached sensor.
When configured as inputs (the factory default), these first two ports are attached to an internal EMD. To configure them as alarms, go to
the Status > Environmental Status and edit and enable the Internal EMD.
NOTE: The low-voltage circuits in DIO1 and DIO2 should not be wired to voltages greater than 5 VDC.
Alternatively, these input ports can be monitored using the ioc command line utility (as detailed in Section 9.4.1).
9.3.3 HIGH-VOLTAGE OUTPUTS
OUT1 and OUT2 (internally, DIO3 & DIO4) outlets are wired as high-voltage outputs. The way these outputs are expected to be used is to
pull a power connected line to ground (the OUT1 and OUT2 transistors are open collector).
The I/O port header includes a 12-V reference line (VIN) which can be used to detect the line state change.
For example, to light a 12-V LED using the high voltage outputs, connect the positive leg of the LED to the 12-V reference, and the negative
leg to output pin 4. Due to the way that the I/O port is connected internally, the output has to be set high to pull the output to ground.
The following command will switch on the led:
ioc -p 4 -d 0 -v 1
OUT1 and OUT2 transistors can operate with a supply of >5V to <= 30V @100mA. This means to drive a relay circuit you must guarantee
it doesn’t provide more than 100mA when set to 1.
9.3.4 HIGH-VOLTAGE OUTPUTS
As of firmware v3.9, there is a SNMP status table that reports on the status of the digital IO ports.
The table’s OID is OG-STATUSv2-MIB::ogEmdDioTable. Performing an snmpwalk on this table on a console server with DIO
produces something like the following (the specifics will vary depending on device status):
$ snmpwalk -v2c -c public -M $MIBSDIR -m ALL t5:161 1.3.6.1.4.1.25049.16.5
OG-STATUS-MIB::ogDioStatusName.1 = STRING: DIO 1
OG-STATUS-MIB::ogDioStatusName.2 = STRING: DIO 2
OG-STATUS-MIB::ogDioStatusName.3 = STRING: DIO 3
OG-STATUS-MIB::ogDioStatusName.4 = STRING: DIO 4
OG-STATUS-MIB::ogDioStatusType.1 = INTEGER: ttlInputOutput(0)
OG-STATUS-MIB::ogDioStatusType.2 = INTEGER: ttlInputOutput(0)
OG-STATUS-MIB::ogDioStatusType.3 = INTEGER: highVoltageOutput(1)
OG-STATUS-MIB::ogDioStatusType.4 = INTEGER: highVoltageOutput(1)
OG-STATUS-MIB::ogDioStatusDirection.1 = INTEGER: input(1)
OG-STATUS-MIB::ogDioStatusDirection.2 = INTEGER: input(1)
OG-STATUS-MIB::ogDioStatusDirection.3 = INTEGER: input(1)
OG-STATUS-MIB::ogDioStatusDirection.4 = INTEGER: input(1)
OG-STATUS-MIB::ogDioStatusState.1 = INTEGER: low(0)
OG-STATUS-MIB::ogDioStatusState.2 = INTEGER: high(1)