@kuriousdesign/machine-sdk 1.0.55 → 1.0.57
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/dist/enums/DeviceId.d.ts +10 -6
- package/dist/enums/DeviceId.js +65 -6
- package/dist/plc-tags/index.js +2 -2
- package/package.json +1 -1
- package/src/enums/DeviceId.ts +67 -7
- package/src/plc-tags/index.ts +2 -2
package/dist/enums/DeviceId.d.ts
CHANGED
|
@@ -17,12 +17,15 @@ export declare enum DeviceId {
|
|
|
17
17
|
FLSB_T = 18,
|
|
18
18
|
FLSB_S = 19,
|
|
19
19
|
POT = 20,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
STEPR = 21,
|
|
21
|
+
GRIP = 22,
|
|
22
|
+
WEIGH = 23,
|
|
23
|
+
LNR = 41,
|
|
24
|
+
GCNV1 = 42,
|
|
25
|
+
GCNV2 = 43,
|
|
26
|
+
ORCH = 44,
|
|
27
|
+
XFER = 45,
|
|
28
|
+
SWARM1 = 46,
|
|
26
29
|
SWARM2 = 27,
|
|
27
30
|
SCARA = 29,
|
|
28
31
|
REOR = 30,
|
|
@@ -47,3 +50,4 @@ export declare enum DeviceId {
|
|
|
47
50
|
CNC = 53,
|
|
48
51
|
RACK = 54
|
|
49
52
|
}
|
|
53
|
+
export declare function deviceIdToString(deviceId: DeviceId | number): string;
|
package/dist/enums/DeviceId.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeviceId = void 0;
|
|
4
|
+
exports.deviceIdToString = deviceIdToString;
|
|
4
5
|
var DeviceId;
|
|
5
6
|
(function (DeviceId) {
|
|
6
7
|
DeviceId[DeviceId["NONE"] = 0] = "NONE";
|
|
@@ -21,12 +22,15 @@ var DeviceId;
|
|
|
21
22
|
DeviceId[DeviceId["FLSB_T"] = 18] = "FLSB_T";
|
|
22
23
|
DeviceId[DeviceId["FLSB_S"] = 19] = "FLSB_S";
|
|
23
24
|
DeviceId[DeviceId["POT"] = 20] = "POT";
|
|
24
|
-
DeviceId[DeviceId["
|
|
25
|
-
DeviceId[DeviceId["
|
|
26
|
-
DeviceId[DeviceId["
|
|
27
|
-
DeviceId[DeviceId["
|
|
28
|
-
DeviceId[DeviceId["
|
|
29
|
-
DeviceId[DeviceId["
|
|
25
|
+
DeviceId[DeviceId["STEPR"] = 21] = "STEPR";
|
|
26
|
+
DeviceId[DeviceId["GRIP"] = 22] = "GRIP";
|
|
27
|
+
DeviceId[DeviceId["WEIGH"] = 23] = "WEIGH";
|
|
28
|
+
DeviceId[DeviceId["LNR"] = 41] = "LNR";
|
|
29
|
+
DeviceId[DeviceId["GCNV1"] = 42] = "GCNV1";
|
|
30
|
+
DeviceId[DeviceId["GCNV2"] = 43] = "GCNV2";
|
|
31
|
+
DeviceId[DeviceId["ORCH"] = 44] = "ORCH";
|
|
32
|
+
DeviceId[DeviceId["XFER"] = 45] = "XFER";
|
|
33
|
+
DeviceId[DeviceId["SWARM1"] = 46] = "SWARM1";
|
|
30
34
|
DeviceId[DeviceId["SWARM2"] = 27] = "SWARM2";
|
|
31
35
|
DeviceId[DeviceId["SCARA"] = 29] = "SCARA";
|
|
32
36
|
DeviceId[DeviceId["REOR"] = 30] = "REOR";
|
|
@@ -52,3 +56,58 @@ var DeviceId;
|
|
|
52
56
|
DeviceId[DeviceId["CNC"] = 53] = "CNC";
|
|
53
57
|
DeviceId[DeviceId["RACK"] = 54] = "RACK";
|
|
54
58
|
})(DeviceId || (exports.DeviceId = DeviceId = {}));
|
|
59
|
+
function deviceIdToString(deviceId) {
|
|
60
|
+
switch (deviceId) {
|
|
61
|
+
case DeviceId.NONE: return "NONE";
|
|
62
|
+
case DeviceId.SYS: return "SYS";
|
|
63
|
+
case DeviceId.HMI: return "HMI";
|
|
64
|
+
case DeviceId.SFTY: return "SFTY";
|
|
65
|
+
case DeviceId.CON: return "CON";
|
|
66
|
+
case DeviceId.DIAG: return "DIAG";
|
|
67
|
+
case DeviceId.RC: return "RC";
|
|
68
|
+
case DeviceId.ROB: return "ROB";
|
|
69
|
+
case DeviceId.ABB: return "ABB";
|
|
70
|
+
case DeviceId.EOAT: return "EOAT";
|
|
71
|
+
case DeviceId.VIS: return "VIS";
|
|
72
|
+
case DeviceId.FIX_T: return "FIX_T";
|
|
73
|
+
case DeviceId.FIX_S: return "FIX_S";
|
|
74
|
+
case DeviceId.CLAMP_T: return "CLAMP_T";
|
|
75
|
+
case DeviceId.CLAMP_S: return "CLAMP_S";
|
|
76
|
+
case DeviceId.FLSB_T: return "FLSB_T";
|
|
77
|
+
case DeviceId.FLSB_S: return "FLSB_S";
|
|
78
|
+
case DeviceId.POT: return "POT";
|
|
79
|
+
case DeviceId.STEPR: return "STEPR";
|
|
80
|
+
case DeviceId.GRIP: return "GRIP";
|
|
81
|
+
case DeviceId.WEIGH: return "WEIGH";
|
|
82
|
+
case DeviceId.LNR: return "LNR";
|
|
83
|
+
case DeviceId.GCNV1: return "GCNV1";
|
|
84
|
+
case DeviceId.GCNV2: return "GCNV2";
|
|
85
|
+
case DeviceId.ORCH: return "ORCH";
|
|
86
|
+
case DeviceId.XFER: return "XFER";
|
|
87
|
+
case DeviceId.SWARM1: return "SWARM1";
|
|
88
|
+
case DeviceId.SWARM2: return "SWARM2";
|
|
89
|
+
case DeviceId.SCARA: return "SCARA";
|
|
90
|
+
case DeviceId.REOR: return "REOR";
|
|
91
|
+
case DeviceId.BAM: return "BAM";
|
|
92
|
+
case DeviceId.MTAC: return "MTAC";
|
|
93
|
+
case DeviceId.IB: return "IB";
|
|
94
|
+
case DeviceId.STW: return "STW";
|
|
95
|
+
case DeviceId.RG: return "RG";
|
|
96
|
+
case DeviceId.RY: return "RY";
|
|
97
|
+
case DeviceId.RZ: return "RZ";
|
|
98
|
+
case DeviceId.BSG: return "BSG";
|
|
99
|
+
case DeviceId.BSX: return "BSX";
|
|
100
|
+
case DeviceId.BSY: return "BSY";
|
|
101
|
+
case DeviceId.BSZ: return "BSZ";
|
|
102
|
+
case DeviceId.IBG: return "IBG";
|
|
103
|
+
case DeviceId.IBZ: return "IBZ";
|
|
104
|
+
case DeviceId.IBX: return "IBX";
|
|
105
|
+
case DeviceId.IBZ1: return "IBZ1";
|
|
106
|
+
case DeviceId.IBZ2: return "IBZ2";
|
|
107
|
+
case DeviceId.WASH: return "WASH";
|
|
108
|
+
case DeviceId.DBRR: return "DBRR";
|
|
109
|
+
case DeviceId.CNC: return "CNC";
|
|
110
|
+
case DeviceId.RACK: return "RACK";
|
|
111
|
+
default: return `UNKNOWN(${deviceId})`;
|
|
112
|
+
}
|
|
113
|
+
}
|
package/dist/plc-tags/index.js
CHANGED
|
@@ -45,8 +45,8 @@ exports.DeviceTags = {
|
|
|
45
45
|
Process: 'Process',
|
|
46
46
|
Script: 'Script',
|
|
47
47
|
Registration: 'Registration',
|
|
48
|
-
ApiOpcuaHmiReq: 'ApiOpcua
|
|
49
|
-
ApiOpcuaHmiResp: 'ApiOpcua
|
|
48
|
+
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
49
|
+
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
50
50
|
};
|
|
51
51
|
__exportStar(require("./opcua"), exports);
|
|
52
52
|
__exportStar(require("./mqtt"), exports);
|
package/package.json
CHANGED
package/src/enums/DeviceId.ts
CHANGED
|
@@ -18,13 +18,16 @@ export enum DeviceId {
|
|
|
18
18
|
FLSB_T = 18,
|
|
19
19
|
FLSB_S = 19,
|
|
20
20
|
POT = 20,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
STEPR = 21,
|
|
22
|
+
GRIP = 22,
|
|
23
|
+
WEIGH = 23,
|
|
24
|
+
|
|
25
|
+
LNR = 41,
|
|
26
|
+
GCNV1 = 42,
|
|
27
|
+
GCNV2 = 43,
|
|
28
|
+
ORCH = 44,
|
|
29
|
+
XFER = 45,
|
|
30
|
+
SWARM1 = 46,
|
|
28
31
|
SWARM2 = 27,
|
|
29
32
|
|
|
30
33
|
SCARA = 29,
|
|
@@ -54,3 +57,60 @@ export enum DeviceId {
|
|
|
54
57
|
CNC = 53,
|
|
55
58
|
RACK = 54,
|
|
56
59
|
}
|
|
60
|
+
|
|
61
|
+
export function deviceIdToString(deviceId: DeviceId | number): string {
|
|
62
|
+
switch (deviceId) {
|
|
63
|
+
case DeviceId.NONE: return "NONE";
|
|
64
|
+
case DeviceId.SYS: return "SYS";
|
|
65
|
+
case DeviceId.HMI: return "HMI";
|
|
66
|
+
case DeviceId.SFTY: return "SFTY";
|
|
67
|
+
case DeviceId.CON: return "CON";
|
|
68
|
+
case DeviceId.DIAG: return "DIAG";
|
|
69
|
+
case DeviceId.RC: return "RC";
|
|
70
|
+
case DeviceId.ROB: return "ROB";
|
|
71
|
+
case DeviceId.ABB: return "ABB";
|
|
72
|
+
case DeviceId.EOAT: return "EOAT";
|
|
73
|
+
case DeviceId.VIS: return "VIS";
|
|
74
|
+
case DeviceId.FIX_T: return "FIX_T";
|
|
75
|
+
case DeviceId.FIX_S: return "FIX_S";
|
|
76
|
+
case DeviceId.CLAMP_T: return "CLAMP_T";
|
|
77
|
+
case DeviceId.CLAMP_S: return "CLAMP_S";
|
|
78
|
+
case DeviceId.FLSB_T: return "FLSB_T";
|
|
79
|
+
case DeviceId.FLSB_S: return "FLSB_S";
|
|
80
|
+
case DeviceId.POT: return "POT";
|
|
81
|
+
case DeviceId.STEPR: return "STEPR";
|
|
82
|
+
case DeviceId.GRIP: return "GRIP";
|
|
83
|
+
case DeviceId.WEIGH: return "WEIGH";
|
|
84
|
+
case DeviceId.LNR: return "LNR";
|
|
85
|
+
case DeviceId.GCNV1: return "GCNV1";
|
|
86
|
+
case DeviceId.GCNV2: return "GCNV2";
|
|
87
|
+
case DeviceId.ORCH: return "ORCH";
|
|
88
|
+
case DeviceId.XFER: return "XFER";
|
|
89
|
+
case DeviceId.SWARM1: return "SWARM1";
|
|
90
|
+
case DeviceId.SWARM2: return "SWARM2";
|
|
91
|
+
case DeviceId.SCARA: return "SCARA";
|
|
92
|
+
case DeviceId.REOR: return "REOR";
|
|
93
|
+
case DeviceId.BAM: return "BAM";
|
|
94
|
+
case DeviceId.MTAC: return "MTAC";
|
|
95
|
+
|
|
96
|
+
case DeviceId.IB: return "IB";
|
|
97
|
+
case DeviceId.STW: return "STW";
|
|
98
|
+
case DeviceId.RG: return "RG";
|
|
99
|
+
case DeviceId.RY: return "RY";
|
|
100
|
+
case DeviceId.RZ: return "RZ";
|
|
101
|
+
case DeviceId.BSG: return "BSG";
|
|
102
|
+
case DeviceId.BSX: return "BSX";
|
|
103
|
+
case DeviceId.BSY: return "BSY";
|
|
104
|
+
case DeviceId.BSZ: return "BSZ";
|
|
105
|
+
case DeviceId.IBG: return "IBG";
|
|
106
|
+
case DeviceId.IBZ: return "IBZ";
|
|
107
|
+
case DeviceId.IBX: return "IBX";
|
|
108
|
+
case DeviceId.IBZ1: return "IBZ1";
|
|
109
|
+
case DeviceId.IBZ2: return "IBZ2";
|
|
110
|
+
case DeviceId.WASH: return "WASH";
|
|
111
|
+
case DeviceId.DBRR: return "DBRR";
|
|
112
|
+
case DeviceId.CNC: return "CNC";
|
|
113
|
+
case DeviceId.RACK: return "RACK";
|
|
114
|
+
default: return `UNKNOWN(${deviceId})`;
|
|
115
|
+
}
|
|
116
|
+
}
|
package/src/plc-tags/index.ts
CHANGED
|
@@ -30,8 +30,8 @@ export const DeviceTags = {
|
|
|
30
30
|
Process: 'Process',
|
|
31
31
|
Script: 'Script',
|
|
32
32
|
Registration: 'Registration',
|
|
33
|
-
ApiOpcuaHmiReq: 'ApiOpcua
|
|
34
|
-
ApiOpcuaHmiResp: 'ApiOpcua
|
|
33
|
+
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
34
|
+
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export * from "./opcua";
|