MTD2000 AT Command Guide R12
Confidential
DAVISCOMMS (S) PTE LTD
70 /105
Bit #
7
6
5
4
3
2
1
0
Port #
8
7
6
5
4
3
2
1
Example
Command
Response
AT$PC?
Note: Query port configuration.
OK
$PC: 0F
AT$PD=30
Note: Set default value of output port 5 and
6 to HIGH, output port 7 and 8 to LOW.
OK
AT$PD?
Note: Query default value of output ports.
OK
$PD: 30
18.3 Port Status – AT$PS
This command will return the current value of both input and output ports.
Syntax
Command
Response
AT$PS or AT$PS?
Note: Query setting.
OK
$PS: <Status>
Parameters
Status
Port status in hexadecimal (00 to FF) with LSB and MSB as
port 1 and port 8 respectively.
0 – LOW
1 – HIGH
Bit presentation for ports:
Bit #
7
6
5
4
3
2
1
0
Port #
8
7
6
5
4
3
2
1
Example
Command
Response
AT$PC?
Note: Query port configuration.
OK
$PC: 0F