Mitsubishi Electric MELSEC SW1DNC-CCIEF-B User Manual page 73

Cc-link ie field network interface board
Table of Contents

Advertisement

SEND function
The SEND function sends data from the own station to the specified channel of the specified station using the mdSend/
mdSendEx function of MELSEC data link library function.
[Own station]
User application
main() {
mdOpen( 181, -1, &path );
mdSendEx( path, 1, 1,
,
 );
SEND
function
mdClose( path );
}
• Sending data to the same channel of the target station
Send the data after the target station has been read the specified channel data.
An error will be occurred if sending the data to the same channel of the target station before reading the
specified channel data.
[Own station]
User application
main() {
mdOpen( 181, -1, &path );
mdSendEx( path, 1, 1,
);
mdSendEx( path, 1, 1,
);
mdClose( path );
}
• When the multiple network modules are mounted on the target station
Specify the station number and network number of the network module which is received the request from
the own station.
The following example specifies the station number 1 of the network number 1. (The station number 5 of the
network number 2 cannot be specified.)
(Own station)
Station
No.0
Network No.1
Station
No.3
[Target station]
Target station CPU module
Board
Channel 1
Channel 1
Channel 2
Channel 2
Board
Channel 1
,
Channel 2
Error
,
(Target station)
Station
Station
No.1
No.5
Network No.2
Station
No.2
RECV
[Target station]
Target station
CPU module
Channel 1
RECV
Channel 2
Station
No.1
Specify station No.1 as the target station.
Station No.5 cannot be specified.
5 FUNCTIONS
5.4 SEND/RECV Function
5
71

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec q80bd-j71gf11-t2Melsec q81bd-j71gf11-t2

Table of Contents