10 - 37
10.3 Programming Using MELSEC Data Link Functions
10.3.4 Programming using MELSEC data link functions
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
The following shows the outline of user program creation using the MELSEC data link
functions.
Figure 10.18 Programming using MELSEC data link function
No
Yes
1)
2)
4), 5)
1)
3)
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, MELSECNET/H module,
CC-Link module, etc.).
Terminate the program (task)?
Closes the communication line. (mdClose function)
Task end
For precautions for steps 1) to 5), refer to respective section 1) to 5) in (2)(a) of this section.
1)
4), 5)
2)
1)
3)