ProSoft Technology MVI69E-MBTCP User Manual

Page 81

Advertising
background image

MVI69E-MBTCP ♦ CompactLogix Platform

Using Controller Tags

Modbus TCP/IP Enhanced Communication Module

User Manual

ProSoft Technology, Inc.

Page 81 of 150

May 20, 2015

MBTCP.CONTROL.EventCommand_DBData

This array allows the processor to dynamically build Modbus commands with
data associated to the module’s database. This feature is meant for periodic
execution such as resetting clock and zeroing-out counters.

Tag Name

Range

Description

MBTCP.CONTROL.EventCommand
_DBData.Trigger

0 or 1

Toggle to send Event Command.
0 = Disable, 1 = Enable

MBTCP.CONTROL.EventCommand
_DBData.ClientID

0 to 19

Client ID associated with the command to be
executed

MBTCP.CONTROL.EventCommand
_DBData.ServerIPaddress

xxx.xxx.xxx
.xxx

IP address of target Modbus server

MBTCP.CONTROL.EventCommand
_DBData.ServicePort

502 or
2000

Service port of target Modbus server

MBTCP.CONTROL.EventCommand
_DBData.SlaveAddress

1 to 255

Slave address of target Modbus TCP/IP to serial
device, if applicable

MBTCP.CONTROL.EventCommand
_DBData.InternalDBaddress

0 to 9999
(word-level)
or
0 to 65535
(bit-level)

Specifies the module’s internal database
register to be associated with the command.
Allowable range is:
0 to 9999 for Modbus Function Codes 3, 4, 6, or
16
0 to 65535 for Modbus Function Codes 1, 2, 5,
or 15.

MBTCP.CONTROL.EventCommand
_DBData.RegisterCount

1 to 125
(words)
or
1 to 800
(coils)

Specifies the number of registers or digital
points to be associated with the command.
Modbus Function Codes 5 and 6 ignore this field
as they only apply to a single data point.

MBTCP.CONTROL.EventCommand
_DBData.SwapCode

0,1,2,3

Specifies if the data received from the Modbus
server is to be ordered differently than received
from the server device.
This parameter is helpful when dealing with
floating-point or other multi-register values, as
there is no standard method of storage of these
data types in server devices.

MBTCP.CONTROL.EventCommand
_DBData.ModbusFC

1,2,3,4,5,6,
15,16

Specifies the Modbus function to be executed
by the command.

MBTCP.CONTROL.EventCommand
_DBData.DeviceModbusAddress

0 to 9999

Specifies the register or digital point address
offset within the Modbus server device. The
MBTCP client reads or writes from/to this
address within the server.

MBTCP.CONTROL.EventCommand
_DBData.StatusReturned

0 = Fail
1 = Success
-1 = Client is not Enabled and Active

MBTCP.CONTROL.EventCommand
_DBData.CmdInQue

Number of commands in the queue waiting to
be executed

Advertising