Added minimal functionality for Robot teaching
- Added minimal HMI - Added possibility to open and close all chamber doors
This commit is contained in:
1
Packages/Beckhoff.TwinCAT.HMI.Functions.14.3.340/runtimes/native1.12-tchmi/ExportEvents.js
vendored
Normal file
1
Packages/Beckhoff.TwinCAT.HMI.Functions.14.3.340/runtimes/native1.12-tchmi/ExportEvents.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var TcHmi;!function(TcHmi){!function(Functions){!function(Beckhoff){Beckhoff.ExportEvents=function(ctx,filter,filename){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.Events.exportEvents({filter,filename},data=>data.error?void ctx.error(data.error,{code:data.error,message:TcHmi.Errors[data.error],reason:"Exporting events has failed.",domain:"TcHmi.Functions.Beckhoff.ExportEvents",errors:data.details?[data.details]:void 0}):(TcHmi.Log.info("[Source=Function, Module=TcHmi.Functions.Beckhoff.ExportEvents] Export of events finished successfully."),void ctx.success()))}}(Functions.Beckhoff||(Functions.Beckhoff={}))}(TcHmi.Functions||(TcHmi.Functions={}))}(TcHmi||(TcHmi={})),TcHmi.Functions.registerFunctionEx("ExportEvents","TcHmi.Functions.Beckhoff",TcHmi.Functions.Beckhoff.ExportEvents);
|
||||
Reference in New Issue
Block a user