beautypg.com

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

Page 319

background image

Publication 1404-UM001F-EN-P - November 2009

319

Sample Applications Appendix C

3

Timer2.DN

EN
DN
ER

Type - PLC-5 Typed Read
Message Control

msgGetStatus

...

MSG

msgGetStatus.ER

CU
DN

Count Up
Counter

Counter1

Preset

2

Accum

0

CTU

msgGetStatus.DN

Equal
Source A

Status[0]

30

Source B

30

EQU

Not Equal
Source A

Status[1]

-1

Source B

-1

NEQ

Counter1.DN

msgWriteNew.ER

Failed

msgGetStatus.DN

/

Failed

L

Success

Failed

Success

U

Start

RES

Counter1

Timer2 delays evaluating the write status until the Powermonitor 3000 unit has reset.

This rung evaluates the results of writing the new configuration.

The "Failed" flag asserts if the WriteNew message instruction errors-out, or if the GetStatus instruction errors out twice, or if the write status

indicates bad data in the download table. If there is a bad data indication, verify that word 0 of the download table is the correct Powermonitor 3000

password, that word 1 is a value of 31 (decimal) and that at least one or more words beginning with word 3 are non-zero. Then try toggling "start" again.

Counter1 increments if the GetStatus message errors out. The logic will wait until Timer2 times out and then retry the GetStatus message.

When the operation is complete with no errors, the "Success" flag asserts and the "Start" flag is cleared.

End