Rockwell Automation 1779-KP3R DATA HIGHWAY II User Manual

Page 47

Advertising
background image

Programming

Chapter 3

3Ć12

Addressing a Block of Words

This section provides examples of addressing a block of words in each
PLC–2, PLC–3, and PLC–5 memory.

To

address a

block of

words in:

Use this format:

Examples:

PLC-2

memory

$wordaddr,size

$010,22 (specifies 22 words beginning with the

address 010).

The maximum number of words you can specify with

the size parameter is 65,535 for MOVE command.

For TMOVE, the maximum is 18 (if wordaddr is less

than 127) and 17 (if wordaddr is greater than 127).

PLC-3

memory

$fileaddr:wordaddr,size

or

$extaddr,size

$A1:0,1024 (specifies 1024 words starting at word 0

of ASCII file 1)

$E3.1.9.1.0.0, 1024 ( specifies 1024 words starting at

word 0 to ASCII file 1).

The maximum number of words you can specify with

the size parameter is 65,535 for MOVE command.

For TMOVE, the maximum is based on the following

chart (all values in decimal).

File:

Word:

Maximum:

0

0

18

0

0 < word

254

17

0

0 < word

254

16

0 < file

254

word

254

17

file > 254

word

254

16

0 < file

254

word > 254

16

file > 254

word > 254

15

PLC-5

memory

$extraddr,size

$E0.10.1.0,10 specifies 10 words beginning with word

1 of file 10.

Addressing Immediate-access Block Numbers

There are 16 immediate–access blocks of 42 bytes in length in every KP3
or KP2 module. To address them you ‘‘specify & digit”, where digit can
be from 0 to 15. When you define an immediate–access block, you are
setting aside an area in the KP3 that will be updated (via the TMOVE
command) with data from a specified area in the PLC–3 memory.

Advertising
This manual is related to the following products: