8.2.3 FC 6 - AG_RECV - Receive from CP 343With the 1. call of AG_RECV a receive buffer for the communication between CPU andan Ethernet CP 343 is established. From now on received data are automatically storedin 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 leadsto errors in the corresponding instance DB!Parameter Declaration Data type DescriptionID 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 order0: Order running1: Order ready data received without errorERROR OUTPUT BOOL Error message0: Order running (at NDR = 0)0: Order ready without error (at NDR = 1)1: Order ready with errorSTATUS OUTPUT WORD Status message returned with NDR and ERROR. More details are tobe found in the following table.LEN OUTPUT INT Number of bytes that have been receivedThe following table shows all messages that can be returned by the Ethernet CP after aSEND res. RECV job. A "-" means that this message is not available for the concerningSEND res. RECV command.DONE(SEND)NDR(RECV)ERROR STATUS Description1 - 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 running0 0 1 8183h No CP project engineering for this job.ParameterDONE, ERROR, STATUSVIPA SPEED7Network CommunicationEthernet Communication > FC 6 - AG_RECV - Receive from CP 343HB00 | OPL_SP7 | Operation list | en | 18-30142