This application shows two ways to exchange data via a serial port between PC (Windows/Linux) and the IOT2050. In the first example a pure serial transmission is used, while in the second example the communication protocol Modbus RTU is used additionally.
The following hardware components are required for the application:
- SIMATIC IOT2050 Advanced or Basic
- USB to Serial Converter (in this example: DIGITUS USB 2.0 to serial Converter, RS485 incl. USB A Cable 80cm)##
- Example 1: Virtual Machine with Linux OS on Windows PC: In this example VMWare Workstation 16 Player and Linux Debian 10 is used
- working internet connection on the VM
- install picocom with the terminal-command 'sudo apt-get install picocom' (in this manual version 3.1 is used)
- Example 2: PyModSlave on Windows PC: You can download it here (in this manual version 0.4.4 is used)
You can find the instructions for preparing the IOT2050 and the both examples in the following links:
- Prepare the IOT2050
- Example 1: Sending ASCII-characters using a serial connection
- Example 2: Sending array-packages using modbus-protocol
Topic | |
---|---|
1 | SIMATIC IOT2050 forum: https://support.industry.siemens.com/tf/ww/en/threads/309 |
2 | SIMATIC IOT2050 Getting Started: https://support.industry.siemens.com/tf/ww/en/posts/238945/ |
3 | Operating Instructions: https://support.industry.siemens.com/cs/ww/en/view/109779016 |
Thank you for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section. Additionally everybody is free to propose any changes to this repository using Pull Requests.
If you haven't previously signed the Siemens Contributor License Agreement (CLA), the system will automatically prompt you to do so when you submit your Pull Request. This can be conveniently done through the CLA Assistant's online platform. Once the CLA is signed, your Pull Request will automatically be cleared and made ready for merging if all other test stages succeed.
Please read the Legal information.