@kuriousdesign/machine-sdk 1.0.23 → 1.0.24

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.
@@ -0,0 +1,14 @@
1
+ export declare enum DeviceCmds {
2
+ NONE = 0,
3
+ RESET = 1,// initializes device to idle
4
+ STOP = 2,// takes device from running to idle
5
+ CLEAR = 3,// clears faults
6
+ KILL = 4,// takes device to aborting then killed, holds at killed until cmd is set FALSE
7
+ PAUSE = 5,// pauses the current task
8
+ UNPAUSE = 6,// Unpauses the current task
9
+ START = 7,// go from idle to running
10
+ TAKE_CONTROL = 8,// used to request control over device
11
+ RELEASE_CONTROL = 9,// used to release control over device
12
+ START_RECORDING_LOGS = 10,// writes to Machine.RecordedLogs
13
+ STOP_RECORDING_LOGS = 11
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceCmds = void 0;
4
+ var DeviceCmds;
5
+ (function (DeviceCmds) {
6
+ DeviceCmds[DeviceCmds["NONE"] = 0] = "NONE";
7
+ DeviceCmds[DeviceCmds["RESET"] = 1] = "RESET";
8
+ DeviceCmds[DeviceCmds["STOP"] = 2] = "STOP";
9
+ DeviceCmds[DeviceCmds["CLEAR"] = 3] = "CLEAR";
10
+ DeviceCmds[DeviceCmds["KILL"] = 4] = "KILL";
11
+ DeviceCmds[DeviceCmds["PAUSE"] = 5] = "PAUSE";
12
+ DeviceCmds[DeviceCmds["UNPAUSE"] = 6] = "UNPAUSE";
13
+ DeviceCmds[DeviceCmds["START"] = 7] = "START";
14
+ DeviceCmds[DeviceCmds["TAKE_CONTROL"] = 8] = "TAKE_CONTROL";
15
+ DeviceCmds[DeviceCmds["RELEASE_CONTROL"] = 9] = "RELEASE_CONTROL";
16
+ DeviceCmds[DeviceCmds["START_RECORDING_LOGS"] = 10] = "START_RECORDING_LOGS";
17
+ DeviceCmds[DeviceCmds["STOP_RECORDING_LOGS"] = 11] = "STOP_RECORDING_LOGS";
18
+ })(DeviceCmds || (exports.DeviceCmds = DeviceCmds = {}));
@@ -3,3 +3,4 @@ export * from "./ApiOpcua";
3
3
  export * from "./Device";
4
4
  export * from "./DeviceConstants";
5
5
  export * from "./Processes";
6
+ export * from "./DeviceCmds";
@@ -19,3 +19,4 @@ __exportStar(require("./ApiOpcua"), exports);
19
19
  __exportStar(require("./Device"), exports);
20
20
  __exportStar(require("./DeviceConstants"), exports);
21
21
  __exportStar(require("./Processes"), exports);
22
+ __exportStar(require("./DeviceCmds"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.23",
3
+ "version": "1.0.24",
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",
@@ -0,0 +1,14 @@
1
+ export enum DeviceCmds {
2
+ NONE = 0,
3
+ RESET = 1, // initializes device to idle
4
+ STOP = 2, // takes device from running to idle
5
+ CLEAR = 3, // clears faults
6
+ KILL = 4, // takes device to aborting then killed, holds at killed until cmd is set FALSE
7
+ PAUSE = 5, // pauses the current task
8
+ UNPAUSE = 6, // Unpauses the current task
9
+ START = 7, // go from idle to running
10
+ TAKE_CONTROL = 8, // used to request control over device
11
+ RELEASE_CONTROL = 9, // used to release control over device
12
+ START_RECORDING_LOGS = 10, // writes to Machine.RecordedLogs
13
+ STOP_RECORDING_LOGS = 11
14
+ }
@@ -3,3 +3,4 @@ export * from "./ApiOpcua";
3
3
  export * from "./Device";
4
4
  export * from "./DeviceConstants";
5
5
  export * from "./Processes";
6
+ export * from "./DeviceCmds";