12/15/2015 1:51 PM | |
Posts: 75 Rating: (1) |
Hello friends, Is there any way to proramming PLC via python ? Thanks.. |
12/15/2015 2:16 PM | |
Joined: 9/27/2006 Last visit: 8/6/2024 Posts: 12273 Rating: (2680) |
Hello caki; Do you mean a Siemens PLC, and if so, which family? And what exactly would you like to do through Python scripting? - There are many sites providing information on Python wrappers for Ethernet comms with different levels of Siemens PLCs: https://www.google.ca/?gws_rd=ssl#q=siemens+plc+python Specially look at the Snap 7 link: http://sourceforge.net/projects/snap7/ Description The main website of Snap 7 offers much information on the S7 PLCs and the .NET environment that you might fiond useful: https://media.readthedocs.org/pdf/python-snap7/latest/python-snap7.pdf - There are a few sites proposing Python-based S7 simulators or Soft-PLC environments that can be connected to real PLC backplanes; see for example AwlSim: http://bues.ch/cms/hacking/awlsim.html
Awlsim is a free Step 7 compatible AWL/STL Soft-PLC written in Python. Connecting to real hardware (PROFIBUS-DP) Awlsim includes an experimental hardware access layer for connecting the awlsim S7-CPU to real PROFIBUS-DP slave hardware. It does this by providing an interface to the Raspberry Pi PROFIBUS module.
Connecting to real hardware (LinuxCNC) A LinuxCNC HAL module is included in awlsim. With this module it is possible to use awlsim as a non-realtime S7-compatible PLC backend. To use awlsim in LinuxCNC, a HAL configuration file has to be added to your LinuxCNC configuration. See the LinuxCNC Integrators Manual on how to add HAL-files. An example LinuxCNC project is included in the awlsim package as examples/linuxcnc-demo/
Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 12/15/2015 2:33:19 PMLast edited by: dchartier at: 12/15/2015 2:38:31 PM |
|
Follow us on