Menu

Siemens S7 protocol

2015-08-06
2015-09-12
  • Michael Taxis

    Michael Taxis - 2015-08-06

    Hi,
    I would try to implement a new protocol for hmi server for Siemens S7, using snap7 library and python-snap7 wrapper. Any hints on where and how to start?

    Thanx
    Michael

     
  • mario jorge recio lozano

    Hi Michael,
    I'm very sad about this great project, there are a very poor activity.
    You can take two insigths to do this job:

    1. Generic client. This is Michael Griffin's recommended way. It allow a greater integration level with the whole suite and its system management tools. I can't tell you much more about that, since not dug on it; I think this is the way if you have enough time to spent.

    2. S7 to Modbus wrapper. I did some tests using python-libnodave at github (instead python-snap7), and was straigthforward to get a AS511 s5 working connection using Python. In the modbus side, you can use pymodbus, which is a really easy library for fast modbus project deployment. Since HmiServer acts a modbus TCP client, the natural way is to write your custom Modbus TCP server who can act as S7 protocol client on the Siemens side. I think this option is faster, and also you can use with further modbus apps than mblogic.

    ALSO, if you atempt to connect to a S7-1200, it is a MB TCP server itself.

     

    Last edit: mario jorge recio lozano 2015-09-12

Log in to post a comment.