Pyunitelway is a Python library to use the UNI-TELWAY protocol to talk to Schneider PLCs (Programmable Logic Controller).
This library allows to:
- Read a bit in
%Sand%M - Read a word in
%SW,%KWand%MW - Read a double word in
%KDand%MD - Read multiple bits in
%Sand%M - Read multiple words in
%SW,%KW, and%MW - Read multiple double words in
%KDand%MD - Write a bit in
%Sand%M - Write a word in
%SWand%MW - Write a double word in
%MD - Write multiple words in
%SWand%MW - Write multiple double words in
%MD - Read and write I/O channels (couldn't test)
Clone the repository, then install using setup.py:
python3 setup.py install --user # to install for the user onlyThis library is designed to use a TCP-RS485 adapter. The adapter is connected to the PC or server which uses this lib via Ethernet or Wi-fi or anything else, and is connected to the PLC via RS-485 on the TER plug.
This library was developed using the USR-TCP232-306 adapter. It was not tested with another kind of connection.
Test setup
