@duet3d/objectmodel 3.7.1 → 3.7.2-alpha.1
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 +1 -0
- package/dist/boards/index.js +1 -0
- package/dist/documentation.json +26 -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
package/dist/boards/index.js
CHANGED
|
@@ -68,6 +68,7 @@ export class ExpansionBoard extends Board {
|
|
|
68
68
|
super();
|
|
69
69
|
this.closedLoop = null;
|
|
70
70
|
this.inductiveSensor = null;
|
|
71
|
+
this.interface = null;
|
|
71
72
|
this.state = BoardState.unknown;
|
|
72
73
|
this.timeout = 10;
|
|
73
74
|
ModelObject.wrapModelProperty(this, "closedLoop", BoardClosedLoop);
|
package/dist/documentation.json
CHANGED
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"boards[].iapFileNameSBC": "Filename of the IAP binary that is used for updates from the SBC or null if unsupported",
|
|
51
51
|
"boards[].iapFileNameSD": "Filename of the IAP binary that is used for updates from the SD card or null if unsupported",
|
|
52
52
|
"boards[].inductiveSensor": "Information about an inductive sensor or null if not present",
|
|
53
|
+
"boards[].interface": {
|
|
54
|
+
"summary": "Number of the CAN interface this board is connected to as printed on the main board, or null if it is not known",
|
|
55
|
+
"remarks": "This is null as long as the board address is in use on more than one CAN bus"
|
|
56
|
+
},
|
|
53
57
|
"boards[].maxHeaters": "Maximum number of heaters this board can control",
|
|
54
58
|
"boards[].maxMotors": {
|
|
55
59
|
"summary": "Maximum number of motors this board can drive",
|
|
@@ -386,7 +390,7 @@
|
|
|
386
390
|
"move.axes[].acceleration": "Acceleration of this axis (in mm/s^2)",
|
|
387
391
|
"move.axes[].babystep": "Babystep amount (in mm)",
|
|
388
392
|
"move.axes[].backlash": "Configured backlash of this axis (in mm)",
|
|
389
|
-
"move.axes[].current": "
|
|
393
|
+
"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
394
|
"move.axes[].drivers": "List of the assigned drivers",
|
|
391
395
|
"move.axes[].homed": "Whether or not the axis is homed",
|
|
392
396
|
"move.axes[].jerk": "Motor jerk (in mm/min)",
|
|
@@ -443,11 +447,19 @@
|
|
|
443
447
|
"move.axes[].min": "Minimum travel of this axis (in mm)",
|
|
444
448
|
"move.axes[].minProbed": "Whether the axis minimum was probed",
|
|
445
449
|
"move.axes[].percentCurrent": "Percentage applied to the motor current (0..100)",
|
|
446
|
-
"move.axes[].percentStstCurrent": "
|
|
450
|
+
"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
451
|
"move.axes[].phaseStep": "Whether or not the axis is currently using phase stepping",
|
|
448
452
|
"move.axes[].printingJerk": "Motor jerk during the current print only (in mm/s)",
|
|
449
453
|
"move.axes[].reducedAcceleration": "Reduced accelerations used by Z probing and stall homing moves (in mm/s^2)",
|
|
450
454
|
"move.axes[].speed": "Maximum speed (in mm/min)",
|
|
455
|
+
"move.axes[].state": {
|
|
456
|
+
"summary": "State of the drivers of this axis",
|
|
457
|
+
"values": {
|
|
458
|
+
"disabled": "Drivers are disabled",
|
|
459
|
+
"idle": "Drivers are enabled at idle current",
|
|
460
|
+
"enabled": "Drivers are enabled"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
451
463
|
"move.axes[].stepPos": "Current step position of the axis (in steps)",
|
|
452
464
|
"move.axes[].stepsPerMm": "Number of microsteps per mm",
|
|
453
465
|
"move.axes[].userPosition": {
|
|
@@ -507,7 +519,7 @@
|
|
|
507
519
|
"move.currentMove.topSpeed": "Top speed of the current move (in mm/s)",
|
|
508
520
|
"move.extruders": "List of configured extruders",
|
|
509
521
|
"move.extruders[].acceleration": "Acceleration of this extruder (in mm/s^2)",
|
|
510
|
-
"move.extruders[].current": "
|
|
522
|
+
"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
523
|
"move.extruders[].driver": "Assigned driver",
|
|
512
524
|
"move.extruders[].factor": "Extrusion factor to use (0..1 or greater)",
|
|
513
525
|
"move.extruders[].filament": "Name of the currently loaded filament",
|
|
@@ -521,7 +533,7 @@
|
|
|
521
533
|
"move.extruders[].nonlinear.b": "B coefficient in the extrusion formula",
|
|
522
534
|
"move.extruders[].nonlinear.upperLimit": "Upper limit of the nonlinear extrusion compensation",
|
|
523
535
|
"move.extruders[].percentCurrent": "Percentage applied to the motor current (0..100)",
|
|
524
|
-
"move.extruders[].percentStstCurrent": "
|
|
536
|
+
"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
537
|
"move.extruders[].phaseStep": "Whether or not the extruder is currently using phase stepping",
|
|
526
538
|
"move.extruders[].position": "Extruder position (in mm)",
|
|
527
539
|
"move.extruders[].pressAdv": "Pressure advance parameters (see M572)",
|
|
@@ -532,6 +544,14 @@
|
|
|
532
544
|
"move.extruders[].printingJerk": "Motor jerk during the current print only (in mm/s)",
|
|
533
545
|
"move.extruders[].rawPosition": "Raw extruder position as commanded by the slicer without extrusion factor applied (in mm)",
|
|
534
546
|
"move.extruders[].speed": "Maximum speed (in mm/min)",
|
|
547
|
+
"move.extruders[].state": {
|
|
548
|
+
"summary": "State of the drivers of this extruder",
|
|
549
|
+
"values": {
|
|
550
|
+
"disabled": "Drivers are disabled",
|
|
551
|
+
"idle": "Drivers are enabled at idle current",
|
|
552
|
+
"enabled": "Drivers are enabled"
|
|
553
|
+
}
|
|
554
|
+
},
|
|
535
555
|
"move.extruders[].stepsPerMm": "Number of microsteps per mm",
|
|
536
556
|
"move.idle": "Idle current reduction parameters",
|
|
537
557
|
"move.idle.factor": "Motor current reduction factor (0..1)",
|
|
@@ -1154,9 +1174,10 @@
|
|
|
1154
1174
|
"updating": "The firmware is being updated",
|
|
1155
1175
|
"off": "The machine is turned off (i.e. the input voltage is too low for operation)",
|
|
1156
1176
|
"halted": "The machine has encountered an emergency stop and is ready to reset",
|
|
1177
|
+
"held": "A feed hold has stopped all motion and keeps the queued moves until M24 releases it",
|
|
1157
1178
|
"pausing": "The machine is about to pause a file job",
|
|
1158
1179
|
"paused": "The machine has paused a file job",
|
|
1159
|
-
"resuming": "The machine is about to resume a paused file job",
|
|
1180
|
+
"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
1181
|
"cancelling": "Job file is being cancelled",
|
|
1161
1182
|
"processing": "The machine is processing a file job",
|
|
1162
1183
|
"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";
|