Skip to main content

Nanjing DCS Modbus TCP Master

Purpose

This plugin reads and writes coils and registers through the Nanjing DCS Modbus TCP session. The session performs a connection probe after reconnecting and handles the DCS leading status frame. It is named NanjingDcsMaster in the device selector.

See Collection Configuration for common channel, device, variable, data-format, and batch settings. This page covers only the fixed framing, DCS station, addresses, and debug.

Open the plugin

Open Development Configuration → Collection Configuration, create a TCP client channel, then create a device using NanjingDcsMaster.

Supported scope

ItemDescription
ChannelTCP client only.
FramingFixed to Modbus TCP.
Data typesBoolean, Byte, common signed/unsigned integers, Float, Double, and String.

Plugin properties

SettingDefaultDescription
Modbus framingModbusTcpKeep this value; RTU and ASCII are not supported.
DCS station1Used by the reconnect probe and when the variable address omits a station.

Multi-byte values use CDAB by default. Keep the common batch limits unless the DCS requires smaller frames.

Address rules

AddressAreaCommon read function
00001CoilsFC1
10001Discrete inputsFC2
30001Input registersFC4
40001Holding registersFC3
  • 40001;s=2; reads the first holding register at station 2.
  • 40001;w=16; uses FC16 for writes.
  • Addresses are one-based. Registers occupied by multi-register values must not overlap adjacent variables.

After each TCP reconnect, the plugin reads holding register zero at the configured station and waits for the DCS six-byte status frame. Use the standard Modbus collection plugin for an ordinary Modbus TCP device that does not provide this frame.

Special methods

This plugin has no additional special methods. Variables use standard Modbus addresses directly.

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

Open Development Configuration → Collection Configuration, select the Nanjing DCS device, and click More Functions, then open Debug. This plugin uses the Read/Write and Messages tabs.

FeaturePurpose
Read/WriteReads one DCS Modbus address or performs an approved write.
MessagesShows the connection probe, status frame, requests, and responses.

Read/Write

Enter the address, data type, and array length. Read a known point first and write only after site approval.

Nanjing DCS read and write debug

Messages

Start message capture to inspect the connection probe, leading status frame, request, and Modbus response.

Nanjing DCS message debug

Verify the configuration

  1. After connecting, confirm the status frame under Messages.
  2. Read one known register and verify the station, value, data type, and byte order.
  3. Write only an approved test point and read it back as required by the site.

Troubleshooting

SymptomCheck
Device remains offline after reconnectDCS station, holding-register-zero probe, and six-byte status frame.
Address read failsAddress area, station, function code, and DCS point list.
Value is incorrectData type, default CDAB byte order, and register overlap.
Standard Modbus response is received but connection failsVerify that the device is a Nanjing DCS requiring the status frame; otherwise use the standard Modbus plugin.