29
2.18 $AAPN(Only for EX9060M)
Description:
Set the protocol information of Module
Syntax:
$AAPN[CHK](cr)
$ delimiter
character
AA address
of
reading/response module (00 to FF)
P
command for set protocol information of module
N
The protocol supported by the module
0: the protocol set in EEPROM is Normal mode
1: the protocol set in EEPROM is ModbusRTU mode
Before using this command, it is needed to short the
INIT* to ground (or sliding the INIT* switch to the Init
ON position of rear side).
The new protocol is saved in
the EEPROM and will be effective after the next
power-on reset.
Response:
Valid Command:
!AA
Invalid Command:
?AA
Example:
Command: $01P1
Receive: !01
Sets the communication protocol of module 01 to Modbus RTU
and returns a valid response. And the next power on reset is in
ModbusRTU mode.