5
ACCESS VIA NETWORK MODULES
5.3 MELSECNET/H Module Access Function
5.3.2 Link device access
5
- 15
1
O
V
ER
VI
E
W
2
SY
STEM
CONFIGURA
TION
3
SP
ECIFICA
T
IONS
4
FUNCTIONS
5
A
C
C
E
SS V
IA
N
E
TW
OR
K
MODUL
ES
6
P
R
EP
AR
A
T
OR
Y
PROCE
DUR
ES
A
ND
S
E
TTING
7
I/O NUM
BER
ASS
IGN
M
EN
T
8
M
E
M
O
RIE
S
A
ND
FI
L
E
S
5.3.2
Link device access
Link device data of a MELSECNET/H module controlled by a C Controller module can be
read or written from a user program on the C Controller module.
To access from the user program to the link devices, two different methods are available:
the internal buffer access and the direct access.
(1) Internal buffer access
(a) What is the internal buffer access?
The internal buffer access is a method of accessing the internal link device buffers
in the C Controller module.
To use this method, the refresh parameters must be previously set in the
<<Parameter settings>> tab of MELSECNET/H utility.
(b) Internal link device buffers
1) Internal link device buffers
• The internal link device buffer is reserved for each of four MELSECNET/H
modules.
• Each of the internal link device buffers (LX, LY, LB, and LW buffers) has
the same area size as the corresponding link device (LX, LY, LB, and LW).
Set refresh ranges on the Refresh parameter settings screen activated
from the <<Parameter settings>> tab of MELSECNET/H utility.
• The internal link device buffers are refreshed with the link device data by
link device refresh.
Figure 5.13 Link device access
Q12DCCPU-V
Q06CCPU-V
Q06CCPU-V-B
LW buffer
LB buffer
ret = QBF_WriteLinkDevice();
ret = mdSend();
ret = mdRandW();
ret = mdDevSet();
ret = mdDevRst();
or
/* Data write */
ret = QBF_ReadLinkDevice();
ret = mdReceive();
ret = mdRandR();
or
/* Data read */
Internal
buffer access
Internal link
device buffers
Link device
refresh
Direct
access
LX buffer
LY buffer
SW
*1
SB
*1
LW
LB
LX
LY
*1 Link device refresh is not
available for the link
devices SB/SW.
Use the direct access.
C Controller module
MELSECNET/H module
User program
Link devices
Summary of Contents for Q06CCPU-V
Page 2: ......
Page 612: ...APPX 48 Appendix 11 Functions Added by Version Upgrade APPENDICES Memo ...
Page 617: ......