166
OPERATION WITH MODBUS RTU
Commissioning manual Powerdrive MD2/FX
4617 en - 2017.09 / e
Frame returned by the slave:
Bytes Description
0
Slave address
1
Function code 0x03
2
Number of bytes to be read
3
Word 0 MS byte
4
Word 0 LS byte
5
Word 1 MS byte
6
Word 1 LS byte
...
…
n
CRC LS byte
n + 1
CRC MS byte
Where n = 3 + number of bytes to be read.
• Function code 6: Write single register
Writes a value to a single 16-bit register. The normal response
is an echo of the request, returned after the register contents
have been written.
Frame sent by the master:
Bytes Description
0
Slave address (0 to 247)
1
Function code 0x06
2
Register address MS byte
3
Register address LS byte
4
Register value MS byte
5
Register value LS byte
6
CRC LS byte
7
CRC MS byte
Frame sent by the slave:
Bytes Description
0
Slave address
1
Function code 0x06
2
Register address MS byte
3
Register address LS byte
4
Register data MS byte
5
Register data LS byte
6
CRC LS byte
7
CRC MS byte
• Function code 16: Write multiple
Writes a contiguous array of registers. The slave imposes an
upper limit on the number of registers which can be written. If
the limit is exceeded, the slave does not respond.
Note:
12 parameters maximum can be written.
Frame sent by the Master:
Bytes Description
0
Slave address (1 to 247)
1
Function code 0x10
2
Start word address MS byte
3
Start word address LS byte
4
Number of words to be written MS byte
5
Number of words to be written LS byte
6
Number of bytes to be written
7
Word 0 to be written MS byte
8
Word 0 to be written LS byte
9
Word 1 to be written MS byte
10
Word 1 to be written LS byte
...
…
n
CRC LS byte
n + 1
CRC MS byte
Where n = 7 + number of bytes in write block.
Frame returned by the slave:
Bytes Description
0
Slave address (1 to 247)
1
Function code 0x10
2
Start word address MS byte
3
Start word address LS byte
4
Number of words written MS byte
5
Number of words written LS byte
6
CRC LS byte
7
CRC MS byte
CRC
slave n
Command (03)
No. of bytes
Word number 0
Word number 1
…
1 hexadecimal byte
2 hexadecimal bytes
CRC
slave n
Command (06)
Register address
Register value
1 hexadecimal byte
2 hexadecimal bytes
Start word address
Number of words
CRC
No. of bytes
Word number 0
Word number 1
…
slave n
Command (10h)
1 hexadecimal byte
1 hexadecimal byte
2 hexadecimal bytes
2 hexadecimal bytes
slave n
Start word address
Number of words
CRC
1 hexadecimal byte
2 hexadecimal bytes
Command (10h)
Содержание LEROY-SOMER Powerdrive FX
Страница 1: ...4647 en 2017 09 e Powerdrive MD2 FX Commissioning manual R f rence...
Страница 41: ...41 QUICK SETUP MODE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...
Страница 49: ...49 ADVANCED PARAMETER SETTING MODE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...
Страница 95: ...95 ADVANCED PARAMETER SETTING MODE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...
Страница 131: ...131 ADVANCED PARAMETER SETTING MODE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e 5 14 MENU 13 Reserved...
Страница 137: ...137 ADVANCED PARAMETER SETTING MODE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...
Страница 174: ...174 MAINTENANCE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...
Страница 175: ...175 MAINTENANCE Commissioning manual Powerdrive MD2 FX 4617 en 2017 09 e Notes...