Toky DW9L 3 Series Operation Manual Download Page 18

16

7.1 MODBUS-RTU protocol

VII. Communication Protocol Description

7.2 Communication frame format description

7.1.1 Meter meets MODBUS-RTU communication protocol,adopts RS485 half-duplex communication to check 16-bit CRC. The meter does not return

 the check error.

7.1.2 Data Format

The following chart shows the meaning of exception error codes:

7.1.3 Communication frame format

7.1.4 Communication exception handling

Start Bit

error code

Name

Description

0X01
0X02

0X03

0X04

Function code error

Variable address error

The limit of the data value

Incorrect or out of frame length

The meter received an unsupported function number

 The data value sent by the host exceeds the data range corresponding to the instrument or the data 

 structure is incomplete

The function code and the communication frame length are inconsistent or request exceeds the limit

Frame Content

Bytes

Instructions

Slave Station Add

1

1

2

Valid slave address range is 1-247

The length of data that needs to be read or written

The location where the data area is stored when the slave executes a valid command. Different variables occupy different 
number of registers, some address variables occupy two registers, 4 bytes of data, some variables occupy a register, 2 
bytes of data, please use according to the actual situation

Function Code

Data Add

2

Data length

Slave station returns data or master data to be written 

Variable

Data

The MODBUS-RTU mode uses 16-bit CRC. The sending device shall calculate CRC16 on each data in the parcel, and the
final result shall be stored in the test domain. The receiving device shall also calculate CRC16 on each data (other than the 
check field) in the parcel and compare the result field check fields. Only the same package can be accepted.

If the master sends an illegal packet or if the master requests an invalid data register, an abnormal data response will be generated. This abnormal data response 
consists of the slave address, function code, fault code, and check field. When the high-order bit position of the function code domain is 1, it indicates that the data
 frame at this time is an abnormal response.
According to MODBUS communication requirements, abnormal response function code = request function code + 0x80; when abnormal response occurs, 
the highest position of function number is 1. For example, if the host request function number is 0x04, the function number returned from the slave corresponds to
0x84.

7.1.5 Communication frame delay

7.2.1 Function Code“03”:Read multiple register input
Eg: The host reads the UA (A phase voltage), and it is measured that the A phase voltage is 220.0V. The UA's address code is 0x4000

       because UA is a fixed-point number (4 bytes) and occupies 2 data registers. The corresponding hexadecimal data of 220.0V is: 

      0x0000898 (2200)

Host sent message format: (default high word first)

 There should be an appropriate delay between the requests from the master station for the two frames. When the baud rate is 9600. In order

 to ensure a correct response, it is recommended that a 300mS delay be reserved between the two frames. When the baud rate decreases, 

the communication delay should increase appropriately.

2

CRC Check Code

Read one or more current register values

Writes the specified value to an internal register

0X03

0X06
0X10

Writes the specified value to multiple internal registers

Data Bit

Checking Bit

Stop Bit

1

8

None, Even, Odd checking(Programmable)

1

 All RS485 loop communication should follow master and slave mode.In this way, information and data are transferred between a single master station and up

    to 32 slave stations (monitoring devices);

 The master station will initialize and control all the information transmitted on the RS485 communication loop;

 In any case, communication cannot be started from a slave station

 Communication on all RS485 loops takes place in a "packaged" manner. A data packet is a communication frame. A packet can contain up to 128 bytes.

 The master station sends called request and the slave sends called response.

 In any case, the slave can only respond to one request from the master station;

Hosting Sending
Slave address

Function Code

Start Add
Data Length
CRC Code

Bytes

1
1
2
2
2

Information Send

01
03

0x4000
0x0002
0xD1CB

Remark

Send to slave at address 01
Read register
Start Add
Read 2 registers (4 bytes in total)
The host calculates the CRC code

The host specified data location is over the range of the meter or an illegal register operation has been 

 received

Summary of Contents for DW9L 3 Series

Page 1: ...DW9L Series 3 Phase Energy Meter Operation Manual Toky Electrical Co Ltd...

Page 2: ...ntained by qualified personnel Before making any operation isolate the voltage input and power supply and short circuit the secondary windings of all current transformers Using a suitable voltage dete...

Page 3: ...ansmission output 4 20mA Typical Application Energy Management System Power Monitoring System Intelligent Building Intelligent Switchboard High and low voltage switch cabinet Distribution network auto...

Page 4: ...e power factor Positive sequence negative sequence zero sequence Active Power 4 quadrant reactive power Total Harmonic 32 times voltage harmonic rate 32 times current harmonic rate 4 rates 12 period m...

Page 5: ...Correspond internation standard MODBUS RTU protocol 3 Correspond national standard DLT645 2007 protocol 4 Communication Baud Rate 1200 2400 4800 9600 19200 5 Checking Method optional no checking even...

Page 6: ...e from the front 4 Insert the instrument holder and tighten the screws to secure the meter Model mm 96x96 Case Size mm 91x91 Hole Size mm 92x92 0 5 Length mm 100 Minimum installation distance 120 Hori...

Page 7: ...responding terminal number 1 2 3 4 5 6 7 8 9 0 10 11 12 13 14 15 16 L N NO NC ACOM NO NC AO AO Blank B A COM S1 S2 S3 S4 Optional AC and DC power supply Range AC 85 265V DC 100 240V NO 1st alarm open...

Page 8: ...he current input connection of the product it is necessary to disconnect the primary circuit of the CT or short the secondary circuit It is recommended to use the terminal block for maintenance To ens...

Page 9: ...the interface shows that it is in the open state When it is disconnected externally it will be disconnected through the digital input module DI of the instrument collector and the interface will be i...

Page 10: ...cannot exceed 1200 meters The positive and negative polarity of the RS 485 port of each device must be connected correctly and one end of the cable shield is grounded If the shielded twisted pair is...

Page 11: ...T U V W X Y Z Display category Measurement display page list 4 5 Measurement display page description Instantaneous electrical parameters Display content Screen 1 3 phase voltage press ESC key to dis...

Page 12: ...rrent input 1234 to reset to factory setting Setting user password System Setting Clear Energy Signal Input Select the input network of the measured signal Primary coil voltage unit kV Network Volt tr...

Page 13: ...parameter setting way refers to the 1st loop alarm Continued from the front chart Period 12 rates 0 1 2 3 stands sharp peak flat valley Period 1 Start Time Period 2 Start Time Period 12 Start Time Pe...

Page 14: ...on setting Primary current setting Unit A Secondary current setting unit A 1st level 2nd level 3rd level modified state modified state measure state system setting sin 5s SET 5s SET SET SET SET SET SE...

Page 15: ...3 00 23 00 23 00 23 00 23 00 FL2 FL3 FL4 FL5 FL6 FL7 FL8 FL9 FL10 FL11 FL12 Flat Peak Flat Peak Flat Peak Flat Valley Valley Valley Valley Valley Setting value Remark Setting value Remark 28 36 46 56...

Page 16: ...e definition Check whether the 120 ohm resistor is added Check that the communication shield is well grounded Check the communication cable is disconnected Reason Solution Parameter Switch output low...

Page 17: ...d 2nd alarm action 2nd alarm end 1 10 Year Month Day Hour Minute Second Event Occurred Time 00 07 CRC XX XX A total of 32 groups of events were included both of which included event types and times Th...

Page 18: ...ding to MODBUS communication requirements abnormal response function code request function code 0x80 when abnormal response occurs the highest position of function number is 1 For example if the host...

Page 19: ...ntents at address 0x4000 memory The CRC code calculated by the host Host sending Slave address Function code Initial address Write data CRC code Bytes 1 1 1 1 1 1 2 Send Message 01 06 0x49 0x00 0x00 0...

Page 20: ...ster are exchanged The final CRC register content is CRC code unsigned int GET_CRC unsigned char buf unsigned charnum unsigned chari j unsigned int WCRC 0xffff for i 0 i num i WCRC unsigned int buf i...

Page 21: ...e total active energy Multi rate energy communication address Total cumulative sharp active energy Total cumulative peak active energy Total cumulative valley active energy long 0x411e 0x4120 0x4122 2...

Page 22: ...W Communication Address 2 Baud Rate 2 attached 2 0x4819 1 int R No decimal point 0 1 0 1 int 10 1 2 3 4 5 6 8 9 7 0x4800 0x4801 0x4802 0x4803 0x4804 1 1 1 1 1 int int int int R W R W 0 1 0 1 0 1 R W R...

Page 23: ...high limit value 0x4a03 1 int R W 1st transmission low limit value int 1 3 4 2 Muti rates parameter communication address 0x4b00 0x4b01 0x4b02 1 1 1 int int R W R W R W Period 1 rates Period 2 rates P...

Page 24: ...ription Communication ADD Bit number Alarm loop Instructions BIT2 BIT15 Unused Unused remote control 2 0 disconnect relay 0X480D BIT1 1 connect relay 0 disconnect relay 1 connect relay BIT0 remote con...

Page 25: ...phase voltage C phase voltage Voltage Data Block A phase current B phase current C phase current Current Data Block Combined Active Power A phase active power B phase active power C phase active powe...

Page 26: ...nt 1st harmonic B phase current 21st harmonic C phase current 1st harmonic C phase current 21st harmonic 0x020A0115 0x020A01FF 0x020A0201 0x020A0215 0x020A02FF 0x020A0301 0x020A0315 0x020A03FF 0x020B0...

Page 27: ...to MODBUS RTU check mode as shown in Picture 2 25 Commix Commix 1 3 Serial Port COM1 8 Data Bits Input HEX Input ASC Display HEX Display ASC Ignore Space Input Auto Linefeed Display interval Baud Rat...

Page 28: ...the following pictures 1 Window 1 is the sending message input window input the requested message in this window note that CRC is automatically added 2 Window 2 is the message display window in this w...

Reviews: