@kuriousdesign/machine-sdk 1.0.89 → 1.0.91
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface JobData {
|
|
2
2
|
activeRecipeIndex: number;
|
|
3
3
|
jobName: string;
|
|
4
|
+
tubeTypeString: string;
|
|
4
5
|
lotQty: number;
|
|
5
6
|
goodCnt: number;
|
|
6
7
|
scrapCnt: number;
|
|
@@ -10,6 +11,16 @@ export interface JobData {
|
|
|
10
11
|
jobStartTime: bigint;
|
|
11
12
|
jobEndTime: bigint;
|
|
12
13
|
jobComplete: boolean;
|
|
14
|
+
activeBatchNumber: number;
|
|
15
|
+
batchId: string;
|
|
16
|
+
workOrderId: string;
|
|
17
|
+
lotId: string;
|
|
18
|
+
salesOrderId: string;
|
|
19
|
+
assemblyName: string;
|
|
20
|
+
assemblyNumber: string;
|
|
21
|
+
workInstruction: string;
|
|
22
|
+
operationNumber: string;
|
|
23
|
+
operatorId: string;
|
|
13
24
|
}
|
|
14
25
|
export declare const initialJobData: JobData;
|
|
15
26
|
export interface ApplicatorSetpoint {
|
|
@@ -5,7 +5,8 @@ exports.getTubeTypeString = getTubeTypeString;
|
|
|
5
5
|
const GlobalConstants_1 = require("./GlobalConstants");
|
|
6
6
|
exports.initialJobData = {
|
|
7
7
|
activeRecipeIndex: 0,
|
|
8
|
-
jobName:
|
|
8
|
+
jobName: '',
|
|
9
|
+
tubeTypeString: '',
|
|
9
10
|
lotQty: 0,
|
|
10
11
|
goodCnt: 0,
|
|
11
12
|
scrapCnt: 0,
|
|
@@ -14,7 +15,18 @@ exports.initialJobData = {
|
|
|
14
15
|
setupCompleted: false,
|
|
15
16
|
jobStartTime: BigInt(0),
|
|
16
17
|
jobEndTime: BigInt(0),
|
|
17
|
-
jobComplete: false
|
|
18
|
+
jobComplete: false,
|
|
19
|
+
activeBatchNumber: 0,
|
|
20
|
+
//heatId: '',
|
|
21
|
+
batchId: '',
|
|
22
|
+
workOrderId: '',
|
|
23
|
+
lotId: '',
|
|
24
|
+
salesOrderId: '',
|
|
25
|
+
assemblyName: '',
|
|
26
|
+
assemblyNumber: '',
|
|
27
|
+
workInstruction: '',
|
|
28
|
+
operationNumber: '',
|
|
29
|
+
operatorId: '',
|
|
18
30
|
};
|
|
19
31
|
exports.initialApplicatorSetpoint = {
|
|
20
32
|
speed: 0,
|
package/package.json
CHANGED
|
@@ -1,22 +1,36 @@
|
|
|
1
1
|
import { GCs } from "./GlobalConstants";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
export interface JobData {
|
|
4
|
-
activeRecipeIndex: number;
|
|
5
|
-
jobName: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
activeRecipeIndex: number; //used with Machine.RecipeStore.Recipes array
|
|
6
|
+
jobName: string; //this is the identifier for the specific job
|
|
7
|
+
tubeTypeString: string;
|
|
8
|
+
lotQty: number; //how many parts you are supposed to make per the job request
|
|
9
|
+
goodCnt: number; //how many good parts you've completed since starting the job
|
|
10
|
+
scrapCnt: number; //how many parts you've scrapped since starting the job
|
|
11
|
+
setupStartTime: bigint; //timestamp
|
|
12
|
+
setupEndTime: bigint;//timestamp
|
|
13
|
+
setupCompleted: boolean;//status
|
|
14
|
+
jobStartTime: bigint;//timestamp
|
|
15
|
+
jobEndTime: bigint;//timestamp
|
|
14
16
|
jobComplete: boolean;
|
|
17
|
+
activeBatchNumber: number; //this probably needs to change to activeHeatId
|
|
18
|
+
//heatId: string;
|
|
19
|
+
batchId: string;
|
|
20
|
+
workOrderId: string;
|
|
21
|
+
lotId: string;
|
|
22
|
+
salesOrderId: string;
|
|
23
|
+
assemblyName : string;
|
|
24
|
+
assemblyNumber : string;
|
|
25
|
+
workInstruction : string;
|
|
26
|
+
operationNumber : string;
|
|
27
|
+
operatorId: string; //uses collins employeeId
|
|
15
28
|
}
|
|
16
29
|
|
|
17
30
|
export const initialJobData: JobData = {
|
|
18
31
|
activeRecipeIndex: 0,
|
|
19
|
-
jobName:
|
|
32
|
+
jobName: '',
|
|
33
|
+
tubeTypeString: '',
|
|
20
34
|
lotQty: 0,
|
|
21
35
|
goodCnt: 0,
|
|
22
36
|
scrapCnt: 0,
|
|
@@ -25,7 +39,18 @@ export const initialJobData: JobData = {
|
|
|
25
39
|
setupCompleted: false,
|
|
26
40
|
jobStartTime: BigInt(0),
|
|
27
41
|
jobEndTime: BigInt(0),
|
|
28
|
-
jobComplete: false
|
|
42
|
+
jobComplete: false,
|
|
43
|
+
activeBatchNumber: 0,
|
|
44
|
+
//heatId: '',
|
|
45
|
+
batchId: '',
|
|
46
|
+
workOrderId: '',
|
|
47
|
+
lotId: '',
|
|
48
|
+
salesOrderId: '',
|
|
49
|
+
assemblyName : '',
|
|
50
|
+
assemblyNumber : '',
|
|
51
|
+
workInstruction : '',
|
|
52
|
+
operationNumber : '',
|
|
53
|
+
operatorId: '',
|
|
29
54
|
};
|
|
30
55
|
|
|
31
56
|
export interface ApplicatorSetpoint {
|
|
@@ -48,29 +73,37 @@ export const initialApplicatorSetpoint: ApplicatorSetpoint = {
|
|
|
48
73
|
export const initialApplicatorSetpoints: ApplicatorSetpoint[] = Array.from({ length: GCs.MAX_APPLICATOR_SETPOINTS }, () => initialApplicatorSetpoint);
|
|
49
74
|
|
|
50
75
|
export interface RecipeData {
|
|
51
|
-
index: number;
|
|
52
|
-
dbId: string;
|
|
53
|
-
nickname: string;
|
|
54
|
-
|
|
55
|
-
|
|
76
|
+
index: number; //same as index in Machine.RecipeStore.Recipes
|
|
77
|
+
dbId: string; //mongodb identifier for recipe
|
|
78
|
+
nickname: string; //unique nickname for the recipe
|
|
79
|
+
|
|
80
|
+
// LINER DATA
|
|
81
|
+
linerPotPressure: number; //psi
|
|
82
|
+
linerTypeString: string; //display purposes only
|
|
56
83
|
linerWeightMin: number;
|
|
57
84
|
linerWeightMax: number;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
85
|
+
|
|
86
|
+
// TUBE DATA
|
|
87
|
+
tubeTypeId: number; //ROBOT
|
|
88
|
+
tubeTypeString: string; //display purposes only
|
|
89
|
+
tubeOuterDiameterMax: number; //mm, used for robot offsets in fixture <ROBOT>
|
|
90
|
+
tubeHeightMax: number; //mm, used for approach to tubes and the pick position for weighing <ROBOT>
|
|
91
|
+
tubeMassKg: number; //kg, used for payload adjustment when gripping tubes
|
|
92
|
+
falseBottomStaysOpen: boolean; //this also determines if only the tall fixture is used or not <ROBOT>
|
|
93
|
+
|
|
94
|
+
// APPLICATOR SETPOINTS
|
|
64
95
|
applicatorHasVariableSqueegee: boolean;
|
|
65
|
-
measuredSqueegeeDiaAtSetpoint1: number
|
|
66
|
-
applicatorSetpoints: ApplicatorSetpoint[];
|
|
67
|
-
applicatorPreloadPauseDuration: number;
|
|
68
|
-
|
|
96
|
+
measuredSqueegeeDiaAtSetpoint1: number;//set after calibration
|
|
97
|
+
applicatorSetpoints: ApplicatorSetpoint[]; // <ROBOT>
|
|
98
|
+
applicatorPreloadPauseDuration: number; //pause it takes after opening ball valve for the first move
|
|
99
|
+
|
|
100
|
+
// TOOLS
|
|
101
|
+
applicatorToolId: number; // <ROBOT> --> this would link to TCP number in the ABB Code
|
|
69
102
|
applicatorToolString: string;
|
|
70
|
-
applicatorCollisionPayloadOffset: number;
|
|
71
|
-
cleanerId: number;
|
|
103
|
+
applicatorCollisionPayloadOffset: number; //kg, used to set the collision detection sensitivity during liner application, gripLoad cmd used to add artificial payload
|
|
104
|
+
cleanerId: number; // <ROBOT>
|
|
72
105
|
cleanerString: string;
|
|
73
|
-
weighingFingerId: number;
|
|
106
|
+
weighingFingerId: number; // <ROBOT> --> this would link to TCP number in the ABB Code
|
|
74
107
|
weighingFingerString: string;
|
|
75
108
|
cameraId: number;
|
|
76
109
|
cameraString: string;
|