@kuriousdesign/machine-sdk 1.0.79 → 1.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,6 +83,7 @@ export interface Device {
|
|
|
83
83
|
errors: DeviceFaultData;
|
|
84
84
|
warnings: DeviceFaultData;
|
|
85
85
|
registration: DeviceRegistration;
|
|
86
|
+
mutedChildrenArray: boolean[];
|
|
86
87
|
cfg: DeviceCfg;
|
|
87
88
|
execMethod: ProcessData;
|
|
88
89
|
task: ProcessData;
|
|
@@ -95,6 +96,7 @@ export interface Device {
|
|
|
95
96
|
inputs?: unknown;
|
|
96
97
|
outputs?: unknown;
|
|
97
98
|
}
|
|
99
|
+
export declare const initialMutedChildrenArray: boolean[];
|
|
98
100
|
export declare const initialSts: unknown;
|
|
99
101
|
export declare const initialDevice: Device;
|
|
100
102
|
export interface DeviceLogData {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialDevice = exports.initialSts = exports.initialDeviceStatus = exports.initialDeviceFaultData = exports.initialFaultData = exports.initialDeviceCfg = exports.initialDeviceRegistration = exports.initialDeviceLogData = exports.initialDebugLogData = void 0;
|
|
3
|
+
exports.initialDevice = exports.initialSts = exports.initialMutedChildrenArray = exports.initialDeviceStatus = exports.initialDeviceFaultData = exports.initialFaultData = exports.initialDeviceCfg = exports.initialDeviceRegistration = exports.initialDeviceLogData = exports.initialDebugLogData = void 0;
|
|
4
4
|
const DeviceTypes_1 = require("./DeviceTypes");
|
|
5
5
|
const Processes_1 = require("./Processes");
|
|
6
6
|
const DeviceConstants_1 = require("./DeviceConstants");
|
|
@@ -76,12 +76,15 @@ exports.initialDeviceStatus = {
|
|
|
76
76
|
commanderId: 0,
|
|
77
77
|
recordingLogs: false
|
|
78
78
|
};
|
|
79
|
+
// array of muted children, initialized to false of length DeviceConstants.DEVICE_CHILDREN_ARRAY_LEN
|
|
80
|
+
exports.initialMutedChildrenArray = new Array(DeviceConstants_1.DeviceConstants.DEVICE_CHILDREN_ARRAY_LEN).fill(false);
|
|
79
81
|
exports.initialSts = null;
|
|
80
82
|
exports.initialDevice = {
|
|
81
83
|
is: exports.initialDeviceStatus,
|
|
82
84
|
errors: exports.initialDeviceFaultData,
|
|
83
85
|
warnings: exports.initialDeviceFaultData,
|
|
84
86
|
registration: exports.initialDeviceRegistration,
|
|
87
|
+
mutedChildrenArray: exports.initialMutedChildrenArray,
|
|
85
88
|
cfg: exports.initialDeviceCfg,
|
|
86
89
|
connectionStatus: false,
|
|
87
90
|
execMethod: Processes_1.initialProcessData,
|
package/dist/plc-tags/index.d.ts
CHANGED
package/dist/plc-tags/index.js
CHANGED
|
@@ -54,6 +54,7 @@ exports.DeviceTags = {
|
|
|
54
54
|
Process: 'Process',
|
|
55
55
|
Script: 'Script',
|
|
56
56
|
Registration: 'Registration',
|
|
57
|
+
MutedChildrenArray: 'MutedChildrenArray',
|
|
57
58
|
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
58
59
|
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
59
60
|
ApiOpcuaPlcReq: 'ApiOpcua.InternalReq',
|
package/package.json
CHANGED
|
@@ -177,6 +177,7 @@ export interface Device {
|
|
|
177
177
|
errors: DeviceFaultData;
|
|
178
178
|
warnings: DeviceFaultData;
|
|
179
179
|
registration: DeviceRegistration;
|
|
180
|
+
mutedChildrenArray: boolean[]; // array of muted child device ids
|
|
180
181
|
cfg: DeviceCfg;
|
|
181
182
|
//ignore--instants: DeviceInstants;
|
|
182
183
|
|
|
@@ -198,6 +199,9 @@ export interface Device {
|
|
|
198
199
|
outputs?: unknown;
|
|
199
200
|
}
|
|
200
201
|
|
|
202
|
+
// array of muted children, initialized to false of length DeviceConstants.DEVICE_CHILDREN_ARRAY_LEN
|
|
203
|
+
export const initialMutedChildrenArray: boolean[] = new Array(DeviceConstants.DEVICE_CHILDREN_ARRAY_LEN).fill(false);
|
|
204
|
+
|
|
201
205
|
export const initialSts: unknown = null;
|
|
202
206
|
|
|
203
207
|
export const initialDevice: Device = {
|
|
@@ -205,6 +209,7 @@ export const initialDevice: Device = {
|
|
|
205
209
|
errors: initialDeviceFaultData,
|
|
206
210
|
warnings: initialDeviceFaultData,
|
|
207
211
|
registration: initialDeviceRegistration,
|
|
212
|
+
mutedChildrenArray: initialMutedChildrenArray,
|
|
208
213
|
cfg: initialDeviceCfg,
|
|
209
214
|
connectionStatus: false,
|
|
210
215
|
execMethod: initialProcessData,
|
package/src/plc-tags/index.ts
CHANGED
|
@@ -40,6 +40,7 @@ export const DeviceTags = {
|
|
|
40
40
|
Process: 'Process',
|
|
41
41
|
Script: 'Script',
|
|
42
42
|
Registration: 'Registration',
|
|
43
|
+
MutedChildrenArray: 'MutedChildrenArray',
|
|
43
44
|
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
44
45
|
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
45
46
|
ApiOpcuaPlcReq: 'ApiOpcua.InternalReq',
|