Skip to main content

Modbus C20 Master

Purpose

In addition to common Modbus address reads and writes, this plugin reads C20 waveform files, spectra, frequency amplitudes, and spectrum settings. It is named ModbusC20Master in the device selector.

See Collection Configuration for common channels, variables, data format, and imports.

Open the plugin and supported scope

Create a TCP client, TCP server, serial, or UDP channel, then create a device using ModbusC20Master. Supported types include Boolean, Byte, common integers, Float, Double, String, and Decimal.

Plugin properties

SettingDefaultRangeDescription
Modbus typeModbusTcpModbusTcp or ModbusRtuC20 currently provides TCP and RTU adapters; do not select ModbusAscii.
Default station11 to 255Used when no station is present in the address.
FC1 / FC2 read limits1600 / 16001 to 2000Maximum bits per read.
FC3 / FC4 read limits100 / 1001 to 125Maximum registers per read.
FC15 / FC16 write limits1968 / 123Protocol limitsMaximum values per batch write.
DTU ID--Used for a DTU service connection.

Addresses and special methods

Common addresses use 00001, 10001, 30001, and 40001. 40001;s=2; selects station 2 and 40001;w=16; selects FC16 for writes.

MethodPurposeParameters
ReadFileAsyncRead a waveform filestation, fileAddress, startAddress, length
ReadAtlasDatasAsyncRead spectrum dataaddress
ReadFrequencyDataAsyncRead frequency, amplitude, and total energyaddress
ReadAtlasSettingAsyncRead spectrum settingsaddress

Functions

FunctionPurpose
File and spectrum operationsUse the protocol-specific operations and review the returned result.

Device debug

Open Development Configuration → Collection Configuration, select the Modbus C20 device and click More Functions, then open Debug → Protocol Debug · ModbusC20. The dedicated panel contains read-only operations.

FeaturePurpose
File Area and WaveformReads a waveform by station, file address, start address, and quantity.
Spectrum and FrequencyReads spectrum data, frequency amplitude, or spectrum settings by device address.

Modbus C20 file area and waveform

Modbus C20 spectrum and frequency

Verify the configuration

  1. Verify the station and channel with one common register read.
  2. Read a known file segment under File Area and Waveform.
  3. Read a device-defined address under Spectrum and Frequency and compare it with the vendor tool.

Troubleshooting

SymptomCheck
Common address failsChannel, framing, station, address, and data type.
Waveform is emptyFile address, start address, quantity, and device file state.
Spectrum read failsDevice address, current collection state, and C20 function support.
Serial device does not respondPort ownership, baud rate, parity, stop bits, and framing.