Chapter 7 Buffer read/write instructions

7 - 1
7 Buffer read/write instructions

7.1 Buffer read instructions

7.1.1 GET / GETP instruction

GET, GETP FUN(230) GET
FUN(231) GETP Applicable CPU
K200S
K300S
K1000S
Available devices Flag
Instructions M P K L F T C S D #D Integer Steps Error
(F110) Zero
(F111) Carry
(F112)
n1 ¡
S ¡
D ¡ ¡ ¡ ¡* ¡ ¡ ¡ ¡
GET
GETP
n2 ¡
9 ¡
Operand setting
n1 Slot number at which A/D
module is mounted
S Start address of buffer
memory to be read
D Start address of CPU memory
at which read data is stored
n2 Number of word to be read
* Available only when do not use computer link module or data link module
1) Functions
- Reads the data of n2 words, which start at the address specified as S of buffer
memory inside the special module mounted at the slot n1, and stores the data into the
memory of CPU which begin with the device specified as D.
Buffer memory
of A/D module CPU module
[ S ] [ D ]
[ S+n2-1 ]
n2 words
[ D+n2-1 ]
n2 words
GET(P) n1 S D n2
Input
condition