DL/T 645-1997
Purpose
DL/T 645-1997 Electric energy meter communication protocol collection driver
Open the plugin
Enter "Development Configuration → Collection Configuration", create a device and select "DL/T 645-1997" in "Collection Plugin".
Supported channels and data types
| Channel type | Pre-configuration check |
|---|---|
| TCP Client | Confirm network reachability of the device IP, port, and gateway to the device. |
| TCP server | Confirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway. |
| Serial Port | Confirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device. |
| UDP | Confirm the local binding address, port and firewall rules, and check the source of the packet. |
Optional data types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String, Decimal
Plugin properties
The plugin uses the common collection properties for read/write timeout, retry, write priority, data format, serial settings, and DTU routing. See Collection Configuration; the fields below are specific to DL/T 645-1997.
Protocol parameters
| Setting | Description |
|---|---|
| Default address | Default: 111111111111; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address. |
| Preamble header | Default: FEFEFEFE; fill in: text input. Set the preamble header used for protocol communication. |
Connection configuration
| Setting | Description |
|---|---|
| DTU ID | Fill in: text input. Sets the identifier used to identify the current device connection through the DTU service. |
Address rules
- The data identifier must contain exactly two bytes, for example
B6-11. - Use
S=123456789012to override the meter address for one variable; fewer than 12 digits are left-padded with zeroes. - Use
R=falseto disable protocol data-byte reversal; the default isR=true. A complete example isS=123456789012;B6-11;R=false. - One address may contain only one data identifier, one station override, and one reversal option.
Functions
| Function | Purpose |
|---|---|
| Read and write | Read a confirmed point and write only to an approved test point. |
| Messages | View sent and received frames, protocol fields, and error details. |
Device debug
Enter "Development Configuration → Collection Configuration", select the current device and click "More Functions", then open "Debug".
Dedicated debugging page
Open Development Configuration → Collection Configuration, select the device, and open More Functions → Debug. The following image shows the plugin-specific debug page.


Verify the configuration
Use a confirmed on-site address to perform reading. Verify the meter address, two-byte data identifier, reversal option, returned value, data type, and byte order against the point list; after a writable point is written, read it back according to site requirements.
Troubleshooting
- Address reading failed: Check the station number, register or node ID one by one according to the address rules on this page, and confirm that the data type is consistent with the device point list.
- The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.
- Values are byte-reversed: Check
R=true/falsein the variable address and compare the raw frame in the Messages panel.
Related links
- Collection configuration: View channel, device and common variable configuration.
- Plugin Index: Find other collection or data-forward plugins.