Preface, Example program #2, Aps import/export utility user manual 5-40 – Rockwell Automation 9323-PA2E APS SLC 500 Import/Export Utility User Manual User Manual

Page 75: Aps ladder program

Advertising
background image

Preface

APS Import/Export Utility User Manual

5-40

Example Program #2

This example provides you with a longer and more complex program. The key
feature of this program is its subroutine.

Example program #2 in APS ladder format.

APS Ladder Program

File 2: Rung 0

B3

]

[

0

B3

]

[

1

B3

] / [

2

B3

]

[

3

Rung 1

MASKED EQUAL

Source

B3:55

0000000000000000

Mask

B3:56

0000

Compare

8754

MEQ

ADD

Source A

N7;0

0

Source B

50

Dest

N7;1

0

ADD

B3

(

)

99

SUB

Source A

N7;2

0

Source B

N7;3

0

Dest

N7;0

0

SUB

NOT EQUAL

Source A

N7:0

0

Source B

100

NEQ

JUMP TO SUBROUTINE

SBR file number

4

JSR

Rung 2

5

[LBL]

N7:0

(

)

15

Rung 3

JENDJ

Advertising