@kuriousdesign/machine-sdk 1.0.58 → 1.0.60
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/custom-types/BaseDevice/Device.d.ts +1 -1
- package/dist/custom-types/BaseDevice/Device.js +1 -1
- package/dist/custom-types/Devices/Conductor.d.ts +0 -10
- package/dist/custom-types/Devices/Conductor.js +0 -33
- package/dist/custom-types/Devices/DeviceTypes.d.ts +2 -1
- package/dist/custom-types/Devices/DeviceTypes.js +2 -0
- package/dist/custom-types/Devices/index.d.ts +0 -1
- package/dist/custom-types/Devices/index.js +0 -1
- package/dist/plc-tags/index.d.ts +1 -0
- package/dist/plc-tags/index.js +1 -0
- package/package.json +1 -1
- package/src/custom-types/BaseDevice/Device.ts +2 -2
- package/src/custom-types/Devices/Conductor.ts +0 -30
- package/src/custom-types/Devices/DeviceTypes.ts +3 -1
- package/src/custom-types/Devices/index.ts +0 -1
- package/src/plc-tags/index.ts +1 -0
|
@@ -18,7 +18,7 @@ export interface DeviceRegistration {
|
|
|
18
18
|
childIdArray: number[];
|
|
19
19
|
parentId: number;
|
|
20
20
|
deviceType: DeviceTypes;
|
|
21
|
-
devicePath?: string;
|
|
21
|
+
devicePath?: string[];
|
|
22
22
|
}
|
|
23
23
|
export declare const initialDeviceRegistration: DeviceRegistration;
|
|
24
24
|
export interface DeviceCfg {
|
|
@@ -21,7 +21,7 @@ exports.initialDeviceRegistration = {
|
|
|
21
21
|
childIdArray: [],
|
|
22
22
|
parentId: 0,
|
|
23
23
|
deviceType: DeviceTypes_1.DeviceTypes.Base, // Assuming Unknown exists in DeviceTypes enum
|
|
24
|
-
devicePath:
|
|
24
|
+
devicePath: []
|
|
25
25
|
};
|
|
26
26
|
exports.initialDeviceCfg = {
|
|
27
27
|
safetyZoneId: 0,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare enum ConMethods {
|
|
2
|
-
NONE = 0,
|
|
3
|
-
UDPATE_PART = 1,
|
|
4
|
-
TRANSFER_PART = 2,
|
|
5
|
-
CONFIRM_PARTS_LOADED = 3,
|
|
6
|
-
CONFIRM_PARTS_UNLOADED = 4,
|
|
7
|
-
CLEAR_ALL_FIXTURE_PARTS = 5,
|
|
8
|
-
LOAD_ALL_FIXTURE_PARTS_RAW = 6
|
|
9
|
-
}
|
|
10
|
-
export declare function conMethodToString(method: ConMethods): string;
|
|
@@ -12,36 +12,3 @@
|
|
|
12
12
|
// LOAD_ALL_FIXTURE_PARTS_RAW :=6
|
|
13
13
|
// );
|
|
14
14
|
// END_TYPE
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConMethods = void 0;
|
|
17
|
-
exports.conMethodToString = conMethodToString;
|
|
18
|
-
var ConMethods;
|
|
19
|
-
(function (ConMethods) {
|
|
20
|
-
ConMethods[ConMethods["NONE"] = 0] = "NONE";
|
|
21
|
-
ConMethods[ConMethods["UDPATE_PART"] = 1] = "UDPATE_PART";
|
|
22
|
-
ConMethods[ConMethods["TRANSFER_PART"] = 2] = "TRANSFER_PART";
|
|
23
|
-
ConMethods[ConMethods["CONFIRM_PARTS_LOADED"] = 3] = "CONFIRM_PARTS_LOADED";
|
|
24
|
-
ConMethods[ConMethods["CONFIRM_PARTS_UNLOADED"] = 4] = "CONFIRM_PARTS_UNLOADED";
|
|
25
|
-
ConMethods[ConMethods["CLEAR_ALL_FIXTURE_PARTS"] = 5] = "CLEAR_ALL_FIXTURE_PARTS";
|
|
26
|
-
ConMethods[ConMethods["LOAD_ALL_FIXTURE_PARTS_RAW"] = 6] = "LOAD_ALL_FIXTURE_PARTS_RAW";
|
|
27
|
-
})(ConMethods || (exports.ConMethods = ConMethods = {}));
|
|
28
|
-
function conMethodToString(method) {
|
|
29
|
-
switch (method) {
|
|
30
|
-
case ConMethods.NONE:
|
|
31
|
-
return "NONE";
|
|
32
|
-
case ConMethods.UDPATE_PART:
|
|
33
|
-
return "UPDATE_PART";
|
|
34
|
-
case ConMethods.TRANSFER_PART:
|
|
35
|
-
return "TRANSFER_PART";
|
|
36
|
-
case ConMethods.CONFIRM_PARTS_LOADED:
|
|
37
|
-
return "CONFIRM_PARTS_LOADED";
|
|
38
|
-
case ConMethods.CONFIRM_PARTS_UNLOADED:
|
|
39
|
-
return "CONFIRM_PARTS_UNLOADED";
|
|
40
|
-
case ConMethods.CLEAR_ALL_FIXTURE_PARTS:
|
|
41
|
-
return "CLEAR_ALL_FIXTURE_PARTS";
|
|
42
|
-
case ConMethods.LOAD_ALL_FIXTURE_PARTS_RAW:
|
|
43
|
-
return "LOAD_ALL_FIXTURE_PARTS_RAW";
|
|
44
|
-
default:
|
|
45
|
-
return "UNKNOWN_METHOD";
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -31,6 +31,7 @@ var DeviceTypes;
|
|
|
31
31
|
DeviceTypes[DeviceTypes["Robot"] = 8] = "Robot";
|
|
32
32
|
DeviceTypes[DeviceTypes["Vision"] = 10] = "Vision";
|
|
33
33
|
DeviceTypes[DeviceTypes["TwoPos"] = 11] = "TwoPos";
|
|
34
|
+
DeviceTypes[DeviceTypes["TwoPosGantry"] = 12] = "TwoPosGantry";
|
|
34
35
|
})(DeviceTypes || (exports.DeviceTypes = DeviceTypes = {}));
|
|
35
36
|
function deviceTypeToString(deviceType) {
|
|
36
37
|
switch (deviceType) {
|
|
@@ -54,6 +55,7 @@ function deviceTypeToString(deviceType) {
|
|
|
54
55
|
return 'Vision';
|
|
55
56
|
case DeviceTypes.TwoPos:
|
|
56
57
|
return 'Two Position';
|
|
58
|
+
case DeviceTypes.TwoPosGantry:
|
|
57
59
|
default:
|
|
58
60
|
return 'Unknown';
|
|
59
61
|
}
|
|
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./Axis"), exports);
|
|
18
18
|
__exportStar(require("../BaseDevice/Device"), exports);
|
|
19
19
|
__exportStar(require("./DeviceTypes"), exports);
|
|
20
|
-
__exportStar(require("./Conductor"), exports);
|
|
21
20
|
__exportStar(require("./Robot"), exports);
|
|
22
21
|
__exportStar(require("./Pot"), exports);
|
package/dist/plc-tags/index.d.ts
CHANGED
package/dist/plc-tags/index.js
CHANGED
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ export interface DeviceRegistration {
|
|
|
35
35
|
childIdArray: number[]; // array of child device ids
|
|
36
36
|
parentId: number; // this is the parent id
|
|
37
37
|
deviceType: DeviceTypes; // type of the device
|
|
38
|
-
devicePath?: string; // full path of the device in the machine hierarchy
|
|
38
|
+
devicePath?: string[]; // full path of the device in the machine hierarchy
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
|
|
@@ -46,7 +46,7 @@ export const initialDeviceRegistration: DeviceRegistration = {
|
|
|
46
46
|
childIdArray: [],
|
|
47
47
|
parentId: 0,
|
|
48
48
|
deviceType: DeviceTypes.Base, // Assuming Unknown exists in DeviceTypes enum
|
|
49
|
-
devicePath:
|
|
49
|
+
devicePath: []
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export interface DeviceCfg {
|
|
@@ -12,33 +12,3 @@
|
|
|
12
12
|
// );
|
|
13
13
|
// END_TYPE
|
|
14
14
|
|
|
15
|
-
export enum ConMethods {
|
|
16
|
-
NONE = 0,
|
|
17
|
-
UDPATE_PART = 1,
|
|
18
|
-
TRANSFER_PART = 2,
|
|
19
|
-
CONFIRM_PARTS_LOADED = 3,
|
|
20
|
-
CONFIRM_PARTS_UNLOADED = 4,
|
|
21
|
-
CLEAR_ALL_FIXTURE_PARTS = 5,
|
|
22
|
-
LOAD_ALL_FIXTURE_PARTS_RAW = 6,
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export function conMethodToString(method: ConMethods): string {
|
|
26
|
-
switch (method) {
|
|
27
|
-
case ConMethods.NONE:
|
|
28
|
-
return "NONE";
|
|
29
|
-
case ConMethods.UDPATE_PART:
|
|
30
|
-
return "UPDATE_PART";
|
|
31
|
-
case ConMethods.TRANSFER_PART:
|
|
32
|
-
return "TRANSFER_PART";
|
|
33
|
-
case ConMethods.CONFIRM_PARTS_LOADED:
|
|
34
|
-
return "CONFIRM_PARTS_LOADED";
|
|
35
|
-
case ConMethods.CONFIRM_PARTS_UNLOADED:
|
|
36
|
-
return "CONFIRM_PARTS_UNLOADED";
|
|
37
|
-
case ConMethods.CLEAR_ALL_FIXTURE_PARTS:
|
|
38
|
-
return "CLEAR_ALL_FIXTURE_PARTS";
|
|
39
|
-
case ConMethods.LOAD_ALL_FIXTURE_PARTS_RAW:
|
|
40
|
-
return "LOAD_ALL_FIXTURE_PARTS_RAW";
|
|
41
|
-
default:
|
|
42
|
-
return "UNKNOWN_METHOD";
|
|
43
|
-
}
|
|
44
|
-
}
|
|
@@ -28,7 +28,8 @@ export enum DeviceTypes {
|
|
|
28
28
|
Machine = 7,
|
|
29
29
|
Robot = 8,
|
|
30
30
|
Vision = 10,
|
|
31
|
-
TwoPos = 11
|
|
31
|
+
TwoPos = 11,
|
|
32
|
+
TwoPosGantry = 12
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
export function deviceTypeToString(deviceType: DeviceTypes): string {
|
|
@@ -53,6 +54,7 @@ export function deviceTypeToString(deviceType: DeviceTypes): string {
|
|
|
53
54
|
return 'Vision';
|
|
54
55
|
case DeviceTypes.TwoPos:
|
|
55
56
|
return 'Two Position';
|
|
57
|
+
case DeviceTypes.TwoPosGantry:
|
|
56
58
|
default:
|
|
57
59
|
return 'Unknown';
|
|
58
60
|
}
|