Skip to main content

Modbus C1 Master

Purpose

This plugin polls coils, discrete inputs, input registers, and holding registers through the Modbus C1 extension and writes variables when permitted. It is named ModbusC1Master in the device selector.

See Collection Configuration for common channel, device, variable, data-format, and import operations. This page covers only C1 protocol settings, batch limits, addresses, and debug.

Open the plugin

Open Development Configuration → Collection Configuration, create a TCP client, TCP server, serial, or UDP channel matching the field link, then create a device using ModbusC1Master.

Supported scope

ItemDescription
ChannelsTCP client, TCP server, serial, and UDP. Match the device transport settings.
Data typesBoolean, Byte, common signed/unsigned integers, Float, Double, String, and Decimal.

Plugin properties

SettingDefaultRangeDescription
Modbus typeModbusTcpModbusTcp or ModbusRtuC1 currently provides TCP and RTU adapters; do not select ModbusAscii.
Default station11 to 255Used when the variable address does not specify a station.
FC1 maximum coils16001 to 2000Maximum coils in one FC1 read.
FC2 maximum discrete inputs16001 to 2000Maximum bits in one FC2 read.
FC3 maximum holding registers1001 to 125Maximum registers in one FC3 read.
FC4 maximum input registers1001 to 125Maximum registers in one FC4 read.
FC15 maximum coil write19681 to 1968Maximum coils in one FC15 write.
FC16 maximum register write1231 to 123Maximum registers in one FC16 write.
DTU ID--Device identifier used by the DTU service.

Keep batch limits at their defaults unless the device manual requires lower values.

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 adjacent variables must not overlap.

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 Modbus C1 device, and click More Functions, then open Debug.

FeaturePurpose
Read/WritePerforms a single read or approved write using the C1 address syntax.
MessagesShows protocol messages and logs for station, function, and response checks.

Modbus C1 read and write

Modbus C1 messages

Read a known address first. Verify variable permission, function code, and site safety before writing.

Verify the configuration

  1. Read one known register and compare station, value, data type, and byte order.
  2. Confirm a valid request and response under Messages.
  3. Write only an approved test variable and read it back as required by the site.

Troubleshooting

SymptomCheck
No responseChannel, Modbus type (TCP/RTU only), station, address, function, serial settings, or network.
Exception responseFunction code, address range, quantity, and device support.
Value is incorrectData type, byte order, address base, and overlap.
Write failsVariable permission, write function, data type, and device write protection.