FB_CrestronConnections

FB_CrestronConnections 1:

This function block represents the TCP/IP server and manages the TCP connections.

To this end all socket connections on TCP port 48798 are taken on and forwarded to all instances of FB_CrestronCommunication. Each instance of FB_CrestronCommunication checks whether the incoming socket has the desired IP address. If this is the case the socket is saved. If it has no valid IP address the socket is closed again immediately.

FB_CrestronConnections can manage up to 10 socket connections and requires the TwinCAT 3 function TF6310 TC3 TCP/IP on the TwinCAT 3 target system.

There may only be one instance of FB_CrestronConnections in the entire PLC program. This instance should be called in a faster task than the instances for read and write commands.