Plc–2 programming example – Rockwell Automation 2705 REDIPANEL KEYPAD MODULE USER MANUAL User Manual

Page 55

Advertising
background image

Chapter 7
Programming

7–17

The example program below is explained on the following pages. We present the program here (and on the next page)
in its entirety for your reference. Note – Block transfer is only required when using the 1771–SN sub I/Oscanner
Block transfers allow communications between the sub–scanner and PLC. Block transfers are not required for any
other type of scanner module.

!

+

A

+

+

BLOCK XFER READ

DATA ADDR:

0030

MODULE ADDR:

111

BLOCK LENGTH

14

FILE:

0200–0215

+

+

+

+

!

!

!

!

!

+

!

!

!

(EN)

011

+

(DN)

+

+

+

BLOCK XFER WRITE

DATA ADDR:

0031

MODULE ADDR:

111

BLOCK LENGTH

14

FILE:

0400–0415

+

+

+

+

!

+

!

!

!

(EN)

011

+

(DN)

!

17

111

17

16

111

16

B

+

+

+

FILE TO FILE MOVE

COUNTER ADDR: 0031

POSITION:

014

FILE LENGTH

014

FILE A:

0200–0215

FILE: B: 0300–0315

RATE PER SCAN: 014

+

+

+

+

!

+

!

!

!

!

!

!

!

(EN)

0033

(DN)

17

0033

15

C

!

!

!

!

!

!

!

!

!

!

!
!

!

!

!

!

!

!
!

!

!

!

!

!

!

!
!

!

!

!

111

17

+

1

310

10

(

CTU

)

0037

+

2

0037

214

(

PUT

)

0500

!

!

+

3

477

00

(

CTU

)

500

!

!

+

4

477

00

(

)

500

G

PR 500

AC 214

214

15

!

!

+

5

310

10

(

PUT

)

0412

17

0500

214

G

!

+

10

(

PUT

)

0413

214

6

!

0513

003

G

310

003

PLC–2 Programming Example

Advertising