EasyManuals Logo

Devantech dS1242 User Manual

Devantech dS1242
63 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 #45 background imageLoading...
Page #45 background image
dS1242
dS1242 User Manual v4.10
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 4 inputs. Bits 7 – 4 are unused. Bit 3 is input 4 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 x x x x 4 3 2 1
Copyright © 2016-2021, Devantech Ltd.
All rights reserved.
www.robot-electronics.co.uk
45

Questions and Answers:

Question and Answer IconNeed help?

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

Devantech dS1242 Specifications

General IconGeneral
BrandDevantech
ModeldS1242
CategoryControl Unit
LanguageEnglish