12
APPLICATION FUNCTIONS
9
DEVICE MONIT
O
R
UT
IL
ITY
10
MELS
EC D
A
TA
LI
N
K
LI
BRAR
Y
11
PROGRAMMING
12
AP
PL
ICA
T
IO
N
FUNCT
IONS
13
E
R
ROR COD
E
S
14
TROU
BL
E
S
H
O
O
T
ING
A
APPE
NDICES
I
INDEX
12.1 Transient Transmission Function
12.1.4 SEND/RECV function
12
- 19
< Precautions for using RECV function >
When receiving data to the multiple channels of the board, create a user program
to read data from all channels that receive data.
If a channel from which data are not read exists in the channel from which data are
received, the received data of the channel from which data are not read are
accumulated in the reception buffer of the driver and all area of 128 data are
occupied.
In this case, the received data of other channels cannot be read because the driver
automatically discards subsequent data received by the board.
When attempting data read by executing the mdReceive/mdReceiveEx function
immediately after the send data completion at the sending station, an error, "71
(0047
H
): No reception data error", occurs because the driver has not completed
the RECV function and thus the receive data have not yet stored to the reception
buffer of the driver.
Retry the operation after waiting for a while.
When attempting data send consecutively, an error, "Channel busy (dedicated
instruction) error", occurs at the sending station because the channel is being used
by the driver and thus the sent data cannot be received.
Follow the measures described below.
(a) Retry the operation after waiting for a while.
(b) Change the target station channel.
1
2
3