Skip to Content
Documentation03 · Data collectionProtocol pluginsProtocolsDL/T 645-1997 meters
On this page

DL/T 645-1997 meters

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 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.

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: Read/Write

DL/T 645-1997: 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.