EasyManua.ls Logo

YASKAWA VIPA SPEED7 - FC 6 - AG_RECV - Receive from CP 343

YASKAWA VIPA SPEED7
1007 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8.2.3 FC 6 - AG_RECV - Receive from CP 343
With the 1. call of AG_RECV a receive buffer for the communication between CPU and
an Ethernet CP 343 is established. From now on received data are automatically stored
in this buffer. As soon as after calling AG_RECV the return value of NDR = 1 is returned,
valid data are present. Since with a further call of AG_RECV the receive buffer is estab-
lished again for the receipt of new data, you have to save the previous received data.
Please note that this block calls the FC or SFC 206 AG_RECV internally.
These must not be overwritten! The direct call of an internal block leads
to errors in the corresponding instance DB!
Parameter Declaration Data type Description
ID INPUT INT Connection number 1 ... 16
(identical with ID of NetPro)
LADDR INPUT WORD Logical base address of the CP
(identical with LADDR of NetPro)
RECV INPUT ANY Data area for the received data.
NDR OUTPUT BOOL Status parameter for the order
0: Order running
1: Order ready data received without error
ERROR OUTPUT BOOL Error message
0: Order running (at NDR = 0)
0: Order ready without error (at NDR = 1)
1: Order ready with error
STATUS OUTPUT WORD Status message returned with NDR and ERROR. More details are to
be found in the following table.
LEN OUTPUT INT Number of bytes that have been received
The following table shows all messages that can be returned by the Ethernet CP after a
SEND res. RECV job. A "-" means that this message is not available for the concerning
SEND res. RECV command.
DONE
(SEND)
NDR
(RECV)
ERROR STATUS Description
1 - 0 0000h Job finished without error.
- 1 0 0000h New data taken without error.
0 - 0 0000h There is no job being executed
- 0 0 8180h No data available yet.
0 0 0 8181h Job running
0 0 1 8183h No CP project engineering for this job.
Parameter
DONE, ERROR, STATUS
VIPA SPEED7
Network Communication
Ethernet Communication > FC 6 - AG_RECV - Receive from CP 343
HB00 | OPL_SP7 | Operation list | en | 18-30 142

Table of Contents

Related product manuals