Ether I/O 24 Users Manual V1.3
Elexol Pty Ltd Version 1.3
Page 24
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 C Direction Register
Function
ASCII
Code
Bytes
Data
Command
Sent
!c 2
-
ASCII
Code
Bytes
Data
Command
Reply
!C 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 “!c”
Read Port A Pull Up Register
Function
ASCII
Code
Bytes
Data
Command
Sent
@a 2
-
ASCII
Code
Bytes
Data
Command
Reply
@A 3
Register-Value
Sends the Pull Up Register value back to the host
Operation:
The Pull Up Register is read and it’s value sent back to the host.
Example:
Winsock1.
SendData “@a”
Read Port B Pull Up Register
Function
ASCII
Code
Bytes
Data
Command
Sent
@b 2
-
ASCII
Code
Bytes
Data
Command
Reply
@B 3
Register-Value
Sends the Pull Up Register value back to the host
Operation:
The Pull Up Register is read and it’s value sent back to the host.
Example:
Winsock1.
SendData “@b”
Read Port C Pull Up Register
Function
ASCII
Code
Bytes
Data
Command
Sent
@c 2
-
ASCII
Code
Bytes
Data
Command
Reply
@C 3
Register-Value
Sends the Pull Up Register value back to the host
Operation:
The Pull Up Register is read and it’s value sent back to the host.
Example:
Winsock1.
SendData “@c”