Modbus Serial Channel Tag

Help Contents

Introduction

The Modbus Serial Channel Tag Channel Tag Icon provides a serial SCADA/HMI communication channel to Modbus PLCs.

Configuration Properties

The Modbus serial channel supports the properties of the Modbus Channel Tag plus these properties:

Property Type Version Description
Port WSTRING 1.0 The name of the communications port. For example 'COM1:'
Mode WSTRING 1.0 The serial port communication speed, data format and handshake mode.
Click the Browse button Browse button to edit the serial port mode using the Serial Port Mode Editor. You can also type in the serial port mode string directly. See Serial Port Mode String for how this property is formatted.
Protocol USINT 1.0 The communications protocol. 0 - Modbus RTU, 1 - Modbus ASCII.
TransmitDelay UINT 3.34 The number of characters to wait before sending the next Modbus RTU message. Only applies if Protocol is set to Modbus RTU.

TransmitDelay property

The Modbus RTU specification requires each message starts with a silent interval of at least 3.5 characters.

The TransmitDelay property sets the number of characters to wait before Fernhill SCADA sends the next message. The Fernhill SCADA modbus driver waits for this interval before sending the next message.

The actual interval is calculated from the following parameters:

If the calculated value is less than 5ms, the value is rounded up to 5ms.

Not all Modbus RTU devices require a silent interval. Providing the silent interval maximizes interoperability with Modbus devices that require it.

The TransmitDelay is not applied if Protocol is set to Modbus ASCII.

Tag Commands

The Modbus Serial Channel Tag supports the tag commands of the Modbus Channel Tag.

Example Configuration

This is an example of channel configuration suitable for Modbus RTU:

PropertyValue
ReplyTimeoutT#5s
PortCOM1
ModeBaud=9600 Parity=N Data=8 Stop=1
ProtocolModbus RTU

Notes:

Relationships to Other Tag Types

The Modbus Serial Channel Tag builds on the features of these tag types:

Further Information

Active Channel Tag

To learn about the properties common to all active channels.

Modbus TCP/IP Channel Tag

To learn about Modbus TCP Channel Tags.

Modbus Device Tag

To learn about Modbus Device Tags that can be associated with Modbus serial channels.

Alarm Handling

To learn about alarm management.

Serial Port Mode Editor

To learn how to set the communications speed, data format, and handshake mode of the serial port.

Glossary

For the meaning of terms used in Fernhill SCADA.