47 lines
1.4 KiB
JSON
47 lines
1.4 KiB
JSON
{
|
|
"$schema": "../TcHmiFramework/Schema/FunctionDescription.Schema.json",
|
|
"apiVersion": 1,
|
|
"version": {
|
|
"full": "14.3.340.0",
|
|
"major": 14,
|
|
"minor": 3,
|
|
"build": 340,
|
|
"revision": 0
|
|
},
|
|
"dependencyFiles": [
|
|
{
|
|
"name": "EnumToString.js",
|
|
"type": "JavaScript",
|
|
"description": ""
|
|
}
|
|
],
|
|
"function": {
|
|
"name": "EnumToString",
|
|
"namespace": "TcHmi.Functions.Beckhoff",
|
|
"displayName": "EnumToString",
|
|
"visible": true,
|
|
"description": "Converts numerical enumeration values to their string names.",
|
|
"category": "Data Conversion",
|
|
"returnValue": {
|
|
"type": "tchmi:general#/definitions/String"
|
|
},
|
|
"arguments": [
|
|
{
|
|
"name": "value",
|
|
"displayName": "Value",
|
|
"type": "tchmi:general#/definitions/Integer",
|
|
"description": "Value to be converted",
|
|
"required": true,
|
|
"bindable": true
|
|
},
|
|
{
|
|
"name": "mapping",
|
|
"displayName": "Mapping",
|
|
"type": "tchmi:framework#/definitions/EnumMapping",
|
|
"description": "An object that maps numerical enum values to strings",
|
|
"required": true,
|
|
"bindable": true
|
|
}
|
|
]
|
|
}
|
|
} |