CHAPTER 7: MODBUS COMMUNICATIONS MODBUS FUNCTIONS
PQM POWER QUALITY METER – INSTRUCTION MANUAL 7–9
7.2.5 Function Code
06 – Store
Single Setpoint
Modbus Implementation: Preset Single Register
PQM Implementation: Store Single Setpoint
This command allows the master to store a single setpoint into the memory of a PQM. The
slave response to this function code is to echo the entire master transmission.
MESSAGE FORMAT AND EXAMPLE:
Request slave 17 to store the value 01E4 in setpoint address 1020. After the transmission in
this example is complete, setpoint address 1020 will contain the value 01E4.
Table 7–4: Master/Slave Packet Format for Function Code 06h
MASTER
TRANSMISSION
BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message for slave 17
FUNCTION CODE 1 06 store single setpoint
DATA STARTING
ADDRESS
2 10 20 setpoint address 1020
DATA 2 01 E4
data for setpoint address
1020
CRC 2 8E 47 CRC error code
SLAVE RESPONSE BYTES EXAMPLE DESCRIPTION
SLAVE ADDRESS 1 11 message from slave 17
FUNCTION CODE 1 06 store single setpoint
DATA STARTING
ADDRESS
2 10 20 setpoint address 1020
DATA 2 01 E4
data stored in setpoint
address 1020
CRC 2 8E 47 CRC error code
Courtesy of NationalSwitchgear.com