I am running a process on a S7-1200 plc and I need it to send a start signal to my python script, after the script is done running it needs to send something back to the plc to initiate the next phase. Oh, and it has to be done in ladder.
Is there a quick and dirty way to send things over profibus or am I better off using just a RS232 thing?
Connecting Factory I/O to the PLCOpen the driver Configuration Panel by clicking on CONFIGURATION. Make sure S7-1200 is selected on the Model drop-down list and insert the PLC's IP address into the Host field. Press Esc to return to the main driver window. Now click on CONNECT to connect to the PLC.
Snap7 is an open source, 32/64 bit, multi-platform Ethernet communication suite for interfacing natively with Siemens S7 PLCs. Python-snap7 is tested with Python 3.6+, on Windows, Linux and OS X.
We know some Programming Language for Siemens PLC programming Languages Like LAD,FBD,STL and SCL. Among them Every Language has its own Benefit. The SCL language is very powerful and well suited for complex math operations, data handling with arrays and string processing.
After failing with libnodave and OPC, I created a TCON,TSEND and TRECV communication thing. It transmits a byte over TCP and it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With