M-7026
M-7026 User Manual Rev: 1.5 Date: 2016/03/10
82
2.34 $AAPN
Description:
This command is used to set the communication protocol to be used by a
specified module.
Syntax:
$AAPN[CHKSUM](CR)
$
Delimiter character
AA
The address of the module to be set in hexadecimal format (00 to FF)
P
The command to set the communication protocol
N
The protocol to be used
0: DCON
1: Modbus RTU
Note:
Before using this command, the INIT switch must be in the INIT position, see
Section 5.1 for details. The settings for the new protocol are saved in the
EEPROM and will become effective after the next power-on reset.
Response:
Valid Command:
!AA[CHKSUM](CR)
Invalid Command:
?AA[CHKSUM](CR)
!
Delimiter character to indicate a valid command
?
Delimiter character to indicate an invalid command
AA
The address of the responding module in hexadecimal format (00 to
FF)
There will be no response if the command syntax is incorrect, there is a
communication error, or there is no module with the specified address.
Examples:
Command: $01P1
Response: ?01
Attempts to set the communication protocol for module 01 to Modbus
RTU, but returns a response indicating that the command was
unsuccessful, because the INIT switch is not in INIT position.
Command: $01P1
Response: !01
Sets the communication protocol for module 01 to Modbus RTU and
returns a response indicating that the command was successful. The new
protocol will become effective after the next power-on reset.
Command: $01P
Response: !0111
Reads which communication protocol is being used by module 01 and
returns a response indicating that the command was successful, with a
value of 11 meaning that the module supports both the DCON and
Modbus RTU protocols, and that the protocol which will be used at the
next power-on reset is Modbus RTU.
Summary of Contents for M-7026
Page 8: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 8 1 3 Pin Assignments...
Page 12: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 12 1 5 Block Diagram...
Page 13: ...M 7026 User Manual Rev 1 5 Date 2016 03 10 13 1 6 Application Wiring...
Page 43: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 43 Section 1 8 1 Analog Input Calibration...
Page 47: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 47 Section 5 1 INIT Mode...
Page 90: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 90 Section 5 2 Dual Watchdog Operation...
Page 113: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 113 Section 2 68 AARECi...
Page 127: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 127 Section 2 62 AADODD...
Page 129: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 129 Related Commands Section 2 61 AADI...
Page 141: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 141 Related Commands Section 2 53 AACECi...
Page 180: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 180...
Page 183: ...M 7026 M 7026 User Manual Rev 1 5 Date 2016 03 10 183...