siemens

How can I communicate between a Siemens S7-1200 and python?

ⅰ亾dé卋堺 提交于 2019-12-04 03:46:15
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? I would go with SNAP7 and python-snap7 libraries. Example on how to install it on a Raspberry pi found in this blog: http://simplyautomationized.blogspot.com/2014/12/raspberry-pi-getting-data-from-s7-1200.html Update: Video walkthrough on how to set it up:

libnodave error while reading from Siemens s7-1200 (0x8104)

£可爱£侵袭症+ 提交于 2019-12-01 22:55:27
问题 While checking s7nodave's EPICS device support for S7-1200 I've encountered a problem that refers to libnodave. When I'm try to read any memory address in PLC, IOC console reports an error: epics> 2014/05/19 14:20:41.964 Siemens-PLC error while reading 1 bytes from PLC address FB35. Status = context not supported. Step7 says:Function not implemented or error in telgram. That is libnodave status code 0x8104. When I've tried to search the web for this error code, all results were referencing to