10
FUNCTIONS AND PROGRAMMING
10.3.4 Programming using MELSEC data link functions
This section shows a programming procedure using the MELSEC data link functions.
(1) Programming procedure
For precautions for steps 1) to 5), refer to respective section 1) to 5) in (2)(a) of this section.
10
- 39
10.3 Programming Using MELSEC Data Link Functions
10.3.4 Programming using MELSEC data link functions
The following shows the outline of user program creation using the MELSEC data link
functions.
Task start
Opens a communication line. (mdOpen function)
Makes dummy access (reading a device, a model
name, etc.) to each access target.
Using a MELSEC data link function, accesses the target
(Programmable controller CPU, CC-Link IE controller
network module, MELSECNET/H module, CC-Link
module, etc.).
Terminate the program (task)?
Yes
Closes the communication line. (mdClose function)
Task end
Figure 10.18 Programming using MELSEC data link function
1)
1)
3)
2)
2)
4), 5)
4), 5)
No
1)
1)
3)