@kuriousdesign/machine-sdk 1.0.53 → 1.0.55
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 +2 -0
- package/dist/custom-types/BaseDevice/Device.js +4 -2
- package/dist/custom-types/Devices/Pot.d.ts +11 -0
- package/dist/custom-types/Devices/Pot.js +15 -0
- package/dist/custom-types/Devices/index.d.ts +2 -0
- package/dist/custom-types/Devices/index.js +2 -0
- package/dist/custom-types/GlobalConstants.js +1 -1
- package/package.json +1 -1
- package/src/custom-types/BaseDevice/Device.ts +5 -1
- package/src/custom-types/Devices/Pot.ts +25 -0
- package/src/custom-types/Devices/index.ts +3 -1
- package/src/custom-types/GlobalConstants.ts +1 -1
|
@@ -89,7 +89,9 @@ export interface Device {
|
|
|
89
89
|
connectionStatus: boolean;
|
|
90
90
|
apiOpcua: ApiOpcuaData;
|
|
91
91
|
log: DeviceLogData;
|
|
92
|
+
sts: unknown;
|
|
92
93
|
}
|
|
94
|
+
export declare const initialSts: unknown;
|
|
93
95
|
export declare const initialDevice: Device;
|
|
94
96
|
export interface DeviceLogData {
|
|
95
97
|
list: DebugLogData[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialDevice = exports.initialDeviceStatus = exports.initialDeviceFaultData = exports.initialFaultData = exports.initialDeviceCfg = exports.initialDeviceRegistration = exports.initialDeviceLogData = exports.initialDebugLogData = void 0;
|
|
3
|
+
exports.initialDevice = exports.initialSts = exports.initialDeviceStatus = exports.initialDeviceFaultData = exports.initialFaultData = exports.initialDeviceCfg = exports.initialDeviceRegistration = exports.initialDeviceLogData = exports.initialDebugLogData = void 0;
|
|
4
4
|
const DeviceTypes_1 = require("../Devices/DeviceTypes");
|
|
5
5
|
const Processes_1 = require("./Processes");
|
|
6
6
|
const DeviceConstants_1 = require("./DeviceConstants");
|
|
@@ -74,6 +74,7 @@ exports.initialDeviceStatus = {
|
|
|
74
74
|
commanderId: 0,
|
|
75
75
|
recordingLogs: false
|
|
76
76
|
};
|
|
77
|
+
exports.initialSts = null;
|
|
77
78
|
exports.initialDevice = {
|
|
78
79
|
is: exports.initialDeviceStatus,
|
|
79
80
|
errors: exports.initialDeviceFaultData,
|
|
@@ -86,5 +87,6 @@ exports.initialDevice = {
|
|
|
86
87
|
process: Processes_1.initialProcessData,
|
|
87
88
|
script: Processes_1.initialProcessData,
|
|
88
89
|
apiOpcua: ApiOpcua_1.initialApiOpcuaData,
|
|
89
|
-
log: exports.initialDeviceLogData
|
|
90
|
+
log: exports.initialDeviceLogData,
|
|
91
|
+
sts: exports.initialSts
|
|
90
92
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface PotSts {
|
|
2
|
+
isPressurizing: boolean;
|
|
3
|
+
atTargetPressure: boolean;
|
|
4
|
+
isDepressurized: boolean;
|
|
5
|
+
actualPressure: number;
|
|
6
|
+
targetPressure: number;
|
|
7
|
+
linerIsFlowing: boolean;
|
|
8
|
+
state: number;
|
|
9
|
+
ballValve_OPEN: boolean;
|
|
10
|
+
ballValve_CLOSED: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// TYPE PotSts :
|
|
3
|
+
// STRUCT
|
|
4
|
+
// isPressurizing:BOOL;
|
|
5
|
+
// AtTargetPressure:BOOL;
|
|
6
|
+
// isDepressurized:BOOL;
|
|
7
|
+
// ActualPressure:LREAL;
|
|
8
|
+
// TargetPressure:LREAL;
|
|
9
|
+
// LinerIsFlowing:BOOL;
|
|
10
|
+
// State:INT;
|
|
11
|
+
// BallValve_OPEN:BOOL;
|
|
12
|
+
// BallValve_CLOSED:BOOL;
|
|
13
|
+
// END_STRUCT
|
|
14
|
+
// END_TYPE
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -18,3 +18,5 @@ __exportStar(require("./Axis"), exports);
|
|
|
18
18
|
__exportStar(require("../BaseDevice/Device"), exports);
|
|
19
19
|
__exportStar(require("./DeviceTypes"), exports);
|
|
20
20
|
__exportStar(require("./Conductor"), exports);
|
|
21
|
+
__exportStar(require("./Robot"), exports);
|
|
22
|
+
__exportStar(require("./Pot"), exports);
|
|
@@ -65,7 +65,7 @@ exports.GCs = {
|
|
|
65
65
|
NUM_PARTS_XFER: 10,
|
|
66
66
|
NUM_PARTS_IB: 51,
|
|
67
67
|
NUM_LOG_ENTRIES: 25,
|
|
68
|
-
TASK_LIST_LEN:
|
|
68
|
+
TASK_LIST_LEN: 50,
|
|
69
69
|
TASK_STORE_LEN: 125, //length of the array of stored (configured) tasks, the range of index 100 and greater are reserved for waypoints
|
|
70
70
|
TASK_LOG_LEN: 25,
|
|
71
71
|
STATION_COUNT: 6, //total number of designated areas that can hold parts: robot, raw shelf, preop, cnc, postop and done shelf
|
package/package.json
CHANGED
|
@@ -189,8 +189,11 @@ export interface Device {
|
|
|
189
189
|
apiOpcua: ApiOpcuaData;
|
|
190
190
|
log: DeviceLogData;
|
|
191
191
|
//ignore--instantsudp: UdpData;
|
|
192
|
+
sts: unknown; // device specific status structure
|
|
192
193
|
}
|
|
193
194
|
|
|
195
|
+
export const initialSts: unknown = null;
|
|
196
|
+
|
|
194
197
|
export const initialDevice: Device = {
|
|
195
198
|
is: initialDeviceStatus,
|
|
196
199
|
errors: initialDeviceFaultData,
|
|
@@ -203,7 +206,8 @@ export const initialDevice: Device = {
|
|
|
203
206
|
process: initialProcessData,
|
|
204
207
|
script: initialProcessData,
|
|
205
208
|
apiOpcua: initialApiOpcuaData,
|
|
206
|
-
log: initialDeviceLogData
|
|
209
|
+
log: initialDeviceLogData,
|
|
210
|
+
sts: initialSts
|
|
207
211
|
};
|
|
208
212
|
|
|
209
213
|
// TYPE DeviceLogData :
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// TYPE PotSts :
|
|
2
|
+
// STRUCT
|
|
3
|
+
// isPressurizing:BOOL;
|
|
4
|
+
// AtTargetPressure:BOOL;
|
|
5
|
+
// isDepressurized:BOOL;
|
|
6
|
+
// ActualPressure:LREAL;
|
|
7
|
+
// TargetPressure:LREAL;
|
|
8
|
+
// LinerIsFlowing:BOOL;
|
|
9
|
+
// State:INT;
|
|
10
|
+
// BallValve_OPEN:BOOL;
|
|
11
|
+
// BallValve_CLOSED:BOOL;
|
|
12
|
+
// END_STRUCT
|
|
13
|
+
// END_TYPE
|
|
14
|
+
|
|
15
|
+
export interface PotSts {
|
|
16
|
+
isPressurizing: boolean;
|
|
17
|
+
atTargetPressure: boolean;
|
|
18
|
+
isDepressurized: boolean;
|
|
19
|
+
actualPressure: number;
|
|
20
|
+
targetPressure: number;
|
|
21
|
+
linerIsFlowing: boolean;
|
|
22
|
+
state: number;
|
|
23
|
+
ballValve_OPEN: boolean;
|
|
24
|
+
ballValve_CLOSED: boolean;
|
|
25
|
+
}
|
|
@@ -77,7 +77,7 @@ export const GCs = {
|
|
|
77
77
|
NUM_PARTS_XFER: 10,
|
|
78
78
|
NUM_PARTS_IB: 51,
|
|
79
79
|
NUM_LOG_ENTRIES: 25,
|
|
80
|
-
TASK_LIST_LEN:
|
|
80
|
+
TASK_LIST_LEN: 50,
|
|
81
81
|
TASK_STORE_LEN: 125, //length of the array of stored (configured) tasks, the range of index 100 and greater are reserved for waypoints
|
|
82
82
|
TASK_LOG_LEN: 25,
|
|
83
83
|
STATION_COUNT: 6, //total number of designated areas that can hold parts: robot, raw shelf, preop, cnc, postop and done shelf
|