Mnetrdata, Mnetrstatus – ProSoft Technology MVI56E-MNETR User Manual

Page 80

Advertising
background image

MVI56E-MNETR ♦ ControlLogix Platform

Ladder Logic

Modbus TCP/IP Interface Module with Reduced Data Block

User Manual


Page 80 of 153

ProSoft Technology, Inc.

August 31, 2009

3.1.1 MNETRDATA

This object holds data to be transferred between the processor and the MVI56E-
MNETR module. The user data is the read and write data transferred between
the processor and the module as "pages" of data up to 40 words long.

Name Data

Type

Description

ReadData

INT[600]

Data read from module

WriteData

INT[600]

Data to write to module

The read data (R

EAD

D

ATA

) is an array set to match the value entered in the

Read Register Count parameter of the MNET.CFG file. For ease of use, this
array should be dimensioned as an even increment of 40 words. This data is
paged up to 50 words at a time from the module to the processor. The ReadData
task places the data received into the proper position in the read data array. Use
this data for status and control in the ladder logic of the processor.

The write data (W

RITE

D

ATA

) is an array set to match the value entered in the

Write Register Count parameter of the MNET.CFG file. For ease of use, this
array should be dimensioned as even increments of 40 words. This data is paged
up to 40 words at a time from the processor to the module. The WriteData task
places the write data into the output image for transfer to the module. This data is
passed from the processor to the module for status and control information for
use in other nodes on the network.

3.1.2 MNETRSTATUS

This object views the status of the module. The MNETRSTATUS object shown
below is updated each time a read block is received by the processor. Use this
data to monitor the state of the module at a "real-time rate".

The following table describes the structure of this object.

Name Data

Type

Description

PassCnt

INT

Program cycle counter

BlockStats MNETRBlockStats

Status information for the data transfer
operations between the processor and the
module

Reserved1

INT

Reserved for future use

Reserved2

INT

Reserved for future use

MNETReq INT The number of MNET (Port 2000) requests

received

MNETResp INT The number of MNET (Port 2000) responses

sent

MBAPReq INT The number of MBAP (Port 502) requests

received

MBAPResp INT The number of MBAP (Port 502) responses

sent

ClientStatus MNETRClientStats

Client Status Data

Advertising
This manual is related to the following products: