12 - 22 12 - 22
MELSEC
12 APPLICATION FUNCTIONS
12.3.4 SEND/RECV function
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
RECV
Target station
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Board
Driver
User application
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
main() {
mdOpen( 51, -1, &path );
mdSend( path, 255, ,
);
mdClose( path );
}
POINT
(1) An error occurs when data are sent to the same channel which is being used.
Board
Driver
User application
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
CPU module
RECV
Target station
Channel 1
Channel 2
Channel 3
Channel 4
Channel 5
Channel 6
Channel 7
Channel 8
Error
main() {
mdOpen( 51, -1, &path );
mdSend( path, 255, ,
);
mdClose( path );
}
(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.
Summary of Contents for Q80BD-J71BR11
Page 2: ......
Page 24: ...A 22 A 22 MEMO ...
Page 50: ...4 6 4 6 MELSEC 4 FUNCTION MEMO ...
Page 92: ...6 36 6 36 MELSEC 6 PROCEDURE AND SETTINGS UP TO THE POINT OF OPERATION MEMO ...
Page 132: ...10 2 10 2 MELSEC 10 MELSEC DATA LINK LIBRARY MEMO 10 ...
Page 138: ...11 6 11 6 MELSEC 11 PROGRAMMING MEMO ...
Page 164: ...12 26 12 26 MELSEC 12 APPLICATION FUNCTIONS MEMO ...
Page 166: ...13 2 13 2 MELSEC 13 ERROR CODE MEMO 13 ...
Page 223: ......