IDEC MicroSmart User Manual

Page 385

Advertising
background image

23: I

NTELLIGENT

M

ODULE

A

CCESS

I

NSTRUCTIONS

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

23-7

Example: RUNA READ

The following example illustrates the data movement of the RUNA READ instruction. The data movement of the STPA
READ is the same as the RUNA READ instruction.

Example: RUNA WRITE without Repeat

The following example illustrates the data movement of the RUNA WRITE instruction without repeat designation. The
data movement of the STPA WRITE is the same as the RUNA WRITE instruction.

Example: RUNA WRITE with Repeat

The following example illustrates the data movement of the RUNA WRITE instruction with repeat designation. The data
movement of the STPA WRITE is the same as the RUNA WRITE instruction.

While input I0 is on, data of 5 bytes is read from
the area star ting at address 1 in intelligent mod-
ule 1 and stored to the 5-byte area in data regis-
ters star ting at D9.

Status code is stored in data register D100.

I0

DATA

D9

SLOT

1

STATUS

D100

BYTE

5

ADDRESS

1

READ

RUNA(W)

02h

D9

04h

D10

D11

High

01h

Low

03h

05h

00h

Address 0

01h

Address 1

02h

Address 2

03h

Address 3

04h

Address 4

05h

Address 5

CPU Module

Intelligent Module 1

While input I1 is on, data in data register D19 is
written to the 5-byte area star ting at address 1 in
intelligent module 1.

Status code is stored in data register D101.

I1

DATA –

D19

SLOT

1

STATUS

D101

BYTE

5

ADDRESS

1

WRITE

RUNA(W)

02h

D19

D20

D21

High

01h

Low

Address 0

01h

Address 1

02h

Address 2

01h

Address 3

02h

Address 4

01h

Address 5

CPU Module

Intelligent Module 1

While input I2 is on, data in 5-byte area star ting
at data register D22 is written to the 5-byte area
star ting at address 7 in intelligent module 1.

Status code is stored in data register D102.

I2

DATA R

D22

SLOT

1

STATUS

D102

BYTE

5

ADDRESS

7

WRITE

RUNA(W)

04h

D22

06h

D23

D24

High

03h

Low

05h

07h

Address 6

03h

Address 7

04h

Address 8

05h

Address 9

06h

Address 10

07h

Address 11

CPU Module

Intelligent Module 1

Advertising