On this page
DL/T 645-1997 master
This plugin collects electricity-meter data over DL/T 645-1997.
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Electricity meters supporting DL/T 645-1997 | Use 1997 data identifiers and meter address with matching serial settings. Use the DL/T 645-2007 plugin for 2007 devices. |
Identify the 1997 address and DI with a meter tool
Explicitly select DL/T 645-1997 in the vendor tool and read the actual meter address and one known item. Match optical/RS-485 interface and serial settings. TCP/UDP tunnels must preserve 645 bytes and do not change protocol editions.
- Replace default
111111111111with the real 12-digit address; shorter addresses are left-zero-padded. PreambleFEFEFEFEmeans hexadecimal wake-up bytes, not ASCII letters. - Create the channel for the real connection direction. Direct links leave DTU ID blank; inbound registration identity is separate from meter address.
- For a supported voltage item
B6-11, add read-only scalar Double with the same DI and compare the same phase/unit. A 1997 DI has exactly two bytes, unlike 200702010100. - Each DI represents one item, with at most one array element. Conversion removes DI, decodes BCD and applies its decimal format.
Byte reversal override is R=true/false, default true. Change it only for a documented device layout; it neither changes DI size nor enables BCD. S=123456789012;B6-11 overrides the meter address for one variable. Default ABCD cannot compensate for the wrong DI or address.
Writes encode one value using the DI’s BCD width and decimals, only where the meter permits it. Arrays and arbitrary registers are not supported. See Collection Configuration for common timeout, retry and interval settings.
Open the plugin
Enter “Development Configuration → Collection Configuration”, create a device and select “DL/T 645-1997 master” in “Device 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
This list describes types allowed by the plugin editor. Address width, arrays, string length and read/write restrictions still follow this page; it does not mean that every address supports every type.
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 master.
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.
Device debug
Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.


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. |
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
- A 1997 identifier is exactly two bytes, unlike the four-byte 2007 format.
R=falseonly disables data-byte reversal. - 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.