Delta Electronics DVPPF02-H2 Network Card User Manual


 
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.
STOPSTOPSTOP
RUNRUNRUN
000111
INININ
OUTOUTOUT
POWERPOWERPOWER
RUNRUNRUN
ERRORERRORERROR
BAT.LOWBAT.LOWBAT.LOW
DVP-20EHDVP-20EHDVP-20EH
x16x16x16
000
x16x16x16
111
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).
DFROM
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.