Sample program operation – Rockwell Automation 1404-M4_M5_M6_M8 Powermonitor 3000 User Manual, PRIOR to Firmware rev. 3.0 User Manual

Page 281

Advertising
background image

Publication 1404-UM001D-EN-E - October 2004

Sample Applications C-27

User-Configured Data Table
Setup Using ControlLogix
and EtherNet/IP

The final example is a ladder program designed to customize the User
Configured Data Table in a Powermonitor 3000 using a ControlLogix
controller via its EtherNet/IP Bridge (1756-ENET/B).

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

• IP Address: 130.151.70.173
• Subnet mask: 255.255.0.0
• Gateway IP Address: Not Set
• Keep Alive Time: 30 Seconds
• 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 Powermonitor 3000 to permit an “Undo” operation. The
user must create tags listed in Table C.9 below and enter data
correctly to configure the Powermonitor 3000 User Configurable Data
Table successfully.

The “Start” flag begins the logic execution. The “Select” tag’s value
determines which configuration is written to the Powermonitor 3000.

• 0 - Default table setup
• 1 - Custom table setup
• 2 - Undo the last write

First, the logic reads the existing setup table from the Powermonitor
3000 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 Powermonitor 3000 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 Powermonitor 3000 is shown below. Note the instance name is
the lower of the two values given in Table A.1. Service code 10 (hex)
is for a write “Set_attribute_single”.

Advertising