Function 16 - Write Multiple Registers - WEG CFW100 User Manual

Modbus rtu
Hide thumbs Also See for CFW100:
Table of Contents

Advertisement

Example: writing of 30 Hz as the speed reference (P0683) (assuming a motor frequency of 60 Hz) for the slave
at address 3.
Address: 3 = 03h (1 byte)
Initial register address: 683 = 02ABh (2 bytes)
Value for parameter: 1000h (2 bytes)
Request (Master)
Field
Slave Address
Function
Register (high)
Register (low)
Value (high)
Value (low)
CRC-
CRC+
Note that for this function the slave response is an identical copy of the request made by the master.
6.3
FUNCTION 16 – WRITE MULTIPLE REGISTERS
This function allows writing values for a group of registers, which must be in a numerical sequence. It can also
be used to write in a single register (each field represents a byte):
Request (Master)
Slave Address
Function
Initial register address (high byte)
Initial register address (low byte)
Number of registers (high byte)
Number of registers (low byte)
Byte count (number of data bytes)
Datum 1 (high)
Datum 1 (low)
Datum 2 (high)
Datum 2 (low)
etc...
CRC-
CRC+
Example: writing of the acceleration time (P0100) equal to 1.0 s and the deceleration time (P0101) equal to 2.0
s, of a slave at address 15.
Address: 15 = 0Fh (1 byte)
Initial register address: 100 = 0064h (2 bytes)
Value for the fist parameter: 10 = 000Ah (2 bytes)
Value for the second parameter: 20 = 0014h (2 bytes)
Request (Master)
Field
Slave Address
Function
Initial register (high)
Initial register (low)
Number of registers (high)
Number of registers (low)
Byte count
P0100 (high)
P0100 (low)
P0101 (high)
P0101 (low)
CRC-
CRC+
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.ctiautomation.net - Email: info@ctiautomation.net
Detailed Description of the Functions
Response (Slave)
Value
Field
03h
Slave Address
06h
Function
02h
Register (high)
ABh
Register (low)
10h
Value (high)
00h
Value (low)
F5h
CRC-
B0h
CRC+
Response (Slave)
Slave Address
Function
Initial register address (high byte)
Initial register address (low byte)
Number of registers (high byte)
Number of registers (low byte)
CRC-
CRC+
Response (Slave)
Value
Field
0Fh
Slave Address
10h
Function
00h
Initial register (high)
64h
Initial register (low)
00h
Number of registers (high)
02h
Number of registers (low)
04h
CRC-
00h
CRC+
0Ah
00h
14h
E0h
91h
Value
03h
06h
02h
ABh
10h
00h
F5h
B0h
Value
0Fh
10h
00h
64h
00h
02h
01h
39h

Advertisement

Table of Contents
loading

Table of Contents