Commissioning
In the following, the steps required for controlling the inverter via Modbus are described.
Parameterization required
1.
Activate network control: 0x2631:037 = "TRUE [1]"
2.
Set network as standard setpoint source: 0x2860:001 ="Network [5]"
3.
Implement the IP settings of the inverter (server).
See:
IP settings
See:
IP settings 4.
Set Modbus baud rate.
5.
Save parameter settings: 0x2022:003 = "on / start [1]".
6.
Switch the inverter off and then on again in order that the changed communication settings can get effective.
In the default setting, the "Run" function is assigned to digital input DI1. If network control is activated, this function serves as the "start enable" for starting commands via the network. Hence, digital input DI1 must be set to the HIGH level so the motor can be started via the network.
Starting/stopping the drive via Modbus
For starting/stopping the drive, Modbus register 42101 can be used.
–
The Modbus register 42101 is permanently assigned to the parameter 0x400B:001 (AC Drive control word).
–
In the frame, the leading 4 is omitted in the addressing process. The numbering of the registers starts with 1; addressing, however, starts with 0. Therefore the address 2100 (0x0834) is used in the frame when register 42101 is written.
Bits set in the AC Drive control word:
–
Bit 0 = Run forward (CW)
–
Bit 5 = Activate network control
–
Bit 6 = Activate network setpoint
–
Function code 6, i. e. writing into a single register.
Example of an inverter with the node address 1:
|
Request frame by the client
|
|||||
|
Unit identifier
|
Function code
|
Register address
|
AC Drive control word
Data: 0b1100001 ≡ 0x0061
|
||
|
0x01
|
0x06
|
0x08
|
0x34
|
0x00
|
0x61
|
If the digital input DI1 ("Start enable") is set to HIGH level, the drive should start and the inverter should respond with the same frame as confirmation:
|
Response message from the server (inverter)
|
|||||
|
Unit identifier
|
Function code
|
Register address
|
AC Drive control word
Data: 0b1100001 ≡ 0x0061
|
||
|
0x01
|
0x06
|
0x08
|
0x34
|
0x00
|
0x61
|
Write the speed of the drive via Modbus
The drive speed can be changed via the modbus register 42102, see:
Example of an inverter with the node address 1:
|
Request frame by the client
|
|||||
|
Unit identifier
|
Function code
|
Data
|
|||
|
Register address
|
Network setpoint frequency (0.01)
|
||||
|
0x01
|
0x06
|
0x08
|
0x35
|
0x04
|
0xD2
|
|
Response message from the server (inverter)
|
|||||
|
Unit identifier
|
Function code
|
Data
|
|||
|
Register address
|
Network setpoint frequency (0.01)
|
||||
|
0x01
|
0x06
|
0x08
|
0x35
|
0x04
|
0xD2
|
The drive now rotates with a frequency of 12.34 Hz.
Read the drive speed via Modbus
The drive speed can be read via the Modbus register 42002, see:
The function code 3 is used to read a single register or several interrelated register blocks, see:
Example of an inverter with the node address 1:
|
Request frame by the client
|
|||||
|
Unit identifier
|
Function code
|
Data
|
|||
|
Register address
|
Number of words
|
||||
|
0x01
|
0x03
|
0x07
|
0xD1
|
0x00
|
0x01
|
|
Response message from the server (inverter)
|
||||
|
Unit identifier
|
Function code
|
Data
|
||
|
Read bytes
|
Frequency (0.01)
|
|||
|
0x01
|
0x03
|
0x02
|
0x04
|
0xD1
|
The drive rotates with a frequency of 12.33 Hz.
Restart of the communication
A restart of communication is required after changes of the interface configuration (e. g. node address and baud rate) in order that the changed settings become effective.
For restarting communication, there are two options:
a.
Switch inverter off and on again.
b.
0x23B0 Set = "Restart with current values [1]".
Parameter