Files
infineon_plc/Packages/Beckhoff.TwinCAT.HMI.Functions.14.3.340/runtimes/native1.12-tchmi/DownloadRecipes.js
m.heisig 2d11c43579 Added minimal functionality for Robot teaching
- Added minimal HMI
- Added possibility to open and close all chamber doors
2026-01-17 09:20:39 +01:00

1 line
1.2 KiB
JavaScript

"use strict";var TcHmi;!function(TcHmi){!function(Functions){!function(Beckhoff){Beckhoff.DownloadRecipes=function(ctx,filter,referencedRecipeTypes=!1){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'.");TcHmi.Server.RecipeManagement.downloadRecipesEx(filter,null,{referencedRecipeTypes},null,data=>data.error?void ctx.error(data.error,{code:data.error,message:TcHmi.Errors[data.error],reason:"Downloading recipe has failed.",domain:"TcHmi.Functions.Beckhoff.DownloadRecipes",errors:data.details?[data.details]:void 0}):(TcHmi.Log.info("[Source=Function, Module=TcHmi.Functions.Beckhoff.DownloadRecipes] Recipe "+filter+" download started successfully."),void ctx.success()))}}(Functions.Beckhoff||(Functions.Beckhoff={}))}(TcHmi.Functions||(TcHmi.Functions={}))}(TcHmi||(TcHmi={})),TcHmi.Functions.registerFunctionEx("DownloadRecipes","TcHmi.Functions.Beckhoff",TcHmi.Functions.Beckhoff.DownloadRecipes);