@kuriousdesign/machine-sdk 1.0.64 → 1.0.69
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/.github/workflows/publish.yml +28 -0
- package/README.md +28 -51
- package/dist/custom-types/BaseDevice/Device.d.ts +1 -1
- package/dist/custom-types/BaseDevice/Device.js +1 -1
- package/dist/custom-types/BaseDevice/index.d.ts +1 -0
- package/dist/custom-types/BaseDevice/index.js +1 -0
- package/dist/custom-types/Devices/index.d.ts +0 -2
- package/dist/custom-types/Devices/index.js +0 -2
- package/dist/custom-types/Recipe.d.ts +2 -0
- package/dist/custom-types/Recipe.js +9 -1
- package/package.json +1 -1
- package/src/abb/enums/GCs.mod +44 -44
- package/src/abb/enums/PartLocationIds.mod +13 -13
- package/src/abb/enums/RobTasks.mod +18 -18
- package/src/abb/enums/States.mod +20 -20
- package/src/abb/procs/MainModule.mod +188 -188
- package/src/abb/records/DeviceDataTypes.mod +35 -35
- package/src/custom-types/AppState.ts +115 -115
- package/src/custom-types/BaseDevice/Actions.ts +45 -45
- package/src/custom-types/BaseDevice/ApiOpcua.ts +71 -71
- package/src/custom-types/BaseDevice/Device.ts +224 -224
- package/src/custom-types/BaseDevice/DeviceCmds.ts +45 -45
- package/src/custom-types/BaseDevice/DeviceConstants.ts +9 -9
- package/src/custom-types/{Devices → BaseDevice}/DeviceTypes.ts +60 -60
- package/src/custom-types/BaseDevice/Processes.ts +38 -38
- package/src/custom-types/BaseDevice/index.ts +7 -6
- package/src/custom-types/Bridge.ts +8 -8
- package/src/custom-types/Com.ts +19 -19
- package/src/custom-types/Devices/Axis.ts +222 -222
- package/src/custom-types/Devices/Conductor.ts +14 -14
- package/src/custom-types/Devices/Pot.ts +24 -24
- package/src/custom-types/Devices/Robot.ts +208 -208
- package/src/custom-types/Devices/index.ts +3 -4
- package/src/custom-types/GlobalConstants.ts +98 -98
- package/src/custom-types/HMI.ts +52 -52
- package/src/custom-types/Machine.ts +130 -130
- package/src/custom-types/Part.ts +238 -238
- package/src/custom-types/RackData.ts +22 -22
- package/src/custom-types/Recipe.ts +250 -240
- package/src/custom-types/RecipeManagerFB.ts +10 -10
- package/src/custom-types/TaskQueue.ts +86 -86
- package/src/custom-types/UserManagerFB.ts +7 -7
- package/src/custom-types/index.ts +14 -14
- package/src/enums/Colors.ts +79 -79
- package/src/enums/DeviceId.ts +116 -116
- package/src/enums/ExtrusionType.ts +5 -5
- package/src/enums/OpcuaDatatype.ts +27 -27
- package/src/enums/Pages.ts +21 -21
- package/src/enums/States.ts +173 -173
- package/src/enums/TaskId.ts +37 -37
- package/src/enums/index.ts +9 -9
- package/src/functions/colorMapping.ts +43 -43
- package/src/functions/index.ts +2 -2
- package/src/functions/mqtt-helpers.ts +20 -20
- package/src/functions/topicMapping.ts +6 -6
- package/src/index.ts +3 -3
- package/src/plc-tags/index.ts +38 -38
- package/src/plc-tags/mqtt.ts +9 -9
- package/src/plc-tags/opcua.ts +3 -3
- package/src/styles/animations.css +15 -15
- package/tsconfig.json +13 -13
- package/dist/custom-types/Devices/Device.d.ts +0 -111
- package/dist/custom-types/Devices/Device.js +0 -108
- package/dist/custom-types/PartData.d.ts +0 -11
- package/dist/custom-types/PartData.js +0 -2
- package/dist/custom-types/RecipeData.d.ts +0 -7
- package/dist/custom-types/RecipeData.js +0 -2
- package/dist/enums/Errors.d.ts +0 -6
- package/dist/enums/Errors.js +0 -28
- package/dist/enums/Priorities.d.ts +0 -18
- package/dist/enums/Priorities.js +0 -24
- package/dist/enums/RobPositions.d.ts +0 -12
- package/dist/enums/RobPositions.js +0 -16
- package/dist/enums/Warnings.d.ts +0 -6
- package/dist/enums/Warnings.js +0 -18
- /package/dist/custom-types/{Devices → BaseDevice}/DeviceTypes.d.ts +0 -0
- /package/dist/custom-types/{Devices → BaseDevice}/DeviceTypes.js +0 -0
package/src/plc-tags/index.ts
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
export const PlcNamespaces = {
|
|
2
|
-
Machine: 'Machine',
|
|
3
|
-
MachineHw: 'MachineHw',
|
|
4
|
-
Main: 'Main'
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const MachineTags = {
|
|
8
|
-
deviceStore: 'Devices',
|
|
9
|
-
//deviceTypeStore: 'DeviceTypes',
|
|
10
|
-
registeredDevices: 'RegisteredDevices',
|
|
11
|
-
axisStsArray: 'AxisStsArray',
|
|
12
|
-
HeartbeatPLC: 'HeartbeatPLC',
|
|
13
|
-
HeartbeatHMI: 'HeartbeatHMI',
|
|
14
|
-
parts: 'Parts',
|
|
15
|
-
taskQueue: 'TaskQueue',
|
|
16
|
-
//deviceLogs: 'DeviceLogs',
|
|
17
|
-
machineLog: 'MachineLog',
|
|
18
|
-
deviceLogs: 'DeviceLogs',
|
|
19
|
-
recipeStore: 'RecipeStore',
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const DeviceTags = {
|
|
23
|
-
Cfg: 'Cfg',
|
|
24
|
-
Is: 'Is',
|
|
25
|
-
Errors: 'Errors',
|
|
26
|
-
Warnings: 'Warnings',
|
|
27
|
-
Log: 'Log',
|
|
28
|
-
//ConnectionStatus: 'ConnectionStatus',
|
|
29
|
-
ExecMethod: 'ExecMethod',
|
|
30
|
-
Task: 'Task',
|
|
31
|
-
Process: 'Process',
|
|
32
|
-
Script: 'Script',
|
|
33
|
-
Registration: 'Registration',
|
|
34
|
-
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
35
|
-
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export * from "./opcua";
|
|
1
|
+
export const PlcNamespaces = {
|
|
2
|
+
Machine: 'Machine',
|
|
3
|
+
MachineHw: 'MachineHw',
|
|
4
|
+
Main: 'Main'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const MachineTags = {
|
|
8
|
+
deviceStore: 'Devices',
|
|
9
|
+
//deviceTypeStore: 'DeviceTypes',
|
|
10
|
+
registeredDevices: 'RegisteredDevices',
|
|
11
|
+
axisStsArray: 'AxisStsArray',
|
|
12
|
+
HeartbeatPLC: 'HeartbeatPLC',
|
|
13
|
+
HeartbeatHMI: 'HeartbeatHMI',
|
|
14
|
+
parts: 'Parts',
|
|
15
|
+
taskQueue: 'TaskQueue',
|
|
16
|
+
//deviceLogs: 'DeviceLogs',
|
|
17
|
+
machineLog: 'MachineLog',
|
|
18
|
+
deviceLogs: 'DeviceLogs',
|
|
19
|
+
recipeStore: 'RecipeStore',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const DeviceTags = {
|
|
23
|
+
Cfg: 'Cfg',
|
|
24
|
+
Is: 'Is',
|
|
25
|
+
Errors: 'Errors',
|
|
26
|
+
Warnings: 'Warnings',
|
|
27
|
+
Log: 'Log',
|
|
28
|
+
//ConnectionStatus: 'ConnectionStatus',
|
|
29
|
+
ExecMethod: 'ExecMethod',
|
|
30
|
+
Task: 'Task',
|
|
31
|
+
Process: 'Process',
|
|
32
|
+
Script: 'Script',
|
|
33
|
+
Registration: 'Registration',
|
|
34
|
+
ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
|
|
35
|
+
ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export * from "./opcua";
|
|
39
39
|
export * from "./mqtt";
|
package/src/plc-tags/mqtt.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export interface TopicData {
|
|
2
|
-
timestamp: number;
|
|
3
|
-
payload: unknown; // Placeholder until cfg, status, data schemas provided
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export const MqttTopics = {
|
|
7
|
-
BRIDGE_STATUS: 'bridge/status',
|
|
8
|
-
BRIDGE_CMD: 'bridge/cmd',
|
|
9
|
-
DEVICE_MAP: 'deviceMap',
|
|
1
|
+
export interface TopicData {
|
|
2
|
+
timestamp: number;
|
|
3
|
+
payload: unknown; // Placeholder until cfg, status, data schemas provided
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const MqttTopics = {
|
|
7
|
+
BRIDGE_STATUS: 'bridge/status',
|
|
8
|
+
BRIDGE_CMD: 'bridge/cmd',
|
|
9
|
+
DEVICE_MAP: 'deviceMap',
|
|
10
10
|
} as const;
|
package/src/plc-tags/opcua.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export const nodeListString = "ns=4;s=|var|";
|
|
2
|
-
export const nodeTypeString = "ns=4;s=|type|";
|
|
3
|
-
|
|
1
|
+
export const nodeListString = "ns=4;s=|var|";
|
|
2
|
+
export const nodeTypeString = "ns=4;s=|type|";
|
|
3
|
+
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@keyframes pulse-input {
|
|
2
|
-
0%, 100% {
|
|
3
|
-
opacity: 1;
|
|
4
|
-
scale: 1.05;
|
|
5
|
-
}
|
|
6
|
-
50% {
|
|
7
|
-
opacity: 0.95;
|
|
8
|
-
scale: 1.00;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.animate-pulse-input {
|
|
15
|
-
animation: pulse-input 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
1
|
+
@keyframes pulse-input {
|
|
2
|
+
0%, 100% {
|
|
3
|
+
opacity: 1;
|
|
4
|
+
scale: 1.05;
|
|
5
|
+
}
|
|
6
|
+
50% {
|
|
7
|
+
opacity: 0.95;
|
|
8
|
+
scale: 1.00;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
.animate-pulse-input {
|
|
15
|
+
animation: pulse-input 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
16
16
|
}
|
package/tsconfig.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "./dist",
|
|
6
|
-
"rootDir": "./src",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"skipLibCheck": true
|
|
11
|
-
},
|
|
12
|
-
"include": ["src/**/*"],
|
|
13
|
-
"exclude": ["node_modules", "dist"]
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"skipLibCheck": true
|
|
11
|
+
},
|
|
12
|
+
"include": ["src/**/*"],
|
|
13
|
+
"exclude": ["node_modules", "dist"]
|
|
14
14
|
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { DeviceTypes } from './DeviceTypes';
|
|
2
|
-
export declare const DeviceConstants: {
|
|
3
|
-
DEVICE_CHILDREN_ARRAY_LEN: number;
|
|
4
|
-
DEVICE_FAULTCODEARRAY_LEN: number;
|
|
5
|
-
MAX_NUM_PARAMS: number;
|
|
6
|
-
NUM_ACTION_TYPES: number;
|
|
7
|
-
NUM_LOG_ENTRIES: number;
|
|
8
|
-
MAX_NUM_OUTBOUND_AXIS_INTERLOCKS: number;
|
|
9
|
-
UNIT_TEST_PROCESS_ID: number;
|
|
10
|
-
TIME_MS_AUTOCLEAR_DONE_BIT_TASK_OR_PROCESS: number;
|
|
11
|
-
};
|
|
12
|
-
export interface DebugLogData {
|
|
13
|
-
Msg: string;
|
|
14
|
-
TimeStamp: Date;
|
|
15
|
-
Id: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const initialDebugLogData: DebugLogData;
|
|
18
|
-
export interface DeviceLogData {
|
|
19
|
-
List: DebugLogData[];
|
|
20
|
-
LastIndex: number;
|
|
21
|
-
}
|
|
22
|
-
export declare const initialDeviceLogData: DeviceLogData;
|
|
23
|
-
export interface DeviceRegistration {
|
|
24
|
-
mnemonic: string;
|
|
25
|
-
id: number;
|
|
26
|
-
childIdArray: number[];
|
|
27
|
-
parentId: number;
|
|
28
|
-
deviceType: DeviceTypes;
|
|
29
|
-
}
|
|
30
|
-
export interface DeviceActionRequestData {
|
|
31
|
-
SenderId: number;
|
|
32
|
-
ActionType: number;
|
|
33
|
-
ActionId: number;
|
|
34
|
-
ParamArray: number[];
|
|
35
|
-
}
|
|
36
|
-
export declare const initialDeviceActionRequestData: DeviceActionRequestData;
|
|
37
|
-
export declare const initialDeviceRegistration: DeviceRegistration;
|
|
38
|
-
export interface DeviceCfg {
|
|
39
|
-
safetyZoneId: number;
|
|
40
|
-
controllableByHmi: boolean;
|
|
41
|
-
autoReset: boolean;
|
|
42
|
-
ignore: boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare const initialDeviceCfg: DeviceCfg;
|
|
45
|
-
export interface FaultData {
|
|
46
|
-
DeviceId: number;
|
|
47
|
-
Code: number;
|
|
48
|
-
Msg: string;
|
|
49
|
-
AutoReset: boolean;
|
|
50
|
-
ResetFlag: boolean;
|
|
51
|
-
LogFlag: boolean;
|
|
52
|
-
TimeStamp: Date;
|
|
53
|
-
StepNum: number;
|
|
54
|
-
ParentStepNum: number;
|
|
55
|
-
}
|
|
56
|
-
export declare const initialFaultData: FaultData;
|
|
57
|
-
export interface DeviceFaultData {
|
|
58
|
-
List: FaultData[];
|
|
59
|
-
Present: boolean;
|
|
60
|
-
ChildrenPresent: boolean;
|
|
61
|
-
}
|
|
62
|
-
export declare const initialDeviceFaultData: DeviceFaultData;
|
|
63
|
-
export interface DeviceStatus {
|
|
64
|
-
state: number;
|
|
65
|
-
stepNum: number;
|
|
66
|
-
stepDescription: string;
|
|
67
|
-
colorCode: number;
|
|
68
|
-
statusMsg: string;
|
|
69
|
-
error: boolean;
|
|
70
|
-
killed: boolean;
|
|
71
|
-
inactive: boolean;
|
|
72
|
-
resetting: boolean;
|
|
73
|
-
idle: boolean;
|
|
74
|
-
running: boolean;
|
|
75
|
-
stopping: boolean;
|
|
76
|
-
paused: boolean;
|
|
77
|
-
aborting: boolean;
|
|
78
|
-
done: boolean;
|
|
79
|
-
manual: boolean;
|
|
80
|
-
idleOrError: boolean;
|
|
81
|
-
iifkm: boolean;
|
|
82
|
-
rri: boolean;
|
|
83
|
-
ipr: boolean;
|
|
84
|
-
kei: boolean;
|
|
85
|
-
runningOrStopping: boolean;
|
|
86
|
-
allChildrenIdle: boolean;
|
|
87
|
-
allChildrenKilled: boolean;
|
|
88
|
-
allChildrenInactive: boolean;
|
|
89
|
-
allChildrenIdleOrError: boolean;
|
|
90
|
-
commanderId: number;
|
|
91
|
-
recordingLogs: boolean;
|
|
92
|
-
}
|
|
93
|
-
export declare const initialDeviceStatus: DeviceStatus;
|
|
94
|
-
export declare enum ActionTypes {
|
|
95
|
-
MISSION = 0,
|
|
96
|
-
CMD = 1,
|
|
97
|
-
TASK = 2,
|
|
98
|
-
PROCESS = 3,
|
|
99
|
-
EXEC_METHOD = 4,
|
|
100
|
-
SCRIPT = 5,
|
|
101
|
-
COUNT = 6
|
|
102
|
-
}
|
|
103
|
-
export interface Device {
|
|
104
|
-
is: DeviceStatus;
|
|
105
|
-
errors: DeviceFaultData;
|
|
106
|
-
warnings: DeviceFaultData;
|
|
107
|
-
registration: DeviceRegistration;
|
|
108
|
-
cfg: DeviceCfg;
|
|
109
|
-
connectionStatus: boolean;
|
|
110
|
-
}
|
|
111
|
-
export declare const initialDevice: Device;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialDevice = exports.ActionTypes = exports.initialDeviceStatus = exports.initialDeviceFaultData = exports.initialFaultData = exports.initialDeviceCfg = exports.initialDeviceRegistration = exports.initialDeviceActionRequestData = exports.initialDeviceLogData = exports.initialDebugLogData = exports.DeviceConstants = void 0;
|
|
4
|
-
const DeviceTypes_1 = require("./DeviceTypes");
|
|
5
|
-
exports.DeviceConstants = {
|
|
6
|
-
DEVICE_CHILDREN_ARRAY_LEN: 10,
|
|
7
|
-
DEVICE_FAULTCODEARRAY_LEN: 10, //this value should be greater than equal to children array len
|
|
8
|
-
MAX_NUM_PARAMS: 10, //used for tasks and processes
|
|
9
|
-
NUM_ACTION_TYPES: 6, //this includes NONE
|
|
10
|
-
NUM_LOG_ENTRIES: 50,
|
|
11
|
-
MAX_NUM_OUTBOUND_AXIS_INTERLOCKS: 10,
|
|
12
|
-
UNIT_TEST_PROCESS_ID: 1100,
|
|
13
|
-
TIME_MS_AUTOCLEAR_DONE_BIT_TASK_OR_PROCESS: 250
|
|
14
|
-
};
|
|
15
|
-
exports.initialDebugLogData = {
|
|
16
|
-
Msg: '',
|
|
17
|
-
TimeStamp: new Date(),
|
|
18
|
-
Id: 0
|
|
19
|
-
};
|
|
20
|
-
exports.initialDeviceLogData = {
|
|
21
|
-
List: new Array(exports.DeviceConstants.NUM_LOG_ENTRIES).fill(null),
|
|
22
|
-
LastIndex: 0
|
|
23
|
-
};
|
|
24
|
-
;
|
|
25
|
-
;
|
|
26
|
-
exports.initialDeviceActionRequestData = {
|
|
27
|
-
SenderId: 0,
|
|
28
|
-
ActionType: 0,
|
|
29
|
-
ActionId: 0,
|
|
30
|
-
ParamArray: new Array(exports.DeviceConstants.MAX_NUM_PARAMS).fill(0)
|
|
31
|
-
};
|
|
32
|
-
exports.initialDeviceRegistration = {
|
|
33
|
-
mnemonic: '',
|
|
34
|
-
id: 0,
|
|
35
|
-
childIdArray: [],
|
|
36
|
-
parentId: 0,
|
|
37
|
-
deviceType: DeviceTypes_1.DeviceTypes.Base // Assuming Unknown exists in DeviceTypes enum
|
|
38
|
-
};
|
|
39
|
-
exports.initialDeviceCfg = {
|
|
40
|
-
safetyZoneId: 0,
|
|
41
|
-
controllableByHmi: false,
|
|
42
|
-
autoReset: false,
|
|
43
|
-
ignore: false
|
|
44
|
-
};
|
|
45
|
-
exports.initialFaultData = {
|
|
46
|
-
DeviceId: 0,
|
|
47
|
-
Code: 0,
|
|
48
|
-
Msg: '',
|
|
49
|
-
AutoReset: false,
|
|
50
|
-
ResetFlag: false,
|
|
51
|
-
LogFlag: false,
|
|
52
|
-
TimeStamp: new Date(),
|
|
53
|
-
StepNum: 0,
|
|
54
|
-
ParentStepNum: 0
|
|
55
|
-
};
|
|
56
|
-
exports.initialDeviceFaultData = {
|
|
57
|
-
List: [],
|
|
58
|
-
Present: false,
|
|
59
|
-
ChildrenPresent: false
|
|
60
|
-
};
|
|
61
|
-
exports.initialDeviceStatus = {
|
|
62
|
-
state: 0,
|
|
63
|
-
stepNum: 0,
|
|
64
|
-
stepDescription: '',
|
|
65
|
-
colorCode: 0,
|
|
66
|
-
statusMsg: '',
|
|
67
|
-
error: false,
|
|
68
|
-
killed: false,
|
|
69
|
-
inactive: false,
|
|
70
|
-
resetting: false,
|
|
71
|
-
idle: false,
|
|
72
|
-
running: false,
|
|
73
|
-
stopping: false,
|
|
74
|
-
paused: false,
|
|
75
|
-
aborting: false,
|
|
76
|
-
done: false,
|
|
77
|
-
manual: false,
|
|
78
|
-
idleOrError: false,
|
|
79
|
-
iifkm: false,
|
|
80
|
-
rri: false,
|
|
81
|
-
ipr: false,
|
|
82
|
-
kei: false,
|
|
83
|
-
runningOrStopping: false,
|
|
84
|
-
allChildrenIdle: false,
|
|
85
|
-
allChildrenKilled: false,
|
|
86
|
-
allChildrenInactive: false,
|
|
87
|
-
allChildrenIdleOrError: false,
|
|
88
|
-
commanderId: 0,
|
|
89
|
-
recordingLogs: false
|
|
90
|
-
};
|
|
91
|
-
var ActionTypes;
|
|
92
|
-
(function (ActionTypes) {
|
|
93
|
-
ActionTypes[ActionTypes["MISSION"] = 0] = "MISSION";
|
|
94
|
-
ActionTypes[ActionTypes["CMD"] = 1] = "CMD";
|
|
95
|
-
ActionTypes[ActionTypes["TASK"] = 2] = "TASK";
|
|
96
|
-
ActionTypes[ActionTypes["PROCESS"] = 3] = "PROCESS";
|
|
97
|
-
ActionTypes[ActionTypes["EXEC_METHOD"] = 4] = "EXEC_METHOD";
|
|
98
|
-
ActionTypes[ActionTypes["SCRIPT"] = 5] = "SCRIPT";
|
|
99
|
-
ActionTypes[ActionTypes["COUNT"] = 6] = "COUNT"; // Update this value to match the number of action types
|
|
100
|
-
})(ActionTypes || (exports.ActionTypes = ActionTypes = {}));
|
|
101
|
-
exports.initialDevice = {
|
|
102
|
-
is: exports.initialDeviceStatus,
|
|
103
|
-
errors: exports.initialDeviceFaultData,
|
|
104
|
-
warnings: exports.initialDeviceFaultData,
|
|
105
|
-
registration: exports.initialDeviceRegistration,
|
|
106
|
-
cfg: exports.initialDeviceCfg,
|
|
107
|
-
connectionStatus: false
|
|
108
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PartState } from "../enums";
|
|
2
|
-
export interface PartData {
|
|
3
|
-
cncPreOp: [PartState, PartState];
|
|
4
|
-
cnc: [PartState, PartState];
|
|
5
|
-
cncPostOp: [PartState, PartState];
|
|
6
|
-
doneShelf: PartState[];
|
|
7
|
-
rawShelf: PartState[];
|
|
8
|
-
robot: [PartState, PartState];
|
|
9
|
-
washer: [PartState, PartState];
|
|
10
|
-
hmiEditingAllowed: boolean;
|
|
11
|
-
}
|
package/dist/enums/Errors.d.ts
DELETED
package/dist/enums/Errors.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ErrorsMap = void 0;
|
|
4
|
-
const DeviceId_1 = require("./DeviceId");
|
|
5
|
-
exports.ErrorsMap = {
|
|
6
|
-
[DeviceId_1.DeviceId.SFTY]: {
|
|
7
|
-
0: "NoError",
|
|
8
|
-
1: "EstopDumpValveCh1Off",
|
|
9
|
-
2: "EstopDumpValveCh2Off",
|
|
10
|
-
3: "EstopDumpValveCh1On",
|
|
11
|
-
4: "EstopDumpValveCh2On",
|
|
12
|
-
5: "FenceDumpValveCh1Off",
|
|
13
|
-
6: "FenceDumpValveCh2Off",
|
|
14
|
-
7: "FenceDumpValveCh1On",
|
|
15
|
-
8: "FenceDumpValveCh2On",
|
|
16
|
-
},
|
|
17
|
-
[DeviceId_1.DeviceId.CNC]: {},
|
|
18
|
-
[DeviceId_1.DeviceId.CON]: {},
|
|
19
|
-
[DeviceId_1.DeviceId.DBRR]: {},
|
|
20
|
-
[DeviceId_1.DeviceId.ROB]: {
|
|
21
|
-
0: "NoError",
|
|
22
|
-
1: "ControllerFault",
|
|
23
|
-
2: "RobotStartedWrongTask",
|
|
24
|
-
},
|
|
25
|
-
[DeviceId_1.DeviceId.SYS]: {},
|
|
26
|
-
[DeviceId_1.DeviceId.WASH]: {},
|
|
27
|
-
[DeviceId_1.DeviceId.RACK]: {},
|
|
28
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum Priority {
|
|
2
|
-
NoPriority = 0,//no priorites were detected
|
|
3
|
-
StartCnc = 1,//priority to start cnc (get robot out of cnc, close door and start that thing)
|
|
4
|
-
DropoffMachinedParts = 2,//Dropoff machined parts in the post op (do this after cnc machining and before cnc loading)
|
|
5
|
-
LoadCnc = 3,//Top priority to load the deburred parts into the cnc
|
|
6
|
-
FinishPostOp = 4,//Top prioroity to finish parts after the cnc op
|
|
7
|
-
UnloadCnc = 5,//Top priority to remove machined parts from cnc
|
|
8
|
-
PrepParts = 6,//Top priority to get two parts deburred into the preop deadnest
|
|
9
|
-
WaitToUnload = 7,
|
|
10
|
-
CloseCncDoor = 8,
|
|
11
|
-
DeburrPart = 20,//sub priorty to loading cnc and robot needs deburred parts
|
|
12
|
-
PickRawShelf = 21,//sub priority to pick raw shelf
|
|
13
|
-
PickRawPartFromPreOp = 22,//sub priority to pick raw shelf
|
|
14
|
-
LoadPreOpWithDeburred = 23,
|
|
15
|
-
GatherDeburredPartsForCncLoad = 24,//Top priority to grab deburred parts and get in ready position to load cnc (do this before cnc loading)
|
|
16
|
-
WashParts = 31,
|
|
17
|
-
RejectScrap = 91
|
|
18
|
-
}
|
package/dist/enums/Priorities.js
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Priority = void 0;
|
|
4
|
-
var Priority;
|
|
5
|
-
(function (Priority) {
|
|
6
|
-
//TopPriorities must be ordered from most important (priority = 1) to least important
|
|
7
|
-
Priority[Priority["NoPriority"] = 0] = "NoPriority";
|
|
8
|
-
Priority[Priority["StartCnc"] = 1] = "StartCnc";
|
|
9
|
-
Priority[Priority["DropoffMachinedParts"] = 2] = "DropoffMachinedParts";
|
|
10
|
-
Priority[Priority["LoadCnc"] = 3] = "LoadCnc";
|
|
11
|
-
Priority[Priority["FinishPostOp"] = 4] = "FinishPostOp";
|
|
12
|
-
Priority[Priority["UnloadCnc"] = 5] = "UnloadCnc";
|
|
13
|
-
Priority[Priority["PrepParts"] = 6] = "PrepParts";
|
|
14
|
-
Priority[Priority["WaitToUnload"] = 7] = "WaitToUnload";
|
|
15
|
-
Priority[Priority["CloseCncDoor"] = 8] = "CloseCncDoor";
|
|
16
|
-
//FillRobotWithTwoDeburredParts=11, //sub priority to loading cnc, robot needs to fill both grippers with deburred parts
|
|
17
|
-
Priority[Priority["DeburrPart"] = 20] = "DeburrPart";
|
|
18
|
-
Priority[Priority["PickRawShelf"] = 21] = "PickRawShelf";
|
|
19
|
-
Priority[Priority["PickRawPartFromPreOp"] = 22] = "PickRawPartFromPreOp";
|
|
20
|
-
Priority[Priority["LoadPreOpWithDeburred"] = 23] = "LoadPreOpWithDeburred";
|
|
21
|
-
Priority[Priority["GatherDeburredPartsForCncLoad"] = 24] = "GatherDeburredPartsForCncLoad";
|
|
22
|
-
Priority[Priority["WashParts"] = 31] = "WashParts";
|
|
23
|
-
Priority[Priority["RejectScrap"] = 91] = "RejectScrap";
|
|
24
|
-
})(Priority || (exports.Priority = Priority = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare enum RobPositions {
|
|
2
|
-
AnyPosition = -1,//used when configuring tasks, this is used for start position id for pure moves
|
|
3
|
-
Lost = 0,
|
|
4
|
-
Home = 1,
|
|
5
|
-
WashPerch = 2,
|
|
6
|
-
RackPerch = 3,//used for shelf picking and reject
|
|
7
|
-
DeadNestPerch = 4,//used for preop and postop tasks
|
|
8
|
-
CncPerch = 5,//standby position outside of cnc door with wrist rotated so parts are horizontal
|
|
9
|
-
DeburrPerch = 6,
|
|
10
|
-
CncWaypoint = 7,
|
|
11
|
-
CncHover = 8
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RobPositions = void 0;
|
|
4
|
-
var RobPositions;
|
|
5
|
-
(function (RobPositions) {
|
|
6
|
-
RobPositions[RobPositions["AnyPosition"] = -1] = "AnyPosition";
|
|
7
|
-
RobPositions[RobPositions["Lost"] = 0] = "Lost";
|
|
8
|
-
RobPositions[RobPositions["Home"] = 1] = "Home";
|
|
9
|
-
RobPositions[RobPositions["WashPerch"] = 2] = "WashPerch";
|
|
10
|
-
RobPositions[RobPositions["RackPerch"] = 3] = "RackPerch";
|
|
11
|
-
RobPositions[RobPositions["DeadNestPerch"] = 4] = "DeadNestPerch";
|
|
12
|
-
RobPositions[RobPositions["CncPerch"] = 5] = "CncPerch";
|
|
13
|
-
RobPositions[RobPositions["DeburrPerch"] = 6] = "DeburrPerch";
|
|
14
|
-
RobPositions[RobPositions["CncWaypoint"] = 7] = "CncWaypoint";
|
|
15
|
-
RobPositions[RobPositions["CncHover"] = 8] = "CncHover";
|
|
16
|
-
})(RobPositions || (exports.RobPositions = RobPositions = {}));
|
package/dist/enums/Warnings.d.ts
DELETED
package/dist/enums/Warnings.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WarningsMap = void 0;
|
|
4
|
-
const DeviceId_1 = require("./DeviceId");
|
|
5
|
-
exports.WarningsMap = {
|
|
6
|
-
[DeviceId_1.DeviceId.SYS]: {
|
|
7
|
-
//refer to SysWarnings enum in CoDeSys for mapping
|
|
8
|
-
},
|
|
9
|
-
[DeviceId_1.DeviceId.RACK]: {
|
|
10
|
-
//refer to RackWarnings enum in CoDeSys for mapping
|
|
11
|
-
},
|
|
12
|
-
[DeviceId_1.DeviceId.CNC]: {},
|
|
13
|
-
[DeviceId_1.DeviceId.CON]: {},
|
|
14
|
-
[DeviceId_1.DeviceId.DBRR]: {},
|
|
15
|
-
[DeviceId_1.DeviceId.ROB]: {},
|
|
16
|
-
[DeviceId_1.DeviceId.SFTY]: {},
|
|
17
|
-
[DeviceId_1.DeviceId.WASH]: {},
|
|
18
|
-
};
|
|
File without changes
|
|
File without changes
|