@kuriousdesign/machine-sdk 1.0.53 → 1.0.54

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.
@@ -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 });
@@ -2,3 +2,5 @@ export * from "./Axis";
2
2
  export * from "../BaseDevice/Device";
3
3
  export * from "./DeviceTypes";
4
4
  export * from "./Conductor";
5
+ export * from "./Robot";
6
+ export * from "./Pot";
@@ -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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.53",
3
+ "version": "1.0.54",
4
4
  "description": "Shared data types and helpers for machine-related repositories",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
+ }
@@ -1,4 +1,6 @@
1
1
  export * from "./Axis";
2
2
  export * from "../BaseDevice/Device";
3
3
  export * from "./DeviceTypes";
4
- export * from "./Conductor";
4
+ export * from "./Conductor";
5
+ export * from "./Robot";
6
+ export * from "./Pot";