Ether I/O 24 Users Manual V1.3
Elexol Pty Ltd Version 1.3
Page 23
http://www.elexol.com
E L E
X O L
E L E C T R O N I C
S O L U T I O N S
Command Set (continued)
Read Port B
Function
ASCII
Code
Bytes
Data
Command
Sent
b 1
-
ASCII
Code
Bytes
Data
Command
Reply
B 2
Port-Value
Sends the Value of Port B back to the host
Operation:
The Value of the 8 lines of Port B is read and sent back to the host. Those pins that are set
as outputs are read as though they were inputs and their values sent back in the Port Value
Byte.
Example:
Winsock1.
SendData “b”
Read Port C
Function
ASCII
Code
Bytes
Data
Command
Sent
c 1
-
ASCII
Code
Bytes
Data
Command
Reply
C 2
Port-Value
Sends the Value of Port C back to the host
Operation:
The Value of the 8 lines of Port C is read and sent back to the host. Those pins that are set
as outputs are read as though they were inputs and their values sent back in the Port Value
Byte.
Example:
Winsock1.
SendData “c”
Read Port A Direction Register
Function
ASCII
Code
Bytes
Data
Command
Sent
!a 2
-
ASCII
Code
Bytes
Data
Command
Reply
!A 3
Register-Value
Sends the Direction Register value back to the host
Operation:
The Direction Register is read and it’s value sent back to the host.
Example:
Winsock1.
SendData “!a”
Read Port B Direction Register
Function
ASCII
Code
Bytes
Data
Command
Sent
!b 2
-
ASCII
Code
Bytes
Data
Command
Reply
!B 3
Register-Value
Sends the Direction Register value back to the host
Operation:
The Direction Register is read and it’s value sent back to the host.
Example:
Winsock1.
SendData “!b”