The Slot property defines the location of a module within the device.
Slots must be always in ascending order.
When no Slot property is defined, the index within the containing device defines the ordering of modules.
When one module in a device defines a Slot property, all the modules of the device must have a Slot property except the main module (head module or the PLC module).
Slot property must be used if the user wants to replace a default 'autocreated' module of the device on a specific Slot with a module of other type.
When no Slot property is defined, and an 'autocreated' module of other type is found on that Slot in the device, compile will break and the user has to decide how to solve it:
If the user wants to replace this 'autocreated' module, the user has to specify explicitly the Slot property for it,
or if the user wants to only parametrize this 'autocreated' module, the user has to specify the matching TypeIdentifier of the 'autocreated' module.
In the following example the user wants to replace the default 'autocreated' Input module of type 1 Word on Slot 3 with a custom Input module of 8 Word.
Also the user wants to replace the default 'autocreated' Output module of type 1 Word on Slot 4 with a custom Output module of 7 Word.
Note that if the user omits the Slot property compile will break with error messages, and the user has to solve as described above.
{
"Devices": [
{
"Name": "GSD_device",
"Modules": [
{
"Name": "axisrex",
"TypeIdentifier": {
"GsdId": "DAP_IndraDrive",
"FileName": "gsdml-v2.1-bosch rexroth ag-011f-indradrive_02v02-20180110.xml"
},
"Interfaces": [
{
"Label": "X1",
"Name": "axisrex_Interface1",
"Addresses": {
"Configured": [
{
"IPv4": "10.10.10.15/24"
}
]
}
}
]
},
{
"Name": "Input_8_Words_1",
"TypeIdentifier": {
"GsdId": "ID_InMod_8Words",
"FileName": "gsdml-v2.1-bosch rexroth ag-011f-indradrive_02v02-20180110.xml"
},
"IoConfiguration": {
"InputAddress": "150.0"
},
"Slot": 3
},
{
"Name": "Output_7_Words_1",
"TypeIdentifier": {
"GsdId": "ID_OutMod_7Words",
"FileName": "gsdml-v2.1-bosch rexroth ag-011f-indradrive_02v02-20180110.xml"
},
"IoConfiguration": {
"OutputAddress": "150.0"
},
"Slot": 4
}
]
}
]
}