Skip to main content

UDP Driver

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

Parameters

Aside from the common parameters described in the communication_driver docs, this driver includes:

ParameterDefault ValueDescription
ip127.0.0.1The Beckhoff TwinCAT route to the PLC.
port8400Port number for the socket connection.
polling1Polling interval in s to detect connection loss.
max_size1024Max telegram size (bytes).

Setup data

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

{
"parameters": {
"ip": "127.0.0.1",
"port": 8400,
"polling": 1,
"max_size": 1024
},
"variables": {
"inputs": {
"datatype": "byte",
"size": 1,
"operation": "write"
},
"outputs": {
"datatype": "byte",
"size": 2,
"operation": "read"
}
}
}
note

The setup_params in the generic PLC components for udp_driver will need the following format:

{ "ip": "127.0.0.1", "port": 8400, "polling": 1, "max_size": 1024 }