Skip to Content
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 examplesConnection requirements
Electricity meters supporting DL/T 645-1997Use 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.

  1. Replace default 111111111111 with the real 12-digit address; shorter addresses are left-zero-padded. Preamble FEFEFEFE means hexadecimal wake-up bytes, not ASCII letters.
  2. Create the channel for the real connection direction. Direct links leave DTU ID blank; inbound registration identity is separate from meter address.
  3. 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 2007 02010100.
  4. 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 typePre-configuration check
TCP ClientConfirm network reachability of the device IP, port, and gateway to the device.
TCP serverConfirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway.
Serial PortConfirm 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.
UDPConfirm 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

SettingDescription
Default addressDefault: 111111111111; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address.
Preamble headerDefault: FEFEFEFE; fill in: text input. Set the preamble header used for protocol communication.

Connection configuration

SettingDescription
DTU IDFill 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=123456789012 to override the meter address for one variable; fewer than 12 digits are left-padded with zeroes.
  • Use R=false to disable protocol data-byte reversal; the default is R=true. A complete example is S=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.

DL/T 645-1997 master: Read/Write

DL/T 645-1997 master: Messages

Functions

FunctionPurpose
Read and writeRead a confirmed point and write only to an approved test point.
MessagesView 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=false only 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/false in the variable address and compare the raw frame in the Messages panel.