User-configured data table setup by using, Sample program operation – Rockwell Automation 1404-M4_M5_M6_M8 Powermonitor 3000 User Manual, Firmware rev. 3.0 or LATER User Manual

Page 314

Advertising
background image

314

Publication 1404-UM001F-EN-P - November 2009

Appendix C Sample Applications

User-configured Data Table
Setup by Using
ControlLogix and
EtherNet/IP Networks

This example shows a ladder program designed to customize the
User-configured Data Table in a power monitor by using a
ControlLogix controller via its EtherNet/IP Bridge (1756-ENET/B).

Use of the user-configured data table to consolidate parameters from
different power monitor data tables can increase the efficiency of
communication. The following example and ladder listing use these
settings:

IP Address: 130.151.70.173

Subnet mask: 255.255.0.0

Message type: PLC-5 Typed Read

Sample Program Operation

The ladder program is executed within a continuous task. This sample
logic reads and saves the existing User Configured Data Table setup
file from the power monitor to permit an Undo operation. You must
create tags listed in the ControlLogix Tags Used table on

page 315

and

enter data correctly to configure the power monitor User Configurable
Data Table successfully.

The Start flag begins the logic execution. The Select tag’s value
determines which configuration is written to the power monitor.

0 - Default table setup

1 - Custom table setup

2 - Undo the last write

First, the logic reads the existing setup table from the power monitor
and saves it in the Old tag. After a brief delay, it writes the selected
setup table. If the number of parameters in the User Configured Data
Table changes, the power monitor resets. After another delay, the
write status table is read and if it indicates a successful write, the
Success flag is set.

The message configuration for writing the new configuration table to
the power monitor is shown below. Note the instance name is the
lower of the two values given in the Summary of Powermonitor 3000
Data Tables for all Communication Options t
able on

page 188

. Service

code 10 (hex) is for a write Set_attribute_single.

Advertising