Skip to content

S7 protocol driver

This driver allows the communication between Simumatik and Siemens S7 protocol compatible PLCs.

Parameters

  • ip: IP address of the PLC. Default = '192.168.0.1'

  • rack: Rack number of the CPU. Default = 0

  • slot: Slot number of the CPU. Default = 2

Setup data

The setup data will give values to the parameters required and will specify the I/O variables info.

{
    "parameters": {
        "ip": "192.168.1.23",
        "rack": "1",
        "slot": "2",
    },
    "variables": {
        "inputs": {
            "datatype": "byte", 
            "size": 1,
            "operation": "write"
        },
        "outputs": {
            "datatype": "byte", 
            "size": 2, 
            "operation": "read"
        }
    }
}