@kuriousdesign/machine-sdk 1.0.22 → 1.0.23
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.
- package/README.md +4 -0
- package/dist/enums/DeviceId.d.ts +47 -8
- package/dist/enums/DeviceId.js +47 -8
- package/dist/enums/index.d.ts +0 -2
- package/dist/enums/index.js +0 -2
- package/package.json +1 -1
- package/src/enums/DeviceId.ts +53 -8
- package/src/enums/index.ts +1 -2
- package/src/enums/Errors.ts +0 -30
- package/src/enums/Warnings.ts +0 -20
package/README.md
CHANGED
package/dist/enums/DeviceId.d.ts
CHANGED
|
@@ -1,10 +1,49 @@
|
|
|
1
1
|
export declare enum DeviceId {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
NONE = 0,
|
|
3
|
+
SYS = 1,
|
|
4
|
+
HMI = 2,
|
|
5
|
+
SFTY = 3,
|
|
6
|
+
CON = 4,
|
|
7
|
+
DIAG = 5,
|
|
8
|
+
RC = 6,
|
|
9
|
+
LROB = 10,
|
|
10
|
+
ABB = 11,
|
|
11
|
+
EOAT = 12,
|
|
12
|
+
VIS = 13,
|
|
13
|
+
FIX_T = 14,
|
|
14
|
+
FIX_S = 15,
|
|
15
|
+
CLAMP_T = 16,
|
|
16
|
+
CLAMP_S = 17,
|
|
17
|
+
FLSB_T = 18,
|
|
18
|
+
FLSB_S = 19,
|
|
19
|
+
LNR = 21,
|
|
20
|
+
GCNV1 = 22,
|
|
21
|
+
GCNV2 = 23,
|
|
22
|
+
ORCH = 24,
|
|
23
|
+
XFER = 25,
|
|
24
|
+
SWARM1 = 26,
|
|
25
|
+
SWARM2 = 27,
|
|
26
|
+
SCARA = 29,
|
|
27
|
+
REOR = 30,
|
|
28
|
+
BAM = 31,
|
|
29
|
+
MTAC = 32,
|
|
30
|
+
IB = 33,
|
|
31
|
+
STW = 34,
|
|
32
|
+
RG = 35,
|
|
33
|
+
RY = 36,
|
|
34
|
+
RZ = 37,
|
|
35
|
+
BSG = 38,
|
|
36
|
+
BSX = 39,
|
|
37
|
+
BSY = 40,
|
|
38
|
+
BSZ = 41,
|
|
39
|
+
IBG = 45,
|
|
40
|
+
IBZ = 46,
|
|
41
|
+
IBX = 47,
|
|
42
|
+
IBZ1 = 48,
|
|
43
|
+
IBZ2 = 49,
|
|
44
|
+
WASH = 50,
|
|
45
|
+
ROB = 51,
|
|
46
|
+
DBRR = 52,
|
|
47
|
+
CNC = 53,
|
|
48
|
+
RACK = 54
|
|
10
49
|
}
|
package/dist/enums/DeviceId.js
CHANGED
|
@@ -3,12 +3,51 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeviceId = void 0;
|
|
4
4
|
var DeviceId;
|
|
5
5
|
(function (DeviceId) {
|
|
6
|
-
DeviceId[DeviceId["
|
|
7
|
-
DeviceId[DeviceId["
|
|
8
|
-
DeviceId[DeviceId["
|
|
9
|
-
DeviceId[DeviceId["
|
|
10
|
-
DeviceId[DeviceId["
|
|
11
|
-
DeviceId[DeviceId["
|
|
12
|
-
DeviceId[DeviceId["
|
|
13
|
-
DeviceId[DeviceId["
|
|
6
|
+
DeviceId[DeviceId["NONE"] = 0] = "NONE";
|
|
7
|
+
DeviceId[DeviceId["SYS"] = 1] = "SYS";
|
|
8
|
+
DeviceId[DeviceId["HMI"] = 2] = "HMI";
|
|
9
|
+
DeviceId[DeviceId["SFTY"] = 3] = "SFTY";
|
|
10
|
+
DeviceId[DeviceId["CON"] = 4] = "CON";
|
|
11
|
+
DeviceId[DeviceId["DIAG"] = 5] = "DIAG";
|
|
12
|
+
DeviceId[DeviceId["RC"] = 6] = "RC";
|
|
13
|
+
DeviceId[DeviceId["LROB"] = 10] = "LROB";
|
|
14
|
+
DeviceId[DeviceId["ABB"] = 11] = "ABB";
|
|
15
|
+
DeviceId[DeviceId["EOAT"] = 12] = "EOAT";
|
|
16
|
+
DeviceId[DeviceId["VIS"] = 13] = "VIS";
|
|
17
|
+
DeviceId[DeviceId["FIX_T"] = 14] = "FIX_T";
|
|
18
|
+
DeviceId[DeviceId["FIX_S"] = 15] = "FIX_S";
|
|
19
|
+
DeviceId[DeviceId["CLAMP_T"] = 16] = "CLAMP_T";
|
|
20
|
+
DeviceId[DeviceId["CLAMP_S"] = 17] = "CLAMP_S";
|
|
21
|
+
DeviceId[DeviceId["FLSB_T"] = 18] = "FLSB_T";
|
|
22
|
+
DeviceId[DeviceId["FLSB_S"] = 19] = "FLSB_S";
|
|
23
|
+
DeviceId[DeviceId["LNR"] = 21] = "LNR";
|
|
24
|
+
DeviceId[DeviceId["GCNV1"] = 22] = "GCNV1";
|
|
25
|
+
DeviceId[DeviceId["GCNV2"] = 23] = "GCNV2";
|
|
26
|
+
DeviceId[DeviceId["ORCH"] = 24] = "ORCH";
|
|
27
|
+
DeviceId[DeviceId["XFER"] = 25] = "XFER";
|
|
28
|
+
DeviceId[DeviceId["SWARM1"] = 26] = "SWARM1";
|
|
29
|
+
DeviceId[DeviceId["SWARM2"] = 27] = "SWARM2";
|
|
30
|
+
DeviceId[DeviceId["SCARA"] = 29] = "SCARA";
|
|
31
|
+
DeviceId[DeviceId["REOR"] = 30] = "REOR";
|
|
32
|
+
DeviceId[DeviceId["BAM"] = 31] = "BAM";
|
|
33
|
+
DeviceId[DeviceId["MTAC"] = 32] = "MTAC";
|
|
34
|
+
DeviceId[DeviceId["IB"] = 33] = "IB";
|
|
35
|
+
DeviceId[DeviceId["STW"] = 34] = "STW";
|
|
36
|
+
DeviceId[DeviceId["RG"] = 35] = "RG";
|
|
37
|
+
DeviceId[DeviceId["RY"] = 36] = "RY";
|
|
38
|
+
DeviceId[DeviceId["RZ"] = 37] = "RZ";
|
|
39
|
+
DeviceId[DeviceId["BSG"] = 38] = "BSG";
|
|
40
|
+
DeviceId[DeviceId["BSX"] = 39] = "BSX";
|
|
41
|
+
DeviceId[DeviceId["BSY"] = 40] = "BSY";
|
|
42
|
+
DeviceId[DeviceId["BSZ"] = 41] = "BSZ";
|
|
43
|
+
DeviceId[DeviceId["IBG"] = 45] = "IBG";
|
|
44
|
+
DeviceId[DeviceId["IBZ"] = 46] = "IBZ";
|
|
45
|
+
DeviceId[DeviceId["IBX"] = 47] = "IBX";
|
|
46
|
+
DeviceId[DeviceId["IBZ1"] = 48] = "IBZ1";
|
|
47
|
+
DeviceId[DeviceId["IBZ2"] = 49] = "IBZ2";
|
|
48
|
+
DeviceId[DeviceId["WASH"] = 50] = "WASH";
|
|
49
|
+
DeviceId[DeviceId["ROB"] = 51] = "ROB";
|
|
50
|
+
DeviceId[DeviceId["DBRR"] = 52] = "DBRR";
|
|
51
|
+
DeviceId[DeviceId["CNC"] = 53] = "CNC";
|
|
52
|
+
DeviceId[DeviceId["RACK"] = 54] = "RACK";
|
|
14
53
|
})(DeviceId || (exports.DeviceId = DeviceId = {}));
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -2,8 +2,6 @@ export * from "./Colors";
|
|
|
2
2
|
export * from "./States";
|
|
3
3
|
export * from "./OpcuaDatatype";
|
|
4
4
|
export * from "./ExtrusionType";
|
|
5
|
-
export * from "./Warnings";
|
|
6
|
-
export * from "./Errors";
|
|
7
5
|
export * from "./DeviceId";
|
|
8
6
|
export * from "./TaskId";
|
|
9
7
|
export * from "./Priorities";
|
package/dist/enums/index.js
CHANGED
|
@@ -18,8 +18,6 @@ __exportStar(require("./Colors"), exports);
|
|
|
18
18
|
__exportStar(require("./States"), exports);
|
|
19
19
|
__exportStar(require("./OpcuaDatatype"), exports);
|
|
20
20
|
__exportStar(require("./ExtrusionType"), exports);
|
|
21
|
-
__exportStar(require("./Warnings"), exports);
|
|
22
|
-
__exportStar(require("./Errors"), exports);
|
|
23
21
|
__exportStar(require("./DeviceId"), exports);
|
|
24
22
|
__exportStar(require("./TaskId"), exports);
|
|
25
23
|
__exportStar(require("./Priorities"), exports);
|
package/package.json
CHANGED
package/src/enums/DeviceId.ts
CHANGED
|
@@ -1,10 +1,55 @@
|
|
|
1
1
|
export enum DeviceId {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
NONE = 0,
|
|
3
|
+
SYS = 1,
|
|
4
|
+
HMI = 2,
|
|
5
|
+
SFTY = 3,
|
|
6
|
+
CON = 4,
|
|
7
|
+
DIAG = 5,
|
|
8
|
+
RC = 6,
|
|
9
|
+
|
|
10
|
+
LROB = 10,
|
|
11
|
+
ABB = 11,
|
|
12
|
+
EOAT = 12,
|
|
13
|
+
VIS = 13,
|
|
14
|
+
FIX_T = 14,
|
|
15
|
+
FIX_S = 15,
|
|
16
|
+
CLAMP_T = 16,
|
|
17
|
+
CLAMP_S = 17,
|
|
18
|
+
FLSB_T = 18,
|
|
19
|
+
FLSB_S = 19,
|
|
20
|
+
|
|
21
|
+
LNR = 21,
|
|
22
|
+
GCNV1 = 22,
|
|
23
|
+
GCNV2 = 23,
|
|
24
|
+
ORCH = 24,
|
|
25
|
+
XFER = 25,
|
|
26
|
+
SWARM1 = 26,
|
|
27
|
+
SWARM2 = 27,
|
|
28
|
+
|
|
29
|
+
SCARA = 29,
|
|
30
|
+
REOR = 30,
|
|
31
|
+
|
|
32
|
+
BAM = 31,
|
|
33
|
+
MTAC = 32,
|
|
34
|
+
|
|
35
|
+
IB = 33,
|
|
36
|
+
STW = 34,
|
|
37
|
+
RG = 35,
|
|
38
|
+
RY = 36,
|
|
39
|
+
RZ = 37,
|
|
40
|
+
BSG = 38,
|
|
41
|
+
BSX = 39,
|
|
42
|
+
BSY = 40,
|
|
43
|
+
BSZ = 41,
|
|
44
|
+
|
|
45
|
+
IBG = 45,
|
|
46
|
+
IBZ = 46,
|
|
47
|
+
IBX = 47,
|
|
48
|
+
IBZ1 = 48,
|
|
49
|
+
IBZ2 = 49,
|
|
50
|
+
WASH = 50,
|
|
51
|
+
ROB = 51,
|
|
52
|
+
DBRR = 52,
|
|
53
|
+
CNC = 53,
|
|
54
|
+
RACK = 54,
|
|
10
55
|
}
|
package/src/enums/index.ts
CHANGED
|
@@ -2,8 +2,7 @@ export * from "./Colors";
|
|
|
2
2
|
export * from "./States";
|
|
3
3
|
export * from "./OpcuaDatatype";
|
|
4
4
|
export * from "./ExtrusionType";
|
|
5
|
-
|
|
6
|
-
export * from "./Errors";
|
|
5
|
+
|
|
7
6
|
export * from "./DeviceId";
|
|
8
7
|
export * from "./TaskId";
|
|
9
8
|
export * from "./Priorities";
|
package/src/enums/Errors.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { DeviceId } from "./DeviceId";
|
|
2
|
-
|
|
3
|
-
export const ErrorsMap: {
|
|
4
|
-
[key in DeviceId]: {
|
|
5
|
-
[key: number]: string;
|
|
6
|
-
};
|
|
7
|
-
} = {
|
|
8
|
-
[DeviceId.SFTY]: {
|
|
9
|
-
0: "NoError",
|
|
10
|
-
1: "EstopDumpValveCh1Off",
|
|
11
|
-
2: "EstopDumpValveCh2Off",
|
|
12
|
-
3: "EstopDumpValveCh1On",
|
|
13
|
-
4: "EstopDumpValveCh2On",
|
|
14
|
-
5: "FenceDumpValveCh1Off",
|
|
15
|
-
6: "FenceDumpValveCh2Off",
|
|
16
|
-
7: "FenceDumpValveCh1On",
|
|
17
|
-
8: "FenceDumpValveCh2On",
|
|
18
|
-
},
|
|
19
|
-
[DeviceId.CNC]: {},
|
|
20
|
-
[DeviceId.CON]: {},
|
|
21
|
-
[DeviceId.DBRR]: {},
|
|
22
|
-
[DeviceId.ROB]: {
|
|
23
|
-
0: "NoError",
|
|
24
|
-
1: "ControllerFault",
|
|
25
|
-
2: "RobotStartedWrongTask",
|
|
26
|
-
},
|
|
27
|
-
[DeviceId.SYS]: {},
|
|
28
|
-
[DeviceId.WASH]: {},
|
|
29
|
-
[DeviceId.RACK]: {},
|
|
30
|
-
};
|
package/src/enums/Warnings.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { DeviceId } from "./DeviceId";
|
|
2
|
-
|
|
3
|
-
export const WarningsMap: {
|
|
4
|
-
[key in DeviceId]: {
|
|
5
|
-
[key: number]: string;
|
|
6
|
-
};
|
|
7
|
-
} = {
|
|
8
|
-
[DeviceId.SYS]: {
|
|
9
|
-
//refer to SysWarnings enum in CoDeSys for mapping
|
|
10
|
-
},
|
|
11
|
-
[DeviceId.RACK]: {
|
|
12
|
-
//refer to RackWarnings enum in CoDeSys for mapping
|
|
13
|
-
},
|
|
14
|
-
[DeviceId.CNC]: {},
|
|
15
|
-
[DeviceId.CON]: {},
|
|
16
|
-
[DeviceId.DBRR]: {},
|
|
17
|
-
[DeviceId.ROB]: {},
|
|
18
|
-
[DeviceId.SFTY]: {},
|
|
19
|
-
[DeviceId.WASH]: {},
|
|
20
|
-
};
|