Ip_Usend - Phoenix Contact ILC 330 User Manual

Inline controllers
Table of Contents

Advertisement

UM EN ILC 330/350
Table 3-13
IP_USEND function block inputs and outputs
Name
Data
Type
REQ
BOOL
ID
INT
R_ID
STRING
DONE
BOOL
ERROR
BOOL
STATUS
INT
SD_1
ANY
3-20
PHOENIX CONTACT
3.6.2

IP_USEND

This function block is used to transmit data to a communication partner via an IP
connection. The IP_USEND block enables transmission of 1460 bytes, maximum. The
IP_CONNECT block must be used to establish a communication connection prior to
transmitting data.
REQ
ID
R_ID
SD_1
Figure 3-11
IP_USEND block
Data Direction
Description
Input
Positive edge: Data transmission start. The block is blocked during the entire
data transmission process. It cannot be stopped or reset.
Input
During connection establishment using the IP_CONNECT block each
communication connection is assigned a unique ID. This ID is used to inform
the IP_USEND transmit block to which communication device data is to be
transmitted. You can directly connect the ID input to the ID output of the
IP_CONNECT function block.
Input
This input is only used for UDP. It is irrelevant for TCP/IP.
Output
This output indicates if the function block successfully and completely sent the
data to be transmitted. Successful data transmission can only be evaluated
during the cycle with the rising edge at this output.
Output
Rising edge: An error has occurred. The error code can be read at the
STATUS output during the cycle with the rising edge.
Output
Error code of the error occurred.
Input/output
Block transmit buffer.
The variables at transmit buffer SD_1 must have the same size as the
variables at receive buffer RD_1 of the corresponding IP_URCV block.
The IP_USEND block enables transmission of 1460 bytes, maximum.
The number of bytes to be transmitted is entered in the first word of the SD_1
transmit buffer (observe Intel format). This data word is not transmitted. Data
is transmitted in the other words.
Data is transmitted as byte stream. There is no Intel/Motorola conversion.
IP_USEND
DONE
ERROR
STATUS
SD_1
7062A022
6959_en_05

Advertisement

Table of Contents
loading

Table of Contents