DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

78

 

Mnemonic

Operands

Function

Controllers

 

 

 

Read CR data

 

 

 

ES2/EX2

SS2

SA2 SX2

D

FROM

P

from Special

 

 

SE

 

 

 

Modules

 

 

 

Type

 

Bit Devices

 

 

 

 

 

Word devices

 

 

 

 

 

Program Steps

 

 

 

 

 

 

 

 

 

 

 

 

OP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X

Y

M

S

K

 

H

KnX

KnY

KnM

KnS

T

C

D

E

 

F

FROM, FROMP: 9 steps

 

 

 

 

m1

 

 

 

 

 

*

 

*

 

 

 

 

 

 

 

 

 

 

*

 

 

 

DFROM, DFROMP: 17

m2

 

 

 

 

 

*

 

*

 

 

 

 

 

 

 

 

 

 

*

 

 

 

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

steps

 

 

n

 

 

 

 

 

*

 

*

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

 

16-bit

 

 

 

 

32-bit

 

 

 

 

 

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

 

 

 

 

 

 

 

 

 

 

SE

SE

SE

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

m1: No. of special module

 

m2: 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 m1: ES2/EX2/SS2: 0 ~ 7; SA2/SE/SX2: 0~107.

3.Range of m2: 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 - m2)

1~(499 - m2)

32-bit instruction

1~2

1~(49 - m2)/2

1~(499 - m2)/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

3 - 200

Page 316
Image 316
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual From, DFROM, Dfromp, ES2/EX2 SS2 SA2/SE/SX2