Profibus dp slave communication module dvppf02-h2, 3 dfrom & dto instructions, Dvp-plc application manual 8 – Delta Electronics DVPPF02-H2 User Manual
Page 10
![background image](/manuals/75310/10/background.png)
PROFIBUS DP Slave Communication Module DVPPF02-H2
DVP-PLC Application Manual
8
4.3
DFROM & DTO Instructions
1. DVP-EH2 PLC MPU reads or writes data in the CR of DVPPF02-H2 by using DFROM/DTO
instruction.
ST O P
ST O P
ST O P
R UN
R UN
R UN
0
0
0
1
1
1
IN
IN
IN
O U T
O U T
O U T
P O W E R
P O W E R
P O W E R
R U N
R U N
R U N
E R R O R
E R R O R
E R R O R
B A T. L O W
B A T. L O W
B A T. L O W
DVP-20EH
DVP-20EH
DVP-20EH
x 1 6
x 1 6
x 1 6
0
0
0
x 1 6
x 1 6
x 1 6
1
1
1
Once DVPPF02-H2 is connected to DVP-EH2 through the connection port, DVP-EH2 will be able to read
or write the CR data in DVPPF02-H2 by using DFROM/DTO instruction. The data transmission between
DVPPF02-H2 and PROFIBUS DP master is done through PROFIBUS DP bus.
Note: Use DFROM/DTO instruction to read/write data instead of FROM/TO instruction.
2. DFROM & DTO instructions
API
78
DFROM
P
Read CR Data in Special Modules
Operands
:No. of special module
:CR# in special module to be read
:Device for storing read data
:Number of data to be read at a time
Ranges of
operands
(For DVP-EH2
models only)
:0 ~ 7
:0 ~ 255
:1 ~ (255 -
) / 2 when
is odd number.
1 ~ (256 -
) / 2 when
is even number
Program
example
Read CR#103 of special module No.0 into D20 and CR#104 into D21. Only 1 datum
is read at a time (n = 1).
DFR OM
K0
K103
D20
K1
X0
API
79
DTO
P
Write CR Data into Special Modules
Operands
:No. of special module
:CR# in special module to be written
:Data to be written in CR
:Number of data to be written at a time
Ranges of
operands
(For DVP-EH2
models only)
:0 ~ 7
:0 ~ 255
:1 ~ (255 -
) / 2 when
is odd number.
1 ~ (256 -
) / 2 when
is even number.