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

Page 330

Advertising
background image

330

Publication 1404-UM001F-EN-P - November 2009

Appendix C Sample Applications

Initialize N12:0 word counter. Copy F13 configuration float data to N11 temporary file.

0000

SBR

Subroutine

SBR

MOV

Move
Source

0

0<
Dest

N12:0

30<

MOV

COP

Copy File
Source

#F13:0

Dest

#N11:0

Length

32

COP

Continue to swap words until 32 floats have been converted. This is enough to handle all power monitor files.

0001

LBL

Q4:1

LES

Less Than (A<B)
Source A

N12:0

30<
Source B

62

62<

LES

ADD

Add
Source A

1

1<
Source B

N12:0

30<
Dest

N12:1

29<

ADD

MOV

Move
Source N11:[N12:1]
0<
Dest

N12:2

0<

MOV

MOV

Move
Source N11:[N12:0]

0<

Dest

N11:[N12:1]

0<

MOV

MOV

Move
Source

N12:2

0<

Dest

N11:[N12:0]

0<

MOV

ADD

Add
Source A

2

2<

Source B

N12:0

30<

Dest

N12:0

30<

ADD

JMP

Q4:1

Advertising