9.5.7 Funcon codes
The mode of access to inverter data (parameters) is controlled via funcon codes.
Details
The inverter supports the following funcon codes:
Funcon code Funcon name Descripon
3 0x03 Read Holding Registers Read one or more 16-bit data words.
6 0x06 Preset Single Register Write a 16-bit data word.
16 0x10 Preset Mulple Registers Write one or more 16-bit data words.
23 0x17 Read/Write 4X Registers Within a transacon
•
write into a group of connected 4X holding registers.
•
read from a group of connected 4X holding registers.
Addressing
•
The funcon codes listed above exclusively refer to 4X registers in Modbus addressing.
•
All data in the inverter can only be accessed via 4X registers, i.e. via register addresses
from 40001.
•
The 4xxxx reference is implicit, i. e. given by the funcon code used. In the frame therefore
the leading 4 is omied in the addressing process.
•
Lenze supports the basic 1 addressing of Modbus, i.e. the numbering of the registers starts
with 1 whereas addressing starts with 0. For example, the address 0 is used in the frame
when register 40001 is read.
Frame structure
Communicaon is established on the basis of the central medium access method. Communi-
caon is always started by a master request. The inverter (slave) then either gives a valid
response or outputs an error code (provided that the request has been received and evalu-
ated as a valid Modbus frame). Error causes can be invalid CRC checksums, funcon codes
that are not supported, or impermissible data access.
All Modbus frames have the following basic structure:
•
A "frame" consists of a PDU (Protocol Data Unit) and an ADU (Applicaon Data Unit).
•
The PDU contains the funcon code and the data belonging to the funcon code.
•
The ADU serves the purposes of addressing and error detecon.
•
The data are represented in Big Endian format (most signicant byte rst).
ADU (Applicaon Data Unit)
Slave address Funcon code Data Checksum (CRC)
PDU (Protocol Data Unit)
Conguring the network
Modbus RTU
Funcon codes
287