10
1 COMMON ITEMS
1.3 MELSEC Data Link Functions
1.3
MELSEC Data Link Functions
MELSEC data link functions are the integrated communication function libraries which are independent of the communication
protocols.
A program to communicate with a CPU module can be created regardless of a target hardware or communication protocols
by using the MELSEC data link functions.
The communication functions supported by the MELSEC data link functions are as follows:
Program processing
The following shows the user program processing using the MELSEC data link function.
When accessing with a device name
1.
Start a task.
2.
Open a communication line. (mdOpen function)
3.
Perform dummy access (such as device/model name reading) to an access target.
4.
Access the target by using the MELSEC data link function.
5.
To stop accessing the target, go to the procedure 6.
To access the target again, go back to the procedure 4.
6.
Close the communication line. (mdClose function)
7.
Complete the task.
When accessing with a label name
1.
Start a task.
2.
Open a communication line. (mdOpen function)
3.
Acquire device information (label assignment information) from a target CPU module. (mdGetLabelInfo function)
4.
Access the target CPU module by using the acquired device information (label assignment information).
(mdRandRLabelEx/mdRandWLabelEx function)
5.
Check if there is no change in the device information (label assignment information) of the target CPU module.
If it is changed, go back to the procedure 3.
6.
To stop accessing the target, go to the procedure 7.
To access the target again, go back to the procedure 4.
7.
Close the communication line. (mdClose function)
8.
Complete the task.
Communication function
Description
Bus interface communication
Accesses a CPU module mounted on the same base unit.
CC-Link IE Controller Network communication
Accesses a CPU module on the CC-Link IE Controller Network via a CC-Link IE Controller Network
module.
CC-Link IE Field Network communication
Accesses a CPU module on the CC-Link IE Field Network via a CC-Link IE Field Network module.
MELSECNET/H network communication
Accesses a CPU module on the MELSECNET/H network via a MELSECNET/H network module.
CC-Link communication
Accesses a CPU module on the CC-Link via a CC-Link module.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......