Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hilch/demo-AsTcp-AsUdp
B&R Automation Studio demo: how to use AsTcp and AsUdp
https://github.com/hilch/demo-AsTcp-AsUdp
Last synced: 3 months ago
JSON representation
B&R Automation Studio demo: how to use AsTcp and AsUdp
- Host: GitHub
- URL: https://github.com/hilch/demo-AsTcp-AsUdp
- Owner: hilch
- Created: 2018-06-25T09:01:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T11:29:24.000Z (over 2 years ago)
- Last Synced: 2024-08-02T14:05:59.464Z (6 months ago)
- Language: C
- Size: 221 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-B-R - AsUdp AsTcp demo1 - Automation Studio demo: how to use the TcpIp- system- libraries "AsTcp" and "AsUdp" (Communication / TCP/UDP)
README
[![Made For B&R](https://github.com/hilch/BandR-badges/blob/main/Made-For-BrAutomation.svg)](https://www.br-automation.com)
# demo-AsTcp-AsUdp
B&R Automation Studio demo: how to use the TcpIp- system- libraries "AsTcp" and "AsUdp".
The tasks are each available in ST and in ANSI-C (I use two AS-configurations for that)# TCP
Automation Runtime (ArSim) acts as an TCP server.
one or more instances of Python script 'tcpclient.py' can be used to contact the server.![tcpclient](example_tcp_client.png)
# UDP
Automation Runtime (ArSim) listens on a port and echoes all incoming data back to sender.
Use Python script 'udpclient.py' to send messages to it.![udpclient](example_udp_client.png)
## Release
From my point of view, publishing releases for this project is without any real added value.
So just download the automation project from the repository.
The scripts are located in folder 'python'.# Automation Studio
To try this example you need to have Automation Studio installed.Since I used the simulation ('ArSim'/'AR000'), you don't need a real PLC.
If you do not own a valid Automation Studio license then just download [version 4.1.4.x](https://www.br-automation.com/en/downloads/software/automation-studio/automation-studio-41/automation-studio-v41/).
It can be used free of charge since since 4.1.4.14.