Python Siemens PLC Communication
Budget: ₹600 – ₹1,500 INR
I have a Siemens LOGO PLC on my network that speaks Modbus-TCP and I need a clean, well-commented Python script that can both read from and write to its registers using the pyModbusTCP (or compatible) library. The goal is to end up with a small module I can drop into a larger project, so clarity and reliability matter more than flashy UI.
Here’s what I expect:
• A single .py file that opens the connection to the LOGO (IP, port and slave ID must be easily configurable at the top of the script).
• Functions I can call for typical tasks: read_coils, read_holding_registers, write_single_coil, write_single_register (or their pyModbusTCP equivalents).
• An example section (under if __name__ == "__main__": ) that demonstrates the above functions in action with placeholder addresses, so I can simply change the addresses to match my installation and see it run.
• Inline comments explaining each step, plus a short README that tells me how to install any requirements and run the demo.
Please keep external dependencies to a minimum—ideally just pyModbusTCP and standard Python libraries—and make sure the code runs on Python 3.8+. If any additional package is absolutely necessary, note it clearly in the README.
Send the finished script and README, and I’ll test it against the LOGO right away.
Here’s what I expect:
• A single .py file that opens the connection to the LOGO (IP, port and slave ID must be easily configurable at the top of the script).
• Functions I can call for typical tasks: read_coils, read_holding_registers, write_single_coil, write_single_register (or their pyModbusTCP equivalents).
• An example section (under if __name__ == "__main__": ) that demonstrates the above functions in action with placeholder addresses, so I can simply change the addresses to match my installation and see it run.
• Inline comments explaining each step, plus a short README that tells me how to install any requirements and run the demo.
Please keep external dependencies to a minimum—ideally just pyModbusTCP and standard Python libraries—and make sure the code runs on Python 3.8+. If any additional package is absolutely necessary, note it clearly in the README.
Send the finished script and README, and I’ll test it against the LOGO right away.