31
ZABER TECHNOLOGIES INC.
Reading the inputs is accomplished by sending the unit an io get command, as shown below.
/1 io get di
@01 0 OK IDLE –- 0 0 1 0 /1 io get di 1
@01 0 OK IDLE -- 0
The first command queries all inputs on the device and shows that input 3 is high and all others
are low. The second command queries a specific input on the device, in this case input 1, which is
low.
10.2. Digital Outputs
All digital outputs on the X-MCB2 are fully optoisolated and capable of sinking 15mA each at up to
50V. The first example circuit below shows how to drive an LED from one of the digital outputs. In
order to switch loads with a higher current draw, for example a relay, an external switching
transistor is required, as shown in example 2.
The digital outputs are set through the io set command, as shown below.