Use the lower digital inputs as outputs

Use the lower digital inputs as outputs
(only Service USB plus)

The input buffer of the digital input can be reversed so that there is a total sum of 16 digital outputs.

request = 0
wIndex = 11 (reverse) or 12 (normal state)
wValue = 0

The lower eight outputs are the 12V power outputs. The upper 8 bits are the former digital inputs, which can supply an output voltage of 2,5V and are mainly used for driving logic circuits and transistors. The 2,5V output voltage is sufficient as high level for 5V and 3,3V logic. More power can be switched on and off by using relays. The relays can be switched by one additional transistor whose base can be connected directly to the output. The internal protective resistor works in this case as a base series resistor (see schematic diagram)

send SERVICE vendor request 0 wValue 0 wIndex 11 device id 0

 

Usage of the additional analog inputs

For fast scanning of the analog inputs there are two instructions:
get SERVICE EX value
get SERVICE EY value

By default they are connected to EX, EY at Service USB plus and AX,AY at Service USB classic.

For polling the other analog inputs, they must be switched to EX and EY.

request = 0
wIndex = 13 (set EX) oder 14 (set EY)
wValue = analog input

wValue

Analog input

Service USB classic

Analog input

Service USB plus

7 - Digital input 4
6 - Digital input 3
5 - Digital input 2
4 - Digital input 1
3 A1 Digital input 0
2 AY EY
1 A2 DB9, Pin 4
0 AX EX

Additional analog inputs

 

Example for using A1 and A2 instead of AX and AY at Service USB classic:

send SERVICE vendor request 0 wValue 3 wIndex 13 device id 0
send SERVICE vendor request 0 wValue 1 wIndex 14 device id 0

 

Eight milliseconds after this command, the new values are available. You must wait until all internal buffers are rewritten with the new values.