beautypg.com

ProSoft Technology MVI94-MCM-MHI User Manual

Page 28

background image

Configuration

MVI94-MCM ♦ Flex I/O Platform

User Manual

Serial Communications Modbus Communication Module

Page 28 of 109

ProSoft Technology, Inc.

March 29, 2011

Read Multiple Floating-Point Registers
The following table is an example to read Multiple Floating-Point values and

device addresses. The table shows 7 consecutive floating-point values (14

Modbus addresses).

Value

Description

Type

40261

KW

Demand (power)

Float. upper 16 bits

40263

VAR

Reactive Power

Float. upper 16 bits

40265

VA

Apparent Power

Float. upper 16 bits

40267

Power Factor

Float. upper 16 bits

40269

VOLTS

Voltage, line to line

Float. upper 16 bits

40271

VOLTS

Voltage, line to neutral

Float. upper 16 bits

40273

AMPS

Current

Float. upper 16 bits

Configure the command to read these 7 floats as follows.

Configure an array of 7 floats within the ControlLogix processor as shown in the

following illustration.

The following COP

statement will copy the data from MCM.DATA.R

EAD

D

ATA

[0]

TO

[13]

into the array MCM_F

LOAT

_D

ATA

[0]

TO

[6].

The "Length" parameter is set to the number of Floating-Point values that must

be copied from the MCM.DATA.R

EAD

D

ATA

array.

This manual is related to the following products: