dS3484
dS3484
User Manual v3.01
0x32 0x04 0x01
Set Output (3 byte command, returning 1 byte)
This command turns an output on or off and returns an ACK/NACK byte. ACK=0, NACK=non-
zero (actually the unknown I/O port number).
All I/O's which need to be inputs should have the output turned off. When turned on the NPN
transistor can sink up to 100mA.
0x32 The command, the rest are parameters
0x04 the I/O number, 4 in this case.
0x01 on (0x01) or off (0x00)
0x33 0x01
Get Relay (2 byte command – returning 5 bytes)
This command is used to get the states of the relays. The second byte is the relay number,
relay 1 in this case.
The first returned byte is the state of the requested relay, 0x00 (off) or 0x01 (on).
The next four bytes pack the states of all 32 relays (virtual and actual relays). Bit 7 of byte 2 is
relay 32 through to bit 0 of byte 5 which is relay 1.
Byte 2
Byte 3
Byte 4
Byte 5
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
32 31 30 29 28 27 26 25
24 23 22 21 20 19 18 17
16 15 14 13 12 11 10
9
8
7
6
5
4
3
2
1
If the bit is set the relay is on, off otherwise.
0x34 0x01
Get Input (2 byte command – returning 2 bytes)
This command is used to get the states of the inputs. The second byte is the input number,
input 1 in this case.
The first returned byte is the state of the requested input, 0x00 (inactive) or 0x01 (active)
the second byte packs the states of all 8 inputs. Bit 7 is input 8 through to bit 0 which is input
1. If the bit is high the input is active.
Byte 2
Bit No. 7 6 5 4 3 2 1 0
Input 8 7 6 5 4 3 2 1
Copyright
© 2016-2018,
Devantech Ltd.
All rights reserved.
37