A quick way to run Python scripts on PLCs using the Pylogix library.
- Docker
- Internet access to download docker images
- Clone this repository
- Build the Docker Compose stack project with
docker-compose build
- Run any scripts with
docker compose run plc-utils python <script.py> <args>
docker compose run plc-utils python read_tag_list.py 192.168.1.1 0
- Standard port is 44818 for Logix PLCs.
- Slot is the particular PLC slot to access (a single cabinet might have multiple slots).