High−level Instructions
3 − 384
In this example, the control data beginning with DT10 (depth 3 → 6 words) should be specified as shown
below. To receive the 5 words of data → DT10 = H0005
CPU1 Route 1
0
CPU2 No.2
CPU2 Route 3
1
CPU3 No.4
CPU3 Route 1
2
CPU4 No.16
CPU4 Route 2
3
CPU5 No.10
: Depth
DT11=H8103
DT12=H0203
DT13=H0401
DT14=H1002
DT15=H0A00
Precautions during programming
It is not possible to execute multiple F145 (SEND) instructions and F146 (RECV) instructions at the same
time.
The program should be set up so that these instructions are executed when the MEWNET send/receive
execution enabled flag (R9030) is on.
R9030 0: Execution inhibited F145 (SEND)/F146 (RECV) instruction being executed)
1: Execution enabled
The F146 (RECV) instruction only requests that the data be received, but the actual processing takes place
when the ED instruction is executed. The MEWNET send/receive completed flag (R9031) can be used to
check whether or not the reception has been completed.
R9031 0: Completed normally
1: Completed with error (The error code is stored in DT9039.)
DT9039
(DT90039)
If the transmission has been completed with an error (R9031 is on), the contents of the error (error
code) are stored.
For information on the contents of error codes, refer to the manual for that particular link unit. If the error code
is H71 to H73, a communication time−out error has occurred. The time −out time can be changed within a
range of 10.0 ms to 81.9 seconds (in units of 10 ms), using the setting of system register 32. The default value
is set to 10 seconds for FP2/FP2SH/FP10SH.
Error code (HEX) Description
H71 Time out: Waiting for transmission answer
H72 Time−out: Waiting for transmission buffer to be emptied
H73 Time−out: Waiting for response
The F146 (RECV) instruction cannot be executed if the target is a special internal relay (from R9000) or a
special data register (from DT9000/DT90000).