ProfinetConnector/src/profinet_device_configure.json

203 lines
7.7 KiB
JSON

{
"SwapData": false,
"ProfinetDeviceSettings":
{
"product_name": "P-Net Sample Application",
"station_name": "rt-labs-dev",
"im_0":
{
"vendor_id": "0x0493",
"hw_revision": 3,
"sw_revision":
{
"prefix": "V",
"functional_enhancement": 0,
"bug_fix": 2,
"internal_change": 0
},
"revision_counter": 0,
"profile_id": "0x1234",
"profile_specific_type": "0x5678",
"supported": "0x000E",
"order_id": "12345 Abcdefghijk",
"serial_number": "007"
},
"im_1":
{
"tag_function": "my function",
"tag_location": "my location"
},
"im_2":
{
"date": "2022-03-01 10:03"
},
"im_3":
{
"descriptor": "my descriptor"
},
"im_4":
{
"signature": ""
},
"device_id": "0x0002",
"oem_vendor_id": "0xcafe",
"oem_device_id": "0xee02",
"send_hello": true,
"min_device_interval": 32
},
"ProfinetDeviceModulesSettings":
{
"modules": [
{
"id": "0x00000040",
"name": "Echo module",
"submodules": [
{
"id": "0x00000140",
"name": "Echo submodule",
"cyclic_data":
{
"dir": "PNET_DIR_IO",
"Inputs": [
{
"name": "EchoModuleInpFloat",
"DataType": "Float32"
},
{
"name": "EchoModuleInpInt",
"DataType": "Unsigned32"
}
],
"Outputs": [
{
"name": "EchoModuleOutFloat",
"DataType": "Float32"
},
{
"name": "EchoModuleOutInt",
"DataType": "Unsigned32"
}
]
},
"parameters": [
{
"index": 125,
"name": "EchoGain",
"DataType": "Unsigned32"
}
]
}
]
},
{
"id": "0x00000032",
"name": "I8O8 module",
"submodules": [
{
"id": "0x00000132",
"name": "I8O8 submodule",
"cyclic_data":
{
"dir": "PNET_DIR_IO",
"Inputs": [
{
"name": "I808InpBits",
"DataType": "Unsigned8",
"bits": [
{
"name": "in_bit_0",
"BitOffset": 0
},
{
"name": "in_bit_1",
"BitOffset": 1
},
{
"name": "in_bit_2",
"BitOffset": 2
},
{
"name": "in_bit_3",
"BitOffset": 3
},
{
"name": "in_bit_4",
"BitOffset": 4
},
{
"name": "in_bit_5",
"BitOffset": 5
},
{
"name": "in_bit_6",
"BitOffset": 6
},
{
"name": "in_bit_7",
"BitOffset": 7
}
]
}
],
"Outputs": [
{
"name": "I808OutBits",
"DataType": "Unsigned8",
"bits": [
{
"name": "out_bit_0",
"BitOffset": 0
},
{
"name": "out_bit_1",
"BitOffset": 1
},
{
"name": "out_bit_2",
"BitOffset": 2
},
{
"name": "out_bit_3",
"BitOffset": 3
},
{
"name": "out_bit_4",
"BitOffset": 4
},
{
"name": "out_bit_5",
"BitOffset": 5
},
{
"name": "out_bit_6",
"BitOffset": 6
},
{
"name": "out_bit_7",
"BitOffset": 7
}
]
}
]
},
"parameters": [
{
"index": 123,
"name": "I8O8Param1",
"DataType": "Unsigned32"
},
{
"index": 124,
"name": "I8O8Param2",
"DataType": "Unsigned32"
}
]
}
]
}
]
}
}