Skip to content

Plcsim driver

Driver to communicate with Siemens PLCSim using S7Onlinx.dll. Compatible with PLCSim Tia Portal. Pending testing it against older PLCSim.

Parameters

Aside from the common parameters described in the communication_driver docs, this driver includes:

  • ip: IP address of the controller. Default = '192.168.0.1'
  • rack: Rack number of the CPU. Default = 0
  • slot: Slot number of the CPU. Default = 1
  • mode: PLCSim version to be used: S7comm or S7commPlus (1200/1500). Default = S7comm

Setup data

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

{
    "parameters": {
        "ip": "192.168.0.1",
        "rack": 0,
        "slot": 2,
        "mode": "S7commPlus"
    },
    "variables": {
        "inputs": {
            "datatype": "word", 
            "size": 1,
            "operation": "write"
        },
        "outputs": {
            "datatype": "word", 
            "size": 1, 
            "operation": "read"
        }
    }
}