Added minimal functionality for Robot teaching

- Added minimal HMI
- Added possibility to open and close all chamber doors
This commit is contained in:
2026-01-17 09:20:39 +01:00
parent 9f058db2a3
commit 2d11c43579
2274 changed files with 912690 additions and 162 deletions

View File

@@ -0,0 +1 @@
"use strict";var TcHmi;!function(TcHmi){!function(Functions){!function(Beckhoff){Beckhoff.SetElementByIndex=function(ctx,arraySymbol,arrayIndex,value){if(!ctx)throw new TypeError("Parameter 'ctx' must be defined.");if(!ctx.success||!ctx.error)throw new TypeError("Parameter 'ctx' must be defined properly. Either 'success' or 'error' or both are missing.");if("function"!=typeof ctx.success||"function"!=typeof ctx.error)throw new TypeError("Parameter 'ctx' must be defined properly. Either 'success' or 'error' or both are not of type 'function'.");null!==arraySymbol?arraySymbol instanceof TcHmi.Symbol?arraySymbol.readEx(function(rdata){if(rdata.error===TcHmi.Errors.NONE)if(Array.isArray(rdata.value)){const convertedArrayIndex=parseInt(arrayIndex,10);if(isNaN(convertedArrayIndex))return void ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:`Requested array index (${arrayIndex}) is not a number.`,domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"});if(convertedArrayIndex<0)return void ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:`Requested array index (${convertedArrayIndex}) is negative.`,domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"});if(!(rdata.value.length>convertedArrayIndex))return void ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:`Array length (${rdata.value.length}) is smaller than requested array index (${convertedArrayIndex})`,domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"});rdata.value[convertedArrayIndex]=value,arraySymbol.write(rdata.value,function(wdata){return wdata.error===TcHmi.Errors.NONE?void ctx.success():void ctx.error(wdata.error,{code:wdata.error,message:TcHmi.Errors[wdata.error],reason:"Symbol value write failed",domain:"TcHmi.Functions.Beckhoff.SetElementByIndex",errors:wdata.details?[wdata.details]:void 0})})}else ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:'Invalid type. Expected "arraySymbol" to be an array.',domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"});else ctx.error(rdata.error,{code:rdata.error,message:TcHmi.Errors[rdata.error],reason:"Symbol value read failed",domain:"TcHmi.Functions.Beckhoff.SetElementByIndex",errors:rdata.details?[rdata.details]:void 0})}):ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:"Parameter is no symbol.",domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"}):ctx.error(TcHmi.Errors.E_PARAMETER_INVALID,{code:TcHmi.Errors.E_PARAMETER_INVALID,message:TcHmi.Errors[TcHmi.Errors.E_PARAMETER_INVALID],reason:"Requested array symbol is not set.",domain:"TcHmi.Functions.Beckhoff.SetElementByIndex"})}}(Functions.Beckhoff||(Functions.Beckhoff={}))}(TcHmi.Functions||(TcHmi.Functions={}))}(TcHmi||(TcHmi={})),TcHmi.Functions.registerFunctionEx("SetElementByIndex","TcHmi.Functions.Beckhoff",TcHmi.Functions.Beckhoff.SetElementByIndex);