10
FUNCTIONS AND PROGRAMMING
10.3 Programming Using MELSEC Data Link Functions
This section explains the MELSEC data link functions contained in SW PVC-CCPU.
10.3.1 MELSEC data link function list
The following lists the MELSEC data link functions.
mdOpen
mdClose
mdSend
mdReceive
mdRandW
mdRandR
mdDevSet
mdDevRst
mdTypeRead
mdControl
mdInit
10.3.2 Programming procedure
Refer to Section 10.2.2 for details of the programming procedures.
10.3.3 Creating new project of user program and compiling method
Refer to Section 10.2.3 for details of new project creation and compiling method.
Table10.11 MELSEC data link function list
Function name
*1
Open a communication line.
Close a communication line.
• Perform batch write of devices.
*1
• Send message data (SEND function)
• Perform batch read of devices.
*1
• Receive message data (RECV function)
*1
Write devices randomly.
*1
Read devices randomly.
Set bit device.
Reset a bit device.
*1
Read the type of programmable controller CPU.
Remote RUN/STOP/PAUSE
Refresh the programmable controller device address table.
* 1 If an address indicated by an argument pointer is illegal, the return value of the function is a
pointer address specification error (-28628).
POINT
For details of the MELSEC data link functions, refer to the MELSEC data link
function HELP of SW PVC-CCPU.
10.3 Programming Using MELSEC Data Link Functions
Description
10.3.1 MELSEC data link function list
9
10
11
12
13
14
15
16
10
- 36