Data Sheet

Ether I/O 24R Users Manual V1.1
Elexol Pty Ltd Version 1.1 Page 19 http://www.elexol.com
ELEXOL
ELECTRONIC SOL UT IONS
Command Set Quick Reference
.
Table 1, Module Command Set
Bytes values include all Commands and Data sent in the packet
NU represents a value that is Not Used; a dummy byte must be included to ensure correct operation
- Means that there is no data or no response, do not insert data bytes
All hex values represented by $xx represent a single byte having this value
Command
ASCII
Command
Hex
Bytes Data Function Response
Bytes
Response
Identifier
Response Data
A $41 2 Port_Value Write Port A - - -
B $42 2 Port_Value Write Port B - - -
C $43 2 Port_Value Write Port C - - -
a $61 1 - Read Port A 2 A PortA_Value
b $62 1 - Read Port B 2 B PortB_Value
c $63 1 - Read Port C 2 C PortC_Value
!A $21 $41 3 Direction Write Port A Direction Register - - -
!B $21 $42 3 Direction Write Port B Direction Register - - -
!C $21 $43 3 Direction Write Port C Direction Register - - -
IO24 $49 $4F
$32 $34
4 - Identify IO24 Units 12 IO24 6 Byte MAC Address
2 Byte Firmware Version
!a $21 $61 2 - Read Port A Direction Register 3 !A Direction
!b $21 $62 2 - Read Port B Direction Register 3 !B Direction
!c $21 $63 2 - Read Port C Direction Register 3 !C Direction
@A $40 $41 3 Pull_Up Write Port A Pull Up Register - - -
@B $40 $42 3 Pull_Up Write Port B Pull Up Register - - -
@C $40 $43 3 Pull_Up Write Port C Pull Up Register - - -
#A $23 $41 3 Threshold Write Port A Threshold Register - - -
#B $23 $42 3 Threshold Write Port B Threshold Register - - -
#C $23 $43 3 Threshold Write Port C Threshold Register - - -
$A $24 $41 3 Schmitt Write Port A Schmitt Trigger Register - - -
$B $24 $42 3 Schmitt Write Port B Schmitt Trigger Register - - -
$C $24 $43 3 Schmitt Write Port C Schmitt Trigger Register - - -
@a $40 $61 2 - Read Port A Pull Up Register 3 @A Pull_Up
@b $40 $62 2 - Read Port B Pull Up Register 3 @B Pull_Up
@c $40 $63 2 - Read Port C Pull Up Register 3 @C Pull_Up
#a $23 $61 2 - Read Port A Threshold Register 3 #A Threshold
#b $23 $62 2 - Read Port B Threshold Register 3 #B Threshold
#c $23 $63 2 - Read Port C Threshold Register 3 #C Threshold
$a $24 $61 2 - Read Port A Schmitt Trigger Register 3 $A Schmitt
$b $24 $62 2 - Read Port B Schmitt Trigger Register 3 $B Schmitt
$c $24 $63 2 - Read Port C Schmitt Trigger Register 3 $C Schmitt
‘R $27 $52 5 Address NU NU Read EEPROM Word 4 R Address MSB LSB
‘W $27 $57 5 Address MSB LSB Write EEPROM Word - - -
‘E $27 $45 5 Address $AA $55 Erase EEPROM Word - - -
‘0 $27 $30 5 NU NU NU Write Disable EEPROM - - -
‘1 $27 $31 5 NU $AA $55 Write Enable EEPROM - - -
‘@ $27 $40 5 NU $AA $55 Reset Module - - -
S1A $53 $31
$41
3 - Sets up Port A for SPI, sets bits 0-3 to
appropriate directions for SPI
3 S1A -
S0A $53$30$41 3 - Disables SPI on Port A, restores
direction values and port values to
what they were before an S1A
command
3 S0A
SAXX $53$41 X No.
of
bytes
X Data Bytes Sends out the data bytes on Port A via
SPI. The number of response bytes is
dependent on the number of bytes
sent.
SAXX X No. of bytes +
Response Bytes