ModbusTCP Master
MbTm Generic
Description

ModbusTCP Master, Generic

Provides high-speed control and monitoring of a ModbusTCP slave/server device over Ethernet with ModbusTCP industrial standard.

Each function block is dedicated to one remote device. Many function blocks allow simultaneous control and monitoring of many devices.

A sample function block view is shown below. It provides the key details and access to the programmer.

The IP address of the server device must be entered.

The actual polling period indicates how often each parameter's data is updated.

Click the Program parameter to begin or to examine the details.

Programming is simple and intuitive, especially where parameters and function blocks have been especially named for their purpose. In the following screenshots taken from an example bag machine, most parameters and function blocks have been renamed for clarity.

Begin under the 'High Priority' tab by clicking the plus button to add a read or write command. The following screenshot shows the available, supported function codes. Floating point commands ensure that two consecutive parameters, starting at the given address, are processed concurrently.

In the newly created line, click in the first box to the right of the read or write command. Enter or select the source parameter for the read or write.

The next box to the right is the address of the destination for the read or write data.

Function codes that support multiple, sequential reads or writes have another box to the right of the 'X' multiplication symbol. Select the number of sequential parameters to read or write.

Medium priority, low priority, and setup commands are programmed similarly. Setup commands are processed only once upon initiation of communication.

Click the Configuration tab

Comms Time Allocation allows the bandwidth to be prioritized among the three levels; high, medium, and low. The naming of the levels is a suggested guide. The priority could be given to the 'low-priority' group by sliding its divider to the left.

Comms Gap Time defaults to 5ms to reduce network loading. After each read or write command, the controller waits for the given period before the next command is issued.

Availability
  • Available only in the dw2xx-v2 series products
  • Requires library: Process Control (option -05)
  • Firmware versions 0x210C and later
savvy-SFD Graphic mbtmGeneric
Graphic with Parameters mbtmGeneric

Parameters

IP Address Internal Parameter, Read-write, IP Address (unsigned 32-bit integer)

ModbusTCP Master - IP Address

Required entry. The IP address of the ModbusTCP Slave Server device that this block is communicating with.

ModbusTCP Port Internal Parameter, Read-write, Analog (unsigned 16-bit integer)
1 to 49151

ModbusTCP Master - Port

Typically, this parameter must be left at standard, 502.

502 = Standard (502)
Enable Input, Read-write, Boolean (signed 16-bit integer)

ModbusTCP Master - Enable

The function block is only active when this parameter is enabled.

No commands or updates are possible when disabled.


0 = Disable
1 = Enable
Comms Timeout Internal Parameter, Read-write, Analog (unsigned 16-bit integer)
10.0 ms to 6000.0 ms

ModbusTCP Master - Program

The elapsed time after sending a command and receiving no response beyond which a comms timeout error is indicated and logged.

Logging Detail Internal Parameter, Read-write, Enumerated (signed 16-bit integer)

Standard: Errors Only; Extended: + Connection Establishment; Debug: + Transmit and Receive; Verbose: + comms data
0 = Standard
1 = Extended
2 = Debug
3 = Verbose
Actual Polling Period 'High' Internal Parameter, Read-only, Analog (signed 16-bit integer)
0.000 s to 32.767 s

ModbusTCP Master - Actual Polling Period - High

All high-priority parameters are updated every period.

32767 = >32s
Actual Polling Period 'Medium' Internal Parameter, Read-only, Analog (signed 16-bit integer)
0.000 s to 32.767 s

ModbusTCP Master - Actual Polling Period - Medium

All medium-priority parameters are updated every period.

32767 = >32s
Actual Polling Period 'Low' Internal Parameter, Read-only, Analog (signed 16-bit integer)
0.000 s to 32.767 s

ModbusTCP Master - Actual Polling Period - Low

All low-priority parameters are updated every period.

32767 = >32s
Program Internal Parameter, Read-write, ModbusTCP Master Program (Byte Array)

ModbusTCP Master - Program

Click the Program parameter to begin or edit or examine the details of an existing program.