Ladder diagram – Rockwell Automation 1404-M4_M5_M6_M8 Powermonitor 3000 User Manual, Firmware rev. 3.0 or LATER User Manual

Page 316

Advertising
background image

316

Publication 1404-UM001F-EN-P - November 2009

Appendix C Sample Applications

Ladder Diagram

Sample logic program that shows a way to configure a Powermonitor 3000 User Configurable Data Table

from a ControlLogix controller via the 1404-NENET communications option card using EtherNet/IP.

See the accompanying text for a list of tags to be created in the ControlLogix controller.

The first rung allows a selection of tables to write to the PM3000. Enter a 0, 1, or 2 into the tag "Select"

to select between the default table, a custom table, or an "Undo" of the last write. The selected

table is copied into the "Download" table. The rung logic also copies the PM3000 password into the "Download" table .

If the password is changed from the default (0), the new password must be entered into the tag "pwd."

Toggle the "Start" tag to begin.

0

Start

ONS

Oneshot_1

Equal
Source A

Select

2

Source B

0

EQU

Copy File
Source

Default[0]

Dest

Download[0]

Length

26

COP

Equal
Source A

Select

2

Source B

1

EQU

Copy File
Source

Custom[0]

Dest

Download[0]

Length

26

COP

Equal
Source A

Select

2

Source B

2

EQU

Copy File
Source

Old[0]

Dest

Download[0]

Length

26

COP

Copy File
Source

Pwd

Dest

Download[0]

Length

1

COP

EN
DN
ER

Type - PLC-5 Typed Read
Message Control

msgReadOld

...

MSG

Advertising