Rockwell-automation 1768-EWEB EtherNet/IP Web Server Module User Manua Manual do Utilizador Página 142

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 170
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 141
Publication ENET-UM527E-EN-P - October 2006
142 Socket Interface
Select the data type you created in the Source Element field of the
Message Configuration dialog.
MSG Source Length
Specify the size of the user-defined structure for the Source Element.
In this example, CreateParams is 12 bytes.
MSG Destination Element
The MSG instruction returns the instance number of the socket it just
created to the Destination Element. Specify a DINT tag (in this
example, SockInstance).
Element Data Type Description
Type DINT Specify:
1 for TCP
2 for UDP
Addr structure A user-defined structure that specifies the address for the socket.
Family INT Specify the address family. Must be 2.
Port INT Specify a local port number, or set to 0 (the local port number will be
chosen by the web server). For TCP client operations, specify 0 unless
you want a specific local port number. For TCP server communications,
specify the port number on which to accept incoming connection
requests. For UDP, to receive datagrams on a specific port, you must
specify a local port number.
Addr DINT Specify an IP address. Typically, set to 0 (any address).
Vista de página 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 169 170

Comentários a estes Manuais

Sem comentários