beautypg.com

Delta DVP-ES2 User Manual

Page 316

background image

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3-200

API Mnemonic

Operands

Function

78

D FROM P

Read CR data
from Special
Modules

Controllers

ES2/EX2 SS2 SA2

SE

SX2

Bit Devices

Word devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T C D E F

m

1

*

*

*

m

2

*

*

*

D

*

n

*

*

*

FROM, FROMP: 9 steps

DFROM, DFROMP: 17

steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

Operands:

m

1

: No. of special module m

2

: CR# in special module to be read D: Device for storing read

data n: Number of data to be read at a time

Explanations:

1.

PLC uses this instruction to read CR (Control register) data from special modules.

2. Range

of

m

1

: ES2/EX2/SS2: 0 ~ 7; SA2/SE/SX2: 0~107.

3. Range

of

m

2

: ES2/EX2: 0 ~ 255; SS2: 0~48; SA2/SE/SX2: 0~499.

4. Range

of n:.

Range of n

ES2/EX2 SS2

SA2/SE/SX2

16-bit instruction

1~4

1~(49 - m

2

) 1~(499

-

m

2

)

32-bit instruction

1~2

1~(49 - m

2

)/2 1~(499

-

m

2

)/2

Program Example:

1.

Read out the data in CR#29 of special module N0.0 to register D0 in PLC, and CR#30 of

special module No.0 to register D1 in PLC. 2 consecutive 16-bit data are read at one time (n =

2).

2.

When X0 = ON, the instruction executes; when X0 = OFF, the previous content in D0 and D1

won’t be changed.

X0

FROM

K0

K29

D0

K2

This manual is related to the following products: