Skip to content

UDP driver

This driver allows the communication between Simumatik and a generic UDP server.

Parameters

  • ip: IP address of the controller that want to connect to. Default = '127.0.0.1'

  • port: Port number for the socket connection. Default = 8400

  • polling: Polling interval in s to detect connection loss. Default = 1

  • max_size: Max telegram size (bytes). Default = 1024

Setup data

The setup data will give values to the parameters required and will specify the I/O variables info.

{
    "parameters": {
        "ip": "1921.168.1.23", 
        "port": 30004,
        "polling": 0.5,
        "max_size": 1024,
    },
    "variables": {
        "inputs": {
            "datatype": "byte", 
            "size": 1,
            "operation": "write"
        },
        "outputs": {
            "datatype": "byte", 
            "size": 2, 
            "operation": "read"
        }
    }
}