FillParamTable.Config.json
FillParamTable.Config.json defines the details of the individual entries in the generated table. A standard file is used within the package. As soon as a Config.json file is passed to the FillParamTable function, the passed file and the internal file are merged. If entries exist in both files, the entry in the transferred file is prioritized.
The basic schema of the file is structured as follows:
{
"$schema": "./TwinCAT.HMI.Plastic.Functions/Schema/FillParamTable.Config.Schema.json",
"UnitMappings": {
"Default": {…},
"Trafo": {…},
"UnitGroup": {…},
"Fixed": {…},
"…": {…}
},
"Localizations": {…},
"ParamInfo": {
"Default": {…},
"…": {…}
},
"ReadOnly": {
"Map": {…},
"Conditions": {…},
},
"Enums": {
"…": [{
"id": 0,
"text": "…",
"value": "…"
},…],…
},
"Filters": {
"Default": […],
"AxisUnitGroups": […],
"ElectricalUnitGroups": […],
"InverterExcludes": […],
"HydraulicExclusive": […]
},
"AccessRights": {
"…": [{
"accesright": "…",
"group": "…",
"permission": "…"
},…],…
},
"configVersion": "1.0.0.0"
}Element | Description | Optional |
|---|---|---|
| References the schema file that enables code editors to support editing of the file. | Yes |
| Enables the assignment of units per table entry found. Detailed information about the schema is explained further below. | Yes |
| Redirects the name of a PLC element to a different LocalizationKey. | Yes |
| Redirects the description information of a table entry to a different key. Standardized redirections can be defined under | Yes |
| Defines table entries that can be written to the PLC but should not be modified by the table. It is also possible to implement a conditional switchover of an entry via | Yes |
| Defines enumerations for use with a combo box instead of a numeric input field. The elements to be passed as an array must be formatted according to the TcHmi.Controls.Combobox.ListItem schema. | Yes |
| Defines, for the listed entries, a list of table entries that should be ignored or filtered under certain circumstances. Elements that are always ignored can be stored under | Yes |
| Defines specific user management access rights for an entry. The elements to be transferred as an array must be formatted according to the TcHmi.AccesControl schema. | Yes |
| Defines the version of the schema used. This entry is required in order to convert future changes to the schema. | No |
All listings require the name of the PLC element to be specified for referencing. For example values, refer to the schema description of UnitMappings.
UnitMappings
The UnitMappings schema offers various groupings of the assignment:
"UnitMappings": {
"Default": {
"SoftEndMin": "Length",…
},
"Trafo": {
"DriveSoftEndMin": "::fbSpecific::fbTrafo::DriveUnitGroup",…
},
"UnitGroup": {
"MaxVeloApplication": "::UnitGroup~Velocity",…
},
"Fixed": {
"TorqueLimitingCapacity": "Unit_Torque_Newton_Meter",…
},
"AnalogValue": {
"ScalingElectricalMin": "::UnitGroupElectrical",…
}
}Element | Description |
|---|---|
Default | These default assignments are used if no special elements are defined. |
Trafo | Specific assignments for transformation axes that are used primarily. |
UnitGroup | If the transferred PLC element contains a property named |
Fixed | For entries that are not to be switchable, fixed units (system unit = display unit) can be defined in this element. |
AnalogValue (Custom) | Additional keys (here, for example, |
ReadOnly
Entries with read-only access can be set via ReadOnly. There are also conditional options that can be switched during runtime.
"Map": {
"TuningLastExecution": "true",
"CreepDistanceM": "AsymTargeting",…
},
"Conditions": {
"AsymTargeting": {
"Symbol": true,
"Inverted": true,
"CreateLatch": false,
"Latch": "ValueToCheck"
},…
}
Element | Description | |
|---|---|---|
| Describes a list of elements that should always, never, or conditionally receive read access. The following definitions are possible:
| |
| Configuration of conditions, provided that an element in the | |
|
| The name of the condition references another symbol and should be set to read access with its state. |
| The interpretation of the conditions is inverted. For example, if a symbol value is referenced, a | |
| The entry generates a flag in an internal flag table. If this value is set to | |
| Flag value that triggers the condition. | |
NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Functions
Available: since version 12.22.0
Use: TC3 Plastic Application HMI Projects