Chapter 4 Deployment of the CPU 21x-2BT10 with TCP/IP Manual VIPA CPU 21x
4-34 HB103E - Rev. 05/45
By means of AG_SEND the data to send are transferred to the CP.
Parameter Declaration 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 order
0: Order running
1: Order ready without error
ERROR Output BOOL Error message
0: Order running (at DONE = 0)
0: Order ready without error (at DONE = 1)
1: Order ready with error
STATUS Output WORD Status message returned with DONE and ERROR. More
details are to be found in the following table.
By means of AG_RECV the data received from the CP are transferred to
the CPU.
Parameter Declaration Type Description
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)
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
AG_SEND (FC5)
Parameter
AG_RECV (FC6)
Parameter