@duet3d/objectmodel 3.7.1 → 3.7.2-alpha.2
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/boards/index.d.ts +2 -0
- package/dist/boards/index.js +2 -0
- package/dist/documentation.json +30 -5
- package/dist/enums.json +11 -0
- package/dist/move/Axis.d.ts +2 -0
- package/dist/move/Axis.js +2 -0
- package/dist/move/DriverState.d.ts +6 -0
- package/dist/move/DriverState.js +7 -0
- package/dist/move/Extruder.d.ts +2 -0
- package/dist/move/Extruder.js +2 -0
- package/dist/move/index.d.ts +1 -0
- package/dist/move/index.js +1 -0
- package/dist/state/MachineStatus.d.ts +1 -0
- package/dist/state/MachineStatus.js +1 -0
- package/package.json +1 -1
package/dist/boards/index.d.ts
CHANGED
|
@@ -49,8 +49,10 @@ export declare class MainBoard extends Board {
|
|
|
49
49
|
}
|
|
50
50
|
export declare class ExpansionBoard extends Board {
|
|
51
51
|
constructor();
|
|
52
|
+
bootloaderVersion: string;
|
|
52
53
|
closedLoop: BoardClosedLoop | null;
|
|
53
54
|
inductiveSensor: InductiveSensor | null;
|
|
55
|
+
interface: number | null;
|
|
54
56
|
state: BoardState;
|
|
55
57
|
timeout: number;
|
|
56
58
|
}
|
package/dist/boards/index.js
CHANGED
|
@@ -66,8 +66,10 @@ export class MainBoard extends Board {
|
|
|
66
66
|
export class ExpansionBoard extends Board {
|
|
67
67
|
constructor() {
|
|
68
68
|
super();
|
|
69
|
+
this.bootloaderVersion = "";
|
|
69
70
|
this.closedLoop = null;
|
|
70
71
|
this.inductiveSensor = null;
|
|
72
|
+
this.interface = null;
|
|
71
73
|
this.state = BoardState.unknown;
|
|
72
74
|
this.timeout = 10;
|
|
73
75
|
ModelObject.wrapModelProperty(this, "closedLoop", BoardClosedLoop);
|
package/dist/documentation.json
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
"summary": "List of connected boards",
|
|
4
4
|
"remarks": "The first item represents the main board"
|
|
5
5
|
},
|
|
6
|
+
"boards[].bootloaderVersion": {
|
|
7
|
+
"summary": "Version of the bootloader or empty if unknown",
|
|
8
|
+
"remarks": "Boards report this only from firmware 3.7.1 on, main boards in expansion mode never report it"
|
|
9
|
+
},
|
|
6
10
|
"boards[].canAddress": "CAN address of this board or null if not applicable",
|
|
7
11
|
"boards[].closedLoop": "Closed loop data of this board or null if unknown",
|
|
8
12
|
"boards[].closedLoop.points": "Number of collected data points in the last run or 0 if it failed",
|
|
@@ -50,6 +54,10 @@
|
|
|
50
54
|
"boards[].iapFileNameSBC": "Filename of the IAP binary that is used for updates from the SBC or null if unsupported",
|
|
51
55
|
"boards[].iapFileNameSD": "Filename of the IAP binary that is used for updates from the SD card or null if unsupported",
|
|
52
56
|
"boards[].inductiveSensor": "Information about an inductive sensor or null if not present",
|
|
57
|
+
"boards[].interface": {
|
|
58
|
+
"summary": "Number of the CAN interface this board is connected to as printed on the main board, or null if it is not known",
|
|
59
|
+
"remarks": "This is null as long as the board address is in use on more than one CAN bus"
|
|
60
|
+
},
|
|
53
61
|
"boards[].maxHeaters": "Maximum number of heaters this board can control",
|
|
54
62
|
"boards[].maxMotors": {
|
|
55
63
|
"summary": "Maximum number of motors this board can drive",
|
|
@@ -386,7 +394,7 @@
|
|
|
386
394
|
"move.axes[].acceleration": "Acceleration of this axis (in mm/s^2)",
|
|
387
395
|
"move.axes[].babystep": "Babystep amount (in mm)",
|
|
388
396
|
"move.axes[].backlash": "Configured backlash of this axis (in mm)",
|
|
389
|
-
"move.axes[].current": "
|
|
397
|
+
"move.axes[].current": "Configured motor current (in mA) as set by M906. The actual current may be lower because the driver quantises it and caps it at its own maximum",
|
|
390
398
|
"move.axes[].drivers": "List of the assigned drivers",
|
|
391
399
|
"move.axes[].homed": "Whether or not the axis is homed",
|
|
392
400
|
"move.axes[].jerk": "Motor jerk (in mm/min)",
|
|
@@ -443,11 +451,19 @@
|
|
|
443
451
|
"move.axes[].min": "Minimum travel of this axis (in mm)",
|
|
444
452
|
"move.axes[].minProbed": "Whether the axis minimum was probed",
|
|
445
453
|
"move.axes[].percentCurrent": "Percentage applied to the motor current (0..100)",
|
|
446
|
-
"move.axes[].percentStstCurrent": "
|
|
454
|
+
"move.axes[].percentStstCurrent": "Configured percentage applied to the motor current during standstill as set by M917 (0..100 or null if not supported). The actual standstill current is subject to the same driver limits as the motor current",
|
|
447
455
|
"move.axes[].phaseStep": "Whether or not the axis is currently using phase stepping",
|
|
448
456
|
"move.axes[].printingJerk": "Motor jerk during the current print only (in mm/s)",
|
|
449
457
|
"move.axes[].reducedAcceleration": "Reduced accelerations used by Z probing and stall homing moves (in mm/s^2)",
|
|
450
458
|
"move.axes[].speed": "Maximum speed (in mm/min)",
|
|
459
|
+
"move.axes[].state": {
|
|
460
|
+
"summary": "State of the drivers of this axis",
|
|
461
|
+
"values": {
|
|
462
|
+
"disabled": "Drivers are disabled",
|
|
463
|
+
"idle": "Drivers are enabled at idle current",
|
|
464
|
+
"enabled": "Drivers are enabled"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
451
467
|
"move.axes[].stepPos": "Current step position of the axis (in steps)",
|
|
452
468
|
"move.axes[].stepsPerMm": "Number of microsteps per mm",
|
|
453
469
|
"move.axes[].userPosition": {
|
|
@@ -507,7 +523,7 @@
|
|
|
507
523
|
"move.currentMove.topSpeed": "Top speed of the current move (in mm/s)",
|
|
508
524
|
"move.extruders": "List of configured extruders",
|
|
509
525
|
"move.extruders[].acceleration": "Acceleration of this extruder (in mm/s^2)",
|
|
510
|
-
"move.extruders[].current": "
|
|
526
|
+
"move.extruders[].current": "Configured motor current (in mA) as set by M906. The actual current may be lower because the driver quantises it and caps it at its own maximum",
|
|
511
527
|
"move.extruders[].driver": "Assigned driver",
|
|
512
528
|
"move.extruders[].factor": "Extrusion factor to use (0..1 or greater)",
|
|
513
529
|
"move.extruders[].filament": "Name of the currently loaded filament",
|
|
@@ -521,7 +537,7 @@
|
|
|
521
537
|
"move.extruders[].nonlinear.b": "B coefficient in the extrusion formula",
|
|
522
538
|
"move.extruders[].nonlinear.upperLimit": "Upper limit of the nonlinear extrusion compensation",
|
|
523
539
|
"move.extruders[].percentCurrent": "Percentage applied to the motor current (0..100)",
|
|
524
|
-
"move.extruders[].percentStstCurrent": "
|
|
540
|
+
"move.extruders[].percentStstCurrent": "Configured percentage applied to the motor current during standstill as set by M917 (0..100 or null if not supported). The actual standstill current is subject to the same driver limits as the motor current",
|
|
525
541
|
"move.extruders[].phaseStep": "Whether or not the extruder is currently using phase stepping",
|
|
526
542
|
"move.extruders[].position": "Extruder position (in mm)",
|
|
527
543
|
"move.extruders[].pressAdv": "Pressure advance parameters (see M572)",
|
|
@@ -532,6 +548,14 @@
|
|
|
532
548
|
"move.extruders[].printingJerk": "Motor jerk during the current print only (in mm/s)",
|
|
533
549
|
"move.extruders[].rawPosition": "Raw extruder position as commanded by the slicer without extrusion factor applied (in mm)",
|
|
534
550
|
"move.extruders[].speed": "Maximum speed (in mm/min)",
|
|
551
|
+
"move.extruders[].state": {
|
|
552
|
+
"summary": "State of the drivers of this extruder",
|
|
553
|
+
"values": {
|
|
554
|
+
"disabled": "Drivers are disabled",
|
|
555
|
+
"idle": "Drivers are enabled at idle current",
|
|
556
|
+
"enabled": "Drivers are enabled"
|
|
557
|
+
}
|
|
558
|
+
},
|
|
535
559
|
"move.extruders[].stepsPerMm": "Number of microsteps per mm",
|
|
536
560
|
"move.idle": "Idle current reduction parameters",
|
|
537
561
|
"move.idle.factor": "Motor current reduction factor (0..1)",
|
|
@@ -1154,9 +1178,10 @@
|
|
|
1154
1178
|
"updating": "The firmware is being updated",
|
|
1155
1179
|
"off": "The machine is turned off (i.e. the input voltage is too low for operation)",
|
|
1156
1180
|
"halted": "The machine has encountered an emergency stop and is ready to reset",
|
|
1181
|
+
"held": "A feed hold has stopped all motion and keeps the queued moves until M24 releases it",
|
|
1157
1182
|
"pausing": "The machine is about to pause a file job",
|
|
1158
1183
|
"paused": "The machine has paused a file job",
|
|
1159
|
-
"resuming": "The machine is about to resume a paused file job",
|
|
1184
|
+
"resuming": "The machine is about to resume a paused file job or is moving back to the position where a feed hold stopped it",
|
|
1160
1185
|
"cancelling": "Job file is being cancelled",
|
|
1161
1186
|
"processing": "The machine is processing a file job",
|
|
1162
1187
|
"simulating": "The machine is simulating a file job to determine its processing time",
|
package/dist/enums.json
CHANGED
|
@@ -117,10 +117,20 @@
|
|
|
117
117
|
"y",
|
|
118
118
|
"z"
|
|
119
119
|
],
|
|
120
|
+
"move.axes[].state": [
|
|
121
|
+
"disabled",
|
|
122
|
+
"idle",
|
|
123
|
+
"enabled"
|
|
124
|
+
],
|
|
120
125
|
"move.compensation.type": [
|
|
121
126
|
"none",
|
|
122
127
|
"mesh"
|
|
123
128
|
],
|
|
129
|
+
"move.extruders[].state": [
|
|
130
|
+
"disabled",
|
|
131
|
+
"idle",
|
|
132
|
+
"enabled"
|
|
133
|
+
],
|
|
124
134
|
"move.kinematics.name": [
|
|
125
135
|
"cartesian",
|
|
126
136
|
"coreXY",
|
|
@@ -324,6 +334,7 @@
|
|
|
324
334
|
"updating",
|
|
325
335
|
"off",
|
|
326
336
|
"halted",
|
|
337
|
+
"held",
|
|
327
338
|
"pausing",
|
|
328
339
|
"paused",
|
|
329
340
|
"resuming",
|
package/dist/move/Axis.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
import ModelCollection from "../ModelCollection";
|
|
3
3
|
import DriverId from "./DriverId";
|
|
4
|
+
import DriverState from "./DriverState";
|
|
4
5
|
import Microstepping from "./Microstepping";
|
|
5
6
|
export declare enum AxisLetter {
|
|
6
7
|
X = "X",
|
|
@@ -62,6 +63,7 @@ export declare class Axis extends ModelObject {
|
|
|
62
63
|
printingJerk: number;
|
|
63
64
|
reducedAcceleration: number;
|
|
64
65
|
speed: number;
|
|
66
|
+
state: DriverState;
|
|
65
67
|
stepsPerMm: number;
|
|
66
68
|
stepPos: number;
|
|
67
69
|
userPosition: number | null;
|
package/dist/move/Axis.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
import ModelCollection from "../ModelCollection";
|
|
3
3
|
import DriverId from "./DriverId";
|
|
4
|
+
import DriverState from "./DriverState";
|
|
4
5
|
import Microstepping from "./Microstepping";
|
|
5
6
|
export var AxisLetter;
|
|
6
7
|
(function (AxisLetter) {
|
|
@@ -65,6 +66,7 @@ export class Axis extends ModelObject {
|
|
|
65
66
|
this.printingJerk = 15;
|
|
66
67
|
this.reducedAcceleration = 0;
|
|
67
68
|
this.speed = 100;
|
|
69
|
+
this.state = DriverState.disabled;
|
|
68
70
|
this.stepsPerMm = 80;
|
|
69
71
|
this.stepPos = 0;
|
|
70
72
|
this.userPosition = null;
|
package/dist/move/Extruder.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
import DriverId from "./DriverId";
|
|
3
|
+
import DriverState from "./DriverState";
|
|
3
4
|
import Microstepping from "./Microstepping";
|
|
4
5
|
export declare class ExtruderNonlinear extends ModelObject {
|
|
5
6
|
a: number;
|
|
@@ -34,6 +35,7 @@ export declare class Extruder extends ModelObject {
|
|
|
34
35
|
printingJerk: number;
|
|
35
36
|
rawPosition: number;
|
|
36
37
|
speed: number;
|
|
38
|
+
state: DriverState;
|
|
37
39
|
stepsPerMm: number;
|
|
38
40
|
}
|
|
39
41
|
export default Extruder;
|
package/dist/move/Extruder.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import ModelObject from "../ModelObject";
|
|
2
2
|
import DriverId from "./DriverId";
|
|
3
|
+
import DriverState from "./DriverState";
|
|
3
4
|
import Microstepping from "./Microstepping";
|
|
4
5
|
export class ExtruderNonlinear extends ModelObject {
|
|
5
6
|
constructor() {
|
|
@@ -41,6 +42,7 @@ export class Extruder extends ModelObject {
|
|
|
41
42
|
this.printingJerk = 15;
|
|
42
43
|
this.rawPosition = 0;
|
|
43
44
|
this.speed = 100;
|
|
45
|
+
this.state = DriverState.disabled;
|
|
44
46
|
this.stepsPerMm = 420;
|
|
45
47
|
ModelObject.wrapModelProperty(this, "driver", DriverId);
|
|
46
48
|
}
|
package/dist/move/index.d.ts
CHANGED
package/dist/move/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export var MachineStatus;
|
|
|
5
5
|
MachineStatus["updating"] = "updating";
|
|
6
6
|
MachineStatus["off"] = "off";
|
|
7
7
|
MachineStatus["halted"] = "halted";
|
|
8
|
+
MachineStatus["held"] = "held";
|
|
8
9
|
MachineStatus["pausing"] = "pausing";
|
|
9
10
|
MachineStatus["paused"] = "paused";
|
|
10
11
|
MachineStatus["resuming"] = "resuming";
|