8.2.2 FC 5 - AG_SEND - Send to CP 343
By means of AG_SEND the data to send are transferred from the CPU to an Ethernet CP.
Please note that this block calls the FC or SFC 205 AG_SEND internally.
These must not be overwritten! The direct call of an internal block leads
to errors in the corresponding instance DB!
Parameter
Parameter Declaration Data type Description
ACT INPUT BOOL Activation of the sender
0: Updates DONE, ERROR and STATUS
1: The data area defined in SEND with the length LEN is send
ID INPUT INT Connection number 1 ... 16
(identical with ID of NetPro)
LADDR INPUT WORD Logical basic address of the CP
(identical with LADDR of NetPro)
SEND INPUT ANY Data area
LEN INPUT INT Number of bytes from data area to transfer
DONE OUTPUT BOOL Status parameter for the job
0: Job running
1: Job finished without error.
ERROR OUTPUT BOOL Error message
0: Job running (at DONE = 0)
0: Job ready without error (at DONE = 1)
1: Job ready with error
STATUS OUTPUT WORD Status message returned with DONE and ERROR. More details are
to be found in the following table.
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.
DONE, ERROR, STATUS
VIPA SPEED7
Network Communication
Ethernet Communication > FC 5 - AG_SEND - Send to CP 343
HB00 | OPL_SP7 | Operation list | en | 18-30 139