EasyManuals Logo

Devantech dS2824 User Manual

Devantech dS2824
71 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #54 background imageLoading...
Page #54 background image
dS2824
dS2824 User Manual v4.12
Binary Command Set – continued.
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, re-
lay 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, in-
put 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-2021, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
54

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Devantech dS2824 and is the answer not in the manual?

Devantech dS2824 Specifications

General IconGeneral
BrandDevantech
ModeldS2824
CategoryRelays
LanguageEnglish

Related product manuals