Skip to content

Simit driver

Driver that can be used to connect with simit using shared memory.

Parameters

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

  • SHM_name: Name of the shared memory. Default = SIMITShared Memory
  • big_endian: True if big endian, else little endian. Default = False

Setup data

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

{
    "parameters": {
        "SHM_name": "SIMITShared Memory",
        "big_endian": true,
    },
    "variables": {
        "MW4": {
            "datatype": "word", 
            "size": 1,
            "operation": "write"
        },
        "MW0": {
            "datatype": "word", 
            "size": 2, 
            "operation": "read"
        }
    }
}

Note

The setup_params in the generic PLC components for simit will need the following format:

{"SHM_name": "SIMITShared Memory", "big_endian": true,}