|
<< Click to Display Table of Contents >> Navigation: Components > Communication > Multi-IO-IP > How to connect Multi I/O to a device > Example UDP ASCII |
In the following example, character strings are received with the help of the Multi-IO-IP component. For this purpose, UDP must be used as the transport protocol.
To establish a successful connection, the connection setting of the Multi-IO-IP component must be adapted to the network configuration of the sender and the polar bear computer:
Polar bear computer settings
Transmission type: UDP
Enable use of fixed source IP/port
Under "Source IP/Port" set the IP address and port of the polar bear computer. e.g. 192.168.100.65:6543
Under "Destination IP/Port" set the IP address and port of the sender. e.g. 192.168.100.54:6543
In the Windows firewall, the UDP port used must be released.
Filter:
Name |
Filter type |
Filter expression |
Data type |
Condition |
Text Replacement |
|---|---|---|---|---|---|
Filter001 |
SEARCH_PATTERN |
|
String |
|
|
- The filter expression must be empty.
Prefix/postfix is not required
Channels:
Name |
Prefix/Postfix |
Data filter |
Command |
Expected response |
Receive only |
Encoding |
Redirect reply |
|---|---|---|---|---|---|---|---|
TextReceive |
no |
Filter001 |
|
|
yes |
ASCII (7-bit) |
No |
- The data filter must be set
- "Receive only" must be activated.
The received ASCII texts are output at the data point "TextReceive". These can then be evaluated with the text value parser.