Data Sheet

Ether I/O 24R Users Manual V1.1
Elexol Pty Ltd Version 1.1 Page 24 http://www.elexol.com
ELEXOL
ELECTRONIC SOL UT IONS
Command Set (continued)
Read Port B
Command
Sent
ASCII
Code
Bytes Data Function
Sends the Value of Port B back to the host
b 1 -
Command
Reply
ASCII
Code
Bytes Data
B 2 Port-Value
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
Command
Sent
ASCII
Code
Bytes Data Function
Sends the Value of Port C back to the host
c 1 -
Command
Reply
ASCII
Code
Bytes Data
C 2 Port-Value
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
Command
Sent
ASCII
Code
Bytes Data Function
Sends the Direction Register value back to the host
!a 2 -
Command
Reply
ASCII
Code
Bytes Data
!A 3 Register-Value
Operation: The Direction Register is read and it’s value sent back to the host.
Example:
Winsock1.SendData “!a”
Read Port B Direction Register
Command
Sent
ASCII
Code
Bytes Data Function
Sends the Direction Register value back to the host
!b 2 -
Command
Reply
ASCII
Code
Bytes Data
!B 3 Register-Value
Operation: The Direction Register is read and it’s value sent back to the host.
Example:
Winsock1.SendData “!b”