Skip to main content

7.15.13 Configure and record the IP address information of the communication partner

Function

  • ADDR_PARAM (structure): used to configure and record the IP address information of the communication partner

Parameter description

Interface variablesData typeDescription
IP_ADDRARRAY[0..3] OF BYTEConfigure and record the IP address information of the communication partner
IP_PORTUINTConfigure and record port information of communication partners
  • The ADDR_PARAM structure is used to configure and record the IP address information of the communication partner;
    • When using USEND_C for UDP sending, it is necessary to set the IP address and port information of the communication partner in this structure instance to inform the UDP sending end of the data sending destination.
    • When using URECV_C for UDP reception, user need to bind a structure instance to record the source IP and source Port information of the data received by the current UDP.