Send/Recv Function - Mitsubishi Electric SW0DNC-MNETH-B User Manual

Melsecnet/hnetwork interface board
Table of Contents

Advertisement

12 APPLICATION FUNCTIONS

12.3.4 SEND/RECV function

12 - 22
The SEND/RECV function sends/receives data to/from other station's programmable
controller using the MELSEC data link library function.
This function supports the SEND/RECV instruction of link dedicated instruction.
POINT
For details of the functions, refer to "MELSEC Data Link Library Reference Manual".
(1) SEND function
The SEND function sends data from the own station to the specified channel of
the specified station using the mdSend function.
Two execution types, "arrival acknowledgment" and "no arrival acknowledgment",
are available for the SEND function. When sending data with "no arrival
acknowledgment" execution type, all stations in group numbers can be specified
as target stations.
CPU module
Target station
Channel 1
Channel 2
Channel 3
Channel 4
RECV
Channel 5
Channel 6
Channel 7
Channel 8
POINT
(1) An error occurs when data are sent to the same channel which is being used.
CPU module
Target station
Channel 1
Channel 2
Channel 3
Channel 4
RECV
Channel 5
Channel 6
Channel 7
Channel 8
(2) Only an even number byte can be specified for a send data size.
(3) Logical station numbers cannot be specified.
(4) Even if the process of data send is completed normally with "arrival
acknowledgment" execution type, data may not be received when the target
station is a board. For details, refer to the RECV function.
Board
Driver
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Board
Driver
Channel 1
Channel 2
Channel 3
Channel 4
Error
Channel 5
Channel 6
Channel 7
Channel 8
MELSEC
User application
main() {
mdOpen( 51, -1, &path );
mdSend( path, 255,
,
);
mdClose( path );
}
User application
main() {
mdOpen( 51, -1, &path );
mdSend( path, 255,
,
);
mdClose( path );
}
12 - 22

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents