Mitsubishi Electric MELSEC Q Series User Manual page 228

Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) Access by link refresh function
Access by link refresh function is a method to access internal user device(s) (Link Relay B and Link Register W)
of the C Controller module from the user program.
There are the following 2 ways to access internal user device(s):
• Directly accessing to internal device(s)
(Use the bus interface function and MELSEC data link function.)
• Accessing to data refresh memory and using data refresh
(Use the C Controller module dedicated function.)
Internal user device data are cyclic-transmitted to the other stations by reading from/writing to link device(s) on
network module(s) by link refresh.
User program
/* Data writing */
ret = QBF_WriteDevice();
ret = mdSendEx();
ret = mdRandWEx();
ret = mdDevSetEx();
ret = mdDevRstEx();
or
ret = CCPU_WriteData
RefreshMemory();
/* Data read-out */
ret = QBF_ReadDevice();
ret = mdReceiveEx();
ret = mdRandREx();
or
ret = CCPU_ReadData
RefreshMemory();
*1 :
Link device refresh is not available for the SB/SW. Use the direct access.
226
C Controller module
Internal user device
(link relay,
and link register)
Access to
the internal
user device
B
W
CC-Link IE Controller Network
module
Link device
Link
refresh
LX
LY
LB
LW
Link device
SB*1
SW*1

Advertisement

Table of Contents
loading

Table of Contents