Skip to main content

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

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.

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.

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.

DL/T 645-1997 debug subpage 1

DL/T 645-1997 Debug subpage 2

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/false in the variable address and compare the raw frame in the Messages panel.