@kuriousdesign/machine-sdk 1.0.76 → 1.0.78
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentAnimation, DebugLogData, DeviceRegistration, RecipeStore, TaskQueue } from ".";
|
|
1
|
+
import { ComponentAnimation, DebugLogData, DeviceRegistration, FaultData, RecipeStore, TaskQueue } from ".";
|
|
2
2
|
import { PartDataStatus } from "./Part";
|
|
3
3
|
export interface UserData {
|
|
4
4
|
activeUser: number;
|
|
@@ -11,7 +11,7 @@ export interface FaultCodeData {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const initialFaultCodeData: FaultCodeData;
|
|
13
13
|
export interface SystemFaultData {
|
|
14
|
-
list:
|
|
14
|
+
list: FaultData[];
|
|
15
15
|
present: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const initialSystemFaultData: SystemFaultData;
|
|
@@ -33,6 +33,7 @@ export interface Machine {
|
|
|
33
33
|
networkHealth_OK: boolean;
|
|
34
34
|
ethercatMaster_OK: boolean;
|
|
35
35
|
ethercatSlaves_OK: boolean;
|
|
36
|
+
manualMode: boolean;
|
|
36
37
|
supplyAir_OK: boolean;
|
|
37
38
|
cfg: MachineCfg;
|
|
38
39
|
pdmSts: PartDataStatus;
|
|
@@ -9,7 +9,7 @@ exports.initialFaultCodeData = {
|
|
|
9
9
|
code: 0,
|
|
10
10
|
};
|
|
11
11
|
exports.initialSystemFaultData = {
|
|
12
|
-
list: Array(
|
|
12
|
+
list: Array(GlobalConstants_1.GCs.MACHINE_FAULTCODEARRAY_LEN).fill(null).map(() => ({ ..._1.initialFaultData })),
|
|
13
13
|
present: false,
|
|
14
14
|
};
|
|
15
15
|
exports.initialMachineCfg = {
|
|
@@ -33,6 +33,7 @@ exports.initialMachine = ({
|
|
|
33
33
|
networkHealth_OK: false,
|
|
34
34
|
ethercatMaster_OK: false,
|
|
35
35
|
ethercatSlaves_OK: false,
|
|
36
|
+
manualMode: false,
|
|
36
37
|
supplyAir_OK: false,
|
|
37
38
|
cfg: { ...exports.initialMachineCfg },
|
|
38
39
|
pdmSts: Part_1.initialPartDataStatus,
|
package/dist/plc-tags/index.d.ts
CHANGED
|
@@ -14,6 +14,15 @@ export declare const MachineTags: {
|
|
|
14
14
|
machineLog: string;
|
|
15
15
|
deviceLogs: string;
|
|
16
16
|
recipeStore: string;
|
|
17
|
+
errors: string;
|
|
18
|
+
warnings: string;
|
|
19
|
+
estopCircuitDelayed_OK: string;
|
|
20
|
+
fenceCircuit_OK: string;
|
|
21
|
+
guardDoors_LOCKED: string;
|
|
22
|
+
manualMode: string;
|
|
23
|
+
networkHealth_OK: string;
|
|
24
|
+
ethercatMaster_OK: string;
|
|
25
|
+
ethercatSlaves_OK: string;
|
|
17
26
|
};
|
|
18
27
|
export declare const DeviceTags: {
|
|
19
28
|
Cfg: string;
|
package/dist/plc-tags/index.js
CHANGED
|
@@ -33,6 +33,16 @@ exports.MachineTags = {
|
|
|
33
33
|
machineLog: 'MachineLog',
|
|
34
34
|
deviceLogs: 'DeviceLogs',
|
|
35
35
|
recipeStore: 'RecipeStore',
|
|
36
|
+
errors: 'Errors',
|
|
37
|
+
warnings: 'Warnings',
|
|
38
|
+
estopCircuitDelayed_OK: 'EstopCircuitDelayed_OK',
|
|
39
|
+
fenceCircuit_OK: 'FenceCircuit_OK',
|
|
40
|
+
guardDoors_LOCKED: 'GuardDoors_LOCKED',
|
|
41
|
+
manualMode: 'ManualMode',
|
|
42
|
+
// Network Manager
|
|
43
|
+
networkHealth_OK: 'NetworkHealth_OK',
|
|
44
|
+
ethercatMaster_OK: 'EthercatMaster_OK',
|
|
45
|
+
ethercatSlaves_OK: 'EthercatSlaves_OK',
|
|
36
46
|
};
|
|
37
47
|
exports.DeviceTags = {
|
|
38
48
|
Cfg: 'Cfg',
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentAnimation, DebugLogData,
|
|
1
|
+
import { ComponentAnimation, DebugLogData, DeviceRegistration, FaultData, initialDebugLogData, initialFaultData, initialRecipeStore, initialTaskQueue, RecipeStore, TaskQueue } from ".";
|
|
2
2
|
import { initialPartDataStatus, PartDataStatus } from "./Part";
|
|
3
3
|
import { GCs } from "./GlobalConstants";
|
|
4
4
|
|
|
@@ -20,12 +20,12 @@ export const initialFaultCodeData: FaultCodeData = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export interface SystemFaultData {
|
|
23
|
-
list:
|
|
23
|
+
list: FaultData[];
|
|
24
24
|
present: boolean;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
export const initialSystemFaultData: SystemFaultData = {
|
|
28
|
-
list: Array(
|
|
28
|
+
list: Array(GCs.MACHINE_FAULTCODEARRAY_LEN).fill(null).map(() => ({ ...initialFaultData })),
|
|
29
29
|
present: false,
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -76,6 +76,7 @@ export interface Machine {
|
|
|
76
76
|
networkHealth_OK: boolean;
|
|
77
77
|
ethercatMaster_OK: boolean;
|
|
78
78
|
ethercatSlaves_OK: boolean;
|
|
79
|
+
manualMode: boolean;
|
|
79
80
|
supplyAir_OK: boolean;
|
|
80
81
|
cfg: MachineCfg;
|
|
81
82
|
pdmSts: PartDataStatus;
|
|
@@ -115,6 +116,7 @@ export const initialMachine: Machine = ({
|
|
|
115
116
|
networkHealth_OK: false,
|
|
116
117
|
ethercatMaster_OK: false,
|
|
117
118
|
ethercatSlaves_OK: false,
|
|
119
|
+
manualMode: false,
|
|
118
120
|
supplyAir_OK: false,
|
|
119
121
|
cfg: { ...initialMachineCfg },
|
|
120
122
|
pdmSts: initialPartDataStatus,
|
package/src/plc-tags/index.ts
CHANGED
|
@@ -17,6 +17,17 @@ export const MachineTags = {
|
|
|
17
17
|
machineLog: 'MachineLog',
|
|
18
18
|
deviceLogs: 'DeviceLogs',
|
|
19
19
|
recipeStore: 'RecipeStore',
|
|
20
|
+
errors: 'Errors',
|
|
21
|
+
warnings: 'Warnings',
|
|
22
|
+
estopCircuitDelayed_OK: 'EstopCircuitDelayed_OK',
|
|
23
|
+
fenceCircuit_OK: 'FenceCircuit_OK',
|
|
24
|
+
guardDoors_LOCKED: 'GuardDoors_LOCKED',
|
|
25
|
+
manualMode: 'ManualMode',
|
|
26
|
+
|
|
27
|
+
// Network Manager
|
|
28
|
+
networkHealth_OK: 'NetworkHealth_OK',
|
|
29
|
+
ethercatMaster_OK: 'EthercatMaster_OK',
|
|
30
|
+
ethercatSlaves_OK: 'EthercatSlaves_OK',
|
|
20
31
|
}
|
|
21
32
|
|
|
22
33
|
export const DeviceTags = {
|