Overview Network API


With this function block, network telegrams from third-party devices can be received and evaluated. The communication takes place over TCP, either via a simple text protocol or http. Commands for writing and reading variables can be sent here.
  • Set variable to a specific value: 100/1/1=1
  • Query variable: 100/1/1=?, the response 100/1/=1 is sent.
  • Query all variables: ?, in response all variables are sent, e.g. 100/1/=1\n100/2/=100 etc., at the end ?=FINISHED\n is sent.

All commands to the runtime must be terminated with \n (LF), and \n (LF) is also appended to the responses.





Outputs

AC
Number of clients
Number of connected clients. The maximum number of simultaneous connections is 32.

Parameters

Port
Port number
Protocol
  • Text: Data is interpreted in the format "1/1/1=1\n"  (\n = LF).
  • HTTP: Data is interpreted in the format "http://192.168.1.90:8000/?1/1/0=0". With :8000 the port number is specified in the link.


See also common parameters of all function blocks.