-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGCodeWriter.cs
More file actions
1180 lines (889 loc) · 58.7 KB
/
GCodeWriter.cs
File metadata and controls
1180 lines (889 loc) · 58.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2022 Ben Voß
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
// (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
// subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
namespace ImpulseRocketry.GCode;
public sealed class GCodeWriter {
private bool _startOfLine = true;
private readonly TextWriter _writer;
public GCodeWriter (TextWriter writer) {
_writer = writer;
}
public GCodeWriter LinearMove(double? f = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(0).Param("F", f).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter LinearMoveAndExtrude(double? e = null, double? f = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(1).Param("E", e).Param("F", f).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter ArcMoveClockwise(double? e = null, double? f = null, double? i = null, double? j = null, double? p = null, double? r = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(2).Param("E", e).Param("F", f).Param("I", i).Param("J", j).Param("P", p).Param("R", r).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter ArcMoveCounterClockwise(double? e = null, double? f = null, double? i = null, double? j = null, double? p = null, double? r = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(3).Param("E", e).Param("F", f).Param("I", i).Param("J", j).Param("P", p).Param("R", r).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter Dwell(double? p = null, double? s = null, string? comment = null) {
return GCommand(4).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter BezierCubicSpline(double? e = null, double? f = null, double? i = null, double? j = null, double? p = null, double? q = null, double? s = null, double? x = null, double? y = null, string? comment = null) {
return GCommand(5).Param("E", e).Param("F", f).Param("I", i).Param("J", j).Param("P", p).Param("Q", q).Param("S", s).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter DirectStepperMove(double? e = null, double? i = null, double? r = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(6).Param("E", e).Param("I", i).Param("R", r).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter Retract(double? s = null, string? comment = null) {
return GCommand(10).Param("S", s).Comment(comment);
}
public GCodeWriter Recover(string? comment = null) {
return GCommand(11).Comment(comment);
}
public GCodeWriter CleanTheNozzle(int? p = null, double? r = null, int? s = null, int? t = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(12).Param("P", p).Param("R", r).Param("S", s).Param("S", s).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter CncWorkspacePlaneXY(string? comment = null) {
return GCommand(17).Comment(comment);
}
public GCodeWriter CncWorkspacePlaneZX(string? comment = null) {
return GCommand(18).Comment(comment);
}
public GCodeWriter CncWorkspacePlaneYZ(string? comment = null) {
return GCommand(19).Comment(comment);
}
public GCodeWriter InchUnits(string? comment = null) {
return GCommand(20).Comment(comment);
}
public GCodeWriter MillimeterUnits(string? comment = null) {
return GCommand(21).Comment(comment);
}
public GCodeWriter MeshValidationPattern(double? b = null, bool? c = null, bool? d = null, double? f = null, double? h = null, int? i = null, double? k = null, double? l = null, double? o = null, double? p = null, double? q = null, int? r = null, double? s = null, double? u = null, double? x = null, double? y = null, string? comment = null) {
return GCommand(26).Param("B", b).Param("C", c).Flag("D", d).Param("F", f).Param("H", h).Param("I", i).Param("K", k).Param("L", l).Param("O", o).Param("P", p).Param("Q", q).Param("R", r).Param("S", s).Param("U", u).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter ParkToolhead(int? p = null, string? comment = null) {
return GCommand(27).Param("P", p).Comment(comment);
}
public GCodeWriter AutoHome(bool? l = null, bool? o = null, bool? r = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return GCommand(28).Flag("L", l).Flag("O", o).Flag("R", r).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter BedLeveling(string? comment = null) {
return GCommand(29).Comment(comment);
}
public GCodeWriter BedLeveling3Point(bool? a = null, bool? c = null, bool? d = null, bool? e = null, bool? j = null, bool? o = null, bool? q = null, int? v = null, string? comment = null) {
return GCommand(29).Param("A", a).Param("C", c).Param("D", d).Param("E", e).Param("J", j).Flag("O", o).Param("Q", q).Param("V", v).Comment(comment);
}
public GCodeWriter BedLevelingLinear(bool? a = null, double? b = null, bool? c = null, bool? d = null, double? f = null, double? h = null, bool? j = null, double? l = null, bool? o = null, int? p = null, bool? q = null, double? r = null, double? s = null, bool? t = null, int? v = null, int? x = null, int? y = null, string? comment = null) {
return GCommand(29).Param("A", a).Param("B", b).Param("C", c).Param("D", d).Param("F", f).Param("H", h).Param("J", j).Param("L", l).Flag("O", o).Param("P", p).Param("Q", q).Param("R", r).Param("S", s).Param("T", t).Param("V", v).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter BedLevelingManual(bool? i = null, bool? j = null, int? s = null, int? x = null, int? y = null, double? z = null, string? comment = null) {
return GCommand(29).Param("I", i).Param("J", j).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter BedLevelingBilinear(bool? a = null, double? b = null, bool? c = null, bool? d = null, bool? e = null, double? f = null, double? h = null, bool? j = null, double? l = null, bool? o = null, bool? q = null, double? r = null, double? s = null, int? v = null, bool? w = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(29).Param("A", a).Param("B", b).Param("C", c).Param("D", d).Param("E", e).Param("F", f).Param("H", h).Param("J", j).Param("L", l).Flag("O", o).Param("Q", q).Param("R", r).Param("S", s).Param("V", v).Param("W", w).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter BedLevelingUnified() {
throw new NotImplementedException();
}
public GCodeWriter SingleZProbe(bool? c = null, bool? e = null, double? x = null, double? y = null, string? comment = null) {
return GCommand(30).Flag("C", c).Flag("E", e).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter DockSled(string? comment = null) {
return GCommand(31).Comment(comment);
}
public GCodeWriter UndockSled(string? comment = null) {
return GCommand(32).Comment(comment);
}
public GCodeWriter DeltaAutoCalibration(double? c = null, bool? e = null, int? f = null, bool? o = null, int? p = null, double? r = null, bool? t = null, int? v = null, string? comment = null) {
return GCommand(33).Param("C", c).Param("E", e).Param("F", f).Param("O", o).Param("P", p).Param("R", r).Param("T", t).Param("V", v).Comment(comment);
}
public GCodeWriter ZSteppersAutoAlignment(bool? a = null, bool? e = null, bool? i = null, bool? t = null, string? comment = null) {
return GCommand(34).Flag("A", a).Flag("E", e).Flag("I", i).Flag("T", t).Comment(comment);
}
public GCodeWriter MechanicalGantryCalibration(double? s = null, double? z = null, string? comment = null) {
return GCommand(34).Param("S", s).Param("Z", z).Comment(comment);
}
public GCodeWriter TrammingAssistant(int? s = null, string? comment = null) {
return GCommand(35).Param("S", s).Comment(comment);
}
public GCodeWriter ProbeTarget(int subCommand, double? f = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(38).SubCommand(subCommand).Param("F", f).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter MoveToMeshCoordinate(double? f = null, int? i = null, int? j = null, string? comment = null) {
return GCommand(42).Param("F", f).Param("I", i).Param("J", j).Comment(comment);
}
public GCodeWriter WithMoveInMachineCoordinates() {
return GCommand(53).Write(" ");
}
public GCodeWriter MoveInMachineCoordinates(string? comment = null) {
return GCommand(53).Comment(comment);
}
public GCodeWriter WorkspaceCoordinateSystem(int coordinteSystem, string? comment = null) {
if (coordinteSystem >= 1 && coordinteSystem <= 6) {
return GCommand(53 + coordinteSystem).Comment(comment);
}
return GCommand(59).SubCommand(coordinteSystem - 6).Comment(comment);
}
public GCodeWriter SaveCurrentPosition(string? comment = null) {
return GCommand(60).Comment(comment);
}
public GCodeWriter ReturnToSavedPosition(bool? e = null, double? f = null, int? s = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return GCommand(61).Flag("E", e).Param("F", f).Param("S", s).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter ProbeTemperatureCalibration(bool? b = null, bool? p = null, string? comment = null) {
return GCommand(76).Flag("B", b).Param("P", p).Comment(comment);
}
public GCodeWriter CancelCurrentMotionMode(string? comment = null) {
return GCommand(80).Comment(comment);
}
public GCodeWriter AbsolutePositioning(string? comment = null) {
return GCommand(90).Comment(comment);
}
public GCodeWriter RelativePositioning(string? comment = null) {
return GCommand(91).Comment(comment);
}
public GCodeWriter SetPosition(double? e = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return GCommand(92).Param("E", e).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter BacklashCalibration(bool? b = null, double? t = null, double? u = null, bool? v = null, string? comment = null) {
return GCommand(92).Flag("B", b).Param("T", t).Param("U", u).Flag("V", v).Comment(comment);
}
public GCodeWriter UnconditionalStop(double? p = null, double? s = null, string? message = null, string? comment = null) {
return MCommand(0).Param("P", p).Param("S", s).Param(message).Comment(comment);
}
public GCodeWriter SpindleCwOrLaserOn(int? i = null, double? o = null, double? s = null, string? comment = null) {
return MCommand(3).Param("I", i).Param("O", o).Param("S", s).Comment(comment);
}
public GCodeWriter SpindleCcwOrLaserOn(int? i = null, double? o = null, double? s = null, string? comment = null) {
return MCommand(4).Param("I", i).Param("O", o).Param("S", s).Comment(comment);
}
public GCodeWriter SpindleOrLaserOff(string? comment = null) {
return MCommand(5).Comment(comment);
}
public GCodeWriter CoolantMistOn(string? comment = null) {
return MCommand(7).Comment(comment);
}
public GCodeWriter CoolantSpindleFloodOrLaserAirOn(string? comment = null) {
return MCommand(8).Comment(comment);
}
public GCodeWriter CoolantOff(string? comment = null) {
return MCommand(9).Comment(comment);
}
public GCodeWriter VacuumBlowerOn(string? comment = null) {
return MCommand(10).Comment(comment);
}
public GCodeWriter VacuumBlowerOff(string? comment = null) {
return MCommand(11).Comment(comment);
}
public GCodeWriter ExpectedPrinterCheck(string machineName, string? comment = null) {
return MCommand(16).Param(machineName).Comment(comment);
}
public GCodeWriter EnableSteppers(bool? e = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return MCommand(17).Flag("E", e).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter DisableSteppers(bool? e = null, double? s = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return MCommand(18).Flag("E", e).Param("S", s).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter ListSdCard(bool? l = null, string? comment = null) {
return MCommand(20).Flag("L", l).Comment(comment);
}
public GCodeWriter InitSdCard(string? comment = null) {
return MCommand(21).Comment(comment);
}
public GCodeWriter ReleaseSdCard(string? comment = null) {
return MCommand(22).Comment(comment);
}
public GCodeWriter SelectSdCard(string filename, string? comment = null) {
return MCommand(23).Param(filename).Comment(comment);
}
public GCodeWriter StartOrResumeSdPrint(double? s = null, double? t = null, string? comment = null) {
return MCommand(24).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter PauseSdPrint(string? comment = null) {
return MCommand(25).Comment(comment);
}
public GCodeWriter SetSdPositionPrint(double? s = null, string? comment = null) {
return MCommand(26).Param("S", s).Comment(comment);
}
public GCodeWriter ReportSdPrintStatus(bool? c = null, double? s = null, string? comment = null) {
return MCommand(27).Flag("C", c).Param("S", s).Comment(comment);
}
public GCodeWriter StartSdWrite(string filename, bool? b1 = null, string? comment = null) {
return MCommand(28).Flag("B1", b1).Param(filename).Comment(comment);
}
public GCodeWriter StopSdWrite(string? comment = null) {
return MCommand(29).Comment(comment);
}
public GCodeWriter DeleteSdFile(string filename, string? comment = null) {
return MCommand(30).Param(filename).Comment(comment);
}
public GCodeWriter PrintTime(string? comment = null) {
return MCommand(31).Comment(comment);
}
public GCodeWriter SelectAndStart(string filename, bool? p = null, int? s = null, string? comment = null) {
return MCommand(32).Param("P", p).Param("S", s).Param(filename).Comment(comment);
}
public GCodeWriter GetLondPath(string filename, string? comment = null) {
return MCommand(33).Param(filename).Comment(comment);
}
public GCodeWriter SdCardSorting(int? f = null, bool? s = null, string? comment = null) {
return MCommand(34).Param("F", f).Param("S", s).Comment(comment);
}
public GCodeWriter SetPinState(bool? i = null, int? p = null, int? s = null, int? t = null, string? comment = null) {
return MCommand(42).Param("I", i).Param("P", p).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter DebugPins(bool? e = null, bool? i = null, int? p = null, bool? s = null, bool? t = null, bool? w = null, string? comment = null) {
return MCommand(42).Param("E", e).Flag("I", i).Param("P", p).Flag("S", s).Flag("T", t).Flag("W", w).Comment(comment);
}
public GCodeWriter TogglePins(bool? i = null, int? l = null, int? r = null, bool? s = null, int? w = null, string? comment = null) {
return MCommand(43).Param("I", i).Param("L", l).Param("R", r).Param("S", s).Param("W", w).Comment(comment);
}
public GCodeWriter ProbeRepeatabilityTest(bool? c = null, int? e = null, int? l = null, int? p = null, int? s = null, int? v = null, double? x = null, double? y = null, string? comment = null) {
return MCommand(48).Param("C", c).Param("E", e).Param("L", l).Param("P", p).Param("S", s).Param("V", v).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter SetPrintProgress(double? p = null, double? r = null, string? comment = null) {
return MCommand(73).Param("P", p).Param("R", r).Comment(comment);
}
public GCodeWriter StartPrintJobTimer(string? message = null, string? comment = null) {
return MCommand(75).Param(message).Comment(comment);
}
public GCodeWriter PausePrintJob(string? comment = null) {
return MCommand(76).Comment(comment);
}
public GCodeWriter StopPrintJobTimer(string? comment = null) {
return MCommand(77).Comment(comment);
}
public GCodeWriter PrintJobStats(string? comment = null) {
return MCommand(78).Comment(comment);
}
public GCodeWriter PowerOn(bool? s = null, string? comment = null) {
return MCommand(80).Flag("S", s).Comment(comment);
}
public GCodeWriter PowerOff(string? comment = null) {
return MCommand(81).Comment(comment);
}
public GCodeWriter AbsoluteExtrusionMode(string? comment = null) {
return MCommand(82).Comment(comment);
}
public GCodeWriter RelativeExtrusionMode(string? comment = null) {
return MCommand(83).Comment(comment);
}
public GCodeWriter InactivityShutdown(int? s = null, string? comment = null) {
return MCommand(85).Param("S", s).Comment(comment);
}
public GCodeWriter SetAxisStepsPerUnit(int? e = null, int? t = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(85).Param("E", e).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter FreeMemory(int? c = null, bool? d = null, bool? f = null, bool? i = null, string? comment = null) {
return MCommand(85).Param("C", c).Flag("D", d).Flag("F", f).Flag("I", i).Comment(comment);
}
public GCodeWriter SetHotendTemperature(double? b = null, bool? f = null, int? i = null, double? s = null, int? t = null, string? comment = null) {
return MCommand(104).Param("B", b).Flag("F", f).Param("I", i).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter ReportTemperatures(bool? r = null, int? i = null, string? comment = null) {
return MCommand(105).Flag("R", r).Param("I", i).Comment(comment);
}
public GCodeWriter SetFanSpeed(int? i = null, int? p = null, int? s = null, int? t = null, string? comment = null) {
return MCommand(106).Param("I", i).Param("P", p).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter FanOff(string? comment = null) {
return MCommand(107).Comment(comment);
}
public GCodeWriter BreakAndContinue(string? comment = null) {
return MCommand(108).Comment(comment);
}
public GCodeWriter WaitForHotendTemperature(int? b = null, bool? f = null, int? i = null, int? r = null, double? s = null, int? t = null, string? comment = null) {
return MCommand(109).Param("B", b).Param("F", f).Param("I", i).Param("R", r).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter SetLineNumber(int n, string? comment = null) {
return MCommand(110).Param("N", n).Comment(comment);
}
public GCodeWriter DebugLevel(int? s = null, string? comment = null) {
return MCommand(111).Param("S", s).Comment(comment);
}
public GCodeWriter EmergencyStop(string? comment = null) {
return MCommand(112).Comment(comment);
}
public GCodeWriter HostKeepAlive(int? s = null, string? comment = null) {
return MCommand(113).Param("S", s).Comment(comment);
}
public GCodeWriter GetCurrentPosition(bool? d = null, bool? e = null, bool? r = null, string? comment = null) {
return MCommand(114).Flag("D", d).Flag("E", e).Flag("R", r).Comment(comment);
}
public GCodeWriter FirmwareInfo(string? comment = null) {
return MCommand(115).Comment(comment);
}
public GCodeWriter SetLcdMessage(string? message = null, string? comment = null) {
return MCommand(117).Param(message).Comment(comment);
}
public GCodeWriter SerialPrint(bool? a1 = null, bool? e1 = null, int? pn = null, string? message = null, string? comment = null) {
return MCommand(118).Flag("A1", a1).Flag("E1", e1).Param("Pn", pn).Param(message).Comment(comment);
}
public GCodeWriter EndstopStates(string? comment = null) {
return MCommand(119).Comment(comment);
}
public GCodeWriter EnableEndstops(string? comment = null) {
return MCommand(120).Comment(comment);
}
public GCodeWriter DisableEndstops(string? comment = null) {
return MCommand(121).Comment(comment);
}
public GCodeWriter TmcDebugging(bool? e = null, bool? i = null, int? p = null, bool? s = null, bool? v = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return MCommand(122).Flag("E", e).Flag("I", i).Param("P", p).Flag("S", s).Flag("V", v).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter FanTachometers(string? comment = null) {
return MCommand(123).Comment(comment);
}
public GCodeWriter ParkHead(double? l = null, bool? p = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(125).Param("L", l).Param("P", p).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter Baricuda1Open(double? s = null, string? comment = null) {
return MCommand(126).Param("S", s).Comment(comment);
}
public GCodeWriter Baricuda1Close(string? comment = null) {
return MCommand(127).Comment(comment);
}
public GCodeWriter Baricuda2Open(double? s = null, string? comment = null) {
return MCommand(128).Param("S", s).Comment(comment);
}
public GCodeWriter Baricuda2Close(string? comment = null) {
return MCommand(129).Comment(comment);
}
public GCodeWriter SetBedTemperature(int? i = null, double? s = null, string? comment = null) {
return MCommand(140).Param("I", i).Param("S", s).Comment(comment);
}
public GCodeWriter SetChamberTemperature(double? s = null, string? comment = null) {
return MCommand(141).Param("S", s).Comment(comment);
}
public GCodeWriter SetLaserCoolerTemperature(double? s = null, string? comment = null) {
return MCommand(143).Param("S", s).Comment(comment);
}
public GCodeWriter SetMaterialPreset(double? b = null, double? f = null, double? h = null, int? s = null, string? comment = null) {
return MCommand(145).Param("B", b).Param("F", f).Param("H", h).Param("S", s).Comment(comment);
}
public GCodeWriter SetTemperatureUnits(bool? c = null, bool? f = null, bool? k = null, string? comment = null) {
return MCommand(149).Flag("C", c).Flag("F", f).Flag("K", k).Comment(comment);
}
public GCodeWriter SetRgbwColor(int? b = null, int? i = null, int? p = null, int? r = null, int? s = null, int? u = null, int? w = null, string? comment = null) {
return MCommand(150).Param("B", b).Param("I", i).Param("P", p).Param("R", r).Param("S", s).Param("U", u).Param("W", w).Comment(comment);
}
public GCodeWriter PositionAutoReport(double? s = null, string? comment = null) {
return MCommand(154).Param("S", s).Comment(comment);
}
public GCodeWriter TemperatureAutoReport(double? s = null, string? comment = null) {
return MCommand(155).Param("S", s).Comment(comment);
}
public GCodeWriter SetMixFactor(double? p = null, int? s = null, string? comment = null) {
return MCommand(163).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter SaveMix(int? s = null, string? comment = null) {
return MCommand(164).Param("S", s).Comment(comment);
}
public GCodeWriter SetMix(double? a = null, double? b = null, double? c = null, double? d = null, double? h = null, int? i = null, string? comment = null) {
return MCommand(165).Param("A", a).Param("B", b).Param("C", c).Param("D", d).Param("H", h).Param("I", i).Comment(comment);
}
public GCodeWriter GradientMix(double? a = null, int? i = null, int? j = null, bool? s = null, int? t = null, double? z = null, string? comment = null) {
return MCommand(166).Param("A", a).Param("I", i).Param("J", j).Param("S", s).Param("T", t).Param("Z", z).Comment(comment);
}
public GCodeWriter WaitForBedTemperature(int? i = null, double? r = null, double? s = null, string? comment = null) {
return MCommand(190).Param("I", i).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter WaitForChamberTemperature(double? r = null, double? s = null, string? comment = null) {
return MCommand(191).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter WaitForProbeTemperature(double? r = null, double? s = null, string? comment = null) {
return MCommand(192).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter WaitForLaserCoolerTemperature(double? s = null, string? comment = null) {
return MCommand(193).Param("S", s).Comment(comment);
}
public GCodeWriter SetFilamentDiameter(double? d = null, double? l = null, bool? s = null, int? t = null, string? comment = null) {
return MCommand(200).Param("D", d).Param("L", l).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter PrintMoveLimits(double? e = null, double? f = null, double? s = null, int? t = null, double? y = null, double? x = null, double? z = null, string? comment = null) {
return MCommand(201).Param("E", e).Param("F", f).Param("S", s).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetMaxFeedRate(double? e = null, int? t = null, double? y = null, double? x = null, double? z = null, string? comment = null) {
return MCommand(203).Param("E", e).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetStartingAcceleration(double? p = null, double? r = null, double? s = null, double? t = null, string? comment = null) {
return MCommand(204).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter SetAdvancedSettings(double? b = null, double? e = null, double? j = null, double? s = null, double? t = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(205).Param("B", b).Param("E", e).Param("J", j).Param("S", s).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetHomeOffsets(double? p = null, double? t = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(206).Param("P", p).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetFirmwareRetraction(double? f = null, double? s = null, double? w = null, double? z = null, string? comment = null) {
return MCommand(207).Param("F", f).Param("S", s).Param("W", w).Param("Z", z).Comment(comment);
}
public GCodeWriter SetFirmwareRecover(double? f = null, double? r = null, double? s = null, double? w = null, string? comment = null) {
return MCommand(208).Param("F", f).Param("R", r).Param("S", s).Param("W", w).Comment(comment);
}
public GCodeWriter SetAutoRetract(bool? s = null, string? comment = null) {
return MCommand(209).Param("S", s).Comment(comment);
}
public GCodeWriter SetSoftwareEndstops(bool? s = null, string? comment = null) {
return MCommand(211).Param("S", s).Comment(comment);
}
public GCodeWriter FilamentSwapParameters(double? a = null, double? b = null, double? e = null, double? f = null, double? g = null, double? l = null, double? p = null, bool? q = null, double? r = null, double? s = null, double? u = null, double? v = null, double? w = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(217).Param("A", a).Param("B", b).Param("E", e).Param("F", f).Param("G", g).Param("L", l).Param("P", p).Flag("Q", q).Param("R", r).Param("S", s).Param("U", u).Param("V", v).Param("W", w).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetHotendOffset(int? t = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(218).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetFeedratePercentage(bool? b = null, bool? r = null, double? s = null, string? comment = null) {
return MCommand(220).Param("B", b).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter SetFeedratePercentage(double? s = null, int? t = null, string? comment = null) {
return MCommand(221).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter WaitForPinState(int? p = null, int? s = null, string? comment = null) {
return MCommand(226).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter TriggerCamera(double? a = null, double? b = null, double? d = null, double? f = null, double? i = null, double? j = null, double? p = null, double? r = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(240).Param("A", a).Param("B", b).Param("D", d).Param("F", f).Param("I", i).Param("J", j).Param("P", p).Param("R", r).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter LcdContrast(double? c = null, string? comment = null) {
return MCommand(250).Param("C", c).Comment(comment);
}
public GCodeWriter LcdBrightness(double? b = null, string? comment = null) {
return MCommand(256).Param("B", b).Comment(comment);
}
public GCodeWriter I2cSend(int? a = null, byte? b = null, bool? r = null, bool? s = null, string? comment = null) {
return MCommand(260).Param("A", a).Param("B", b).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter I2cRequest(int? a = null, int? b = null, int? s = null, string? comment = null) {
return MCommand(261).Param("A", a).Param("B", b).Param("S", s).Comment(comment);
}
public GCodeWriter ServoPosition(int? p = null, int? s = null, string? comment = null) {
return MCommand(280).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter EditServoAngles(double? l = null, int? p = null, double? u = null, string? comment = null) {
return MCommand(281).Param("L", l).Param("P", p).Param("U", u).Comment(comment);
}
public GCodeWriter DetachServo(int? p = null, string? comment = null) {
return MCommand(281).Param("P", p).Comment(comment);
}
public GCodeWriter BabyStep(bool? p = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(290).Param("P", p).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter PlayTone(double? p = null, double? s = null, string? comment = null) {
return MCommand(300).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter SetHotendPid(double? c = null, double? d = null, double? e = null, double? f = null, int? i = null, double? l = null, double? p = null, string? comment = null) {
return MCommand(301).Param("C", c).Param("D", d).Param("E", e).Param("F", f).Param("I", i).Param("L", l).Param("P", p).Comment(comment);
}
public GCodeWriter ColdExtrude(bool? p = null, double? s = null, string? comment = null) {
return MCommand(302).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter PidAutotune(int? c = null, int? d = null, int? e = null, double? s = null, bool? u = null, string? comment = null) {
return MCommand(303).Param("C", c).Param("D", d).Param("E", e).Param("S", s).Param("U", u).Comment(comment);
}
public GCodeWriter SetBedPid(double? d = null, int? i = null, double? p = null, string? comment = null) {
return MCommand(304).Param("D", d).Param("I", i).Param("P", p).Comment(comment);
}
public GCodeWriter UserThermistorParameters(double? b = null, double? c = null, int? p = null, double? r = null, double? t = null, string? comment = null) {
return MCommand(305).Param("B", b).Param("C", c).Param("P", p).Param("R", r).Param("T", t).Comment(comment);
}
public GCodeWriter ModelPredictiveTemperatureControl(double? a = null, double? c = null, int? e = null, double? f = null, double? h = null, double? p = null, double? r = null, bool? t = null, string? comment = null) {
return MCommand(306).Param("A", a).Param("C", c).Param("E", e).Param("F", f).Param("H", h).Param("P", p).Param("R", r).Flag("T", t).Comment(comment);
}
public GCodeWriter SetMicroStepping(int? b = null, int? e = null, int? s = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(350).Param("B", b).Param("E", e).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetMicrostepPins(int? b = null, int? e = null, int? s = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(351).Param("B", b).Param("E", e).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter CaseLightControl(byte? p = null, bool? s = null, string? comment = null) {
return MCommand(355).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter ScaraThetaA(string? comment = null) {
return MCommand(360).Comment(comment);
}
public GCodeWriter ScaraThetaB(string? comment = null) {
return MCommand(361).Comment(comment);
}
public GCodeWriter ScaraPsiA(string? comment = null) {
return MCommand(362).Comment(comment);
}
public GCodeWriter ScaraPsiB(string? comment = null) {
return MCommand(363).Comment(comment);
}
public GCodeWriter ScaraPsiC(string? comment = null) {
return MCommand(364).Comment(comment);
}
public GCodeWriter ActivateSolenoid(int? s = null, string? comment = null) {
return MCommand(380).Param("S", s).Comment(comment);
}
public GCodeWriter DeactivateSolenoid(int? s = null, string? comment = null) {
return MCommand(381).Param("S", s).Comment(comment);
}
public GCodeWriter FinishMoves(string? comment = null) {
return MCommand(400).Comment(comment);
}
public GCodeWriter StowProbe(string? comment = null) {
return MCommand(402).Comment(comment);
}
public GCodeWriter Mmu2FilamentType(int? e = null, int? f = null, string? comment = null) {
return MCommand(403).Param("E", e).Param("F", f).Comment(comment);
}
public GCodeWriter SetFilamentDiameter(double? w = null, string? comment = null) {
return MCommand(404).Param("W", w).Comment(comment);
}
public GCodeWriter SetFilamentWidthSensorOn(double? d = null, string? comment = null) {
return MCommand(405).Param("D", d).Comment(comment);
}
public GCodeWriter SetFilamentWidthSensorOff(string? comment = null) {
return MCommand(406).Comment(comment);
}
public GCodeWriter FilamentWidth(string? comment = null) {
return MCommand(407).Comment(comment);
}
public GCodeWriter Quickstop(string? comment = null) {
return MCommand(410).Comment(comment);
}
public GCodeWriter FilamentRunout(double? d = null, bool? h = null, bool? r = null, bool? s = null, string? comment = null) {
return MCommand(412).Param("D", d).Param("H", h).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter PowerLossRecovery(bool? s = null, string? comment = null) {
return MCommand(413).Param("S", s).Comment(comment);
}
public GCodeWriter BedLevellingState(bool? c = null, int? l = null, bool? s = null, int? t = null, bool? v = null, double? z = null, string? comment = null) {
return MCommand(420).Param("C", c).Param("L", l).Param("S", s).Param("T", t).Param("V", v).Param("Z", z).Comment(comment);
}
public GCodeWriter SetMeshValue(bool? c = null, int? i = null, int? j = null, bool? n = null, double? q = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(421).Param("C", c).Param("I", i).Param("J", j).Param("N", n).Param("Q", q).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter XTwistCompensation(double? a = null, double? i = null, bool? r = null, int? x = null, int? z = null, string? comment = null) {
return MCommand(423).Param("A", a).Param("I", i).Flag("R", r).Param("X", x).Param("Z", z).Comment(comment);
}
public GCodeWriter BacklashCompensation(double? f = null, double? s = null, double? x = null, double? y = null, double? z =null, bool? z2 = null, string? comment = null) {
return MCommand(425).Param("F", f).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Flag("Z", z2).Comment(comment);
}
public GCodeWriter HomeOffsetsHere(string? comment = null) {
return MCommand(428).Comment(comment);
}
public GCodeWriter PowerMonitor(bool? i = null, bool? v = null, bool? w = null, string? comment = null) {
return MCommand(430).Param("I", i).Param("V", v).Param("W", w).Comment(comment);
}
public GCodeWriter CancelObjects(bool? c = null, int? p = null, int? s = null, int? t = null, int? u = null, string? comment = null) {
return MCommand(486).Param("C", c).Param("P", p).Param("S", s).Param("T", t).Param("U", u).Comment(comment);
}
public GCodeWriter SaveSettings(string? comment = null) {
return MCommand(500).Comment(comment);
}
public GCodeWriter RestoreSettings(string? comment = null) {
return MCommand(501).Comment(comment);
}
public GCodeWriter FactoryReset(string? comment = null) {
return MCommand(502).Comment(comment);
}
public GCodeWriter ReportSettings(bool? c = null, bool? s = null, string? comment = null) {
return MCommand(502).Param("C", c).Param("S", s).Comment(comment);
}
public GCodeWriter ValidateEepromContents(string? comment = null) {
return MCommand(504).Comment(comment);
}
public GCodeWriter LockMachine(string? comment = null) {
return MCommand(510).Comment(comment);
}
public GCodeWriter UnlockMachine(string p, string? comment = null) {
return MCommand(511).Param("P", p).Comment(comment);
}
public GCodeWriter SetPasscode(string p, string? s = null, string? comment = null) {
return MCommand(512).Param("P", p).Param("S", s).Comment(comment);
}
public GCodeWriter AbortSdPrint(string? comment = null) {
return MCommand(524).Comment(comment);
}
public GCodeWriter EndstopsAbortSd(bool s, string? comment = null) {
return MCommand(540).Param("S", s).Comment(comment);
}
public GCodeWriter SetTmcSsteppingMode(bool? e = null, int? i = null, int? t = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return MCommand(569).Flag("E", e).Param("I", i).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SerialBaudRate(int? b = null, int? p = null, string? comment = null) {
return MCommand(569).Param("B", b).Param("P", p).Comment(comment);
}
public GCodeWriter FilamentChange(bool? b = null, double? e = null, double? l = null, bool? r = null, int? t = null, double? u = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(600).Param("B", b).Param("E", e).Param("L", l).Param("R", r).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter ConfigureFilamentChange(double? l = null, int? t = null, double? u = null, string? comment = null) {
return MCommand(603).Param("L", l).Param("T", t).Param("U", u).Comment(comment);
}
public GCodeWriter MultiNozzleMode(double? r = null, int? s = null, double? x = null, string? comment = null) {
return MCommand(605).Param("R", r).Param("S", s).Param("X", x).Comment(comment);
}
public GCodeWriter DeltaConfiguration(double? a = null, double? b = null, double? c = null, double? h = null, double? l = null, double? r = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(665).Param("A", a).Param("B", b).Param("C", c).Param("H", h).Param("L", l).Param("R", r).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter ScaraConfiguration(double? a = null, double? b = null, double? p = null, double? s = null, double? t = null, double? x = null, double? y = null, string? comment = null) {
return MCommand(665).Param("A", a).Param("B", b).Param("P", p).Param("S", s).Param("T", t).Param("X", x).Param("Y", y).Comment(comment);
}
public GCodeWriter SetDeltaEndstopAdjustments(double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(666).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetDualEndstopOffsets(double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(666).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter DuetSmartEffectorSensitivity(bool? r = null, double? s = null, string? comment = null) {
return MCommand(672).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter LoadFilament(double? l = null, int? t = null, double? z = null, string? comment = null) {
return MCommand(701).Param("L", l).Param("T", t).Param("Z", z).Comment(comment);
}
public GCodeWriter UnloadFilament(int? t = null, double? u = null, double? z = null, string? comment = null) {
return MCommand(702).Param("T", t).Param("U", u).Param("Z", z).Comment(comment);
}
public GCodeWriter ControllerFanSettings(bool? a = null, double? d = null, double? i = null, bool? r = null, double? s = null, string? comment = null) {
return MCommand(710).Param("A", a).Param("D", d).Param("I", i).Param("R", r).Param("S", s).Comment(comment);
}
public GCodeWriter RepeatMarker(int? l = null, string? comment = null) {
return MCommand(810).Param("L", l).Comment(comment);
}
public GCodeWriter GCodeMacro0(string? s = null, string? comment = null) {
return MCommand(810).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro1(string? s = null, string? comment = null) {
return MCommand(811).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro2(string? s = null, string? comment = null) {
return MCommand(812).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro3(string? s = null, string? comment = null) {
return MCommand(813).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro4(string? s = null, string? comment = null) {
return MCommand(814).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro5(string? s = null, string? comment = null) {
return MCommand(815).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro6(string? s = null, string? comment = null) {
return MCommand(816).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro7(string? s = null, string? comment = null) {
return MCommand(817).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro8(string? s = null, string? comment = null) {
return MCommand(818).Param(s).Comment(comment);
}
public GCodeWriter GCodeMacro9(string? s = null, string? comment = null) {
return MCommand(819).Param(s).Comment(comment);
}
public GCodeWriter XyzProbeOffset(double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(851).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter BedSkewCompensation(double? i = null, double? j = null, double? k = null, double? s = null, string? comment = null) {
return MCommand(851).Param("I", i).Param("J", j).Param("K", k).Param("S", s).Comment(comment);
}
public GCodeWriter I2cPostionEncodersReportPosition(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(860).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersReportStatus(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(861).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersAxisContinuity(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(862).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersStepsCalibration(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(863).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersChangePosition(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(864).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersCheckPosition(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(865).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersErrorCount(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(866).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersEnableDisable(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(867).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersReportErrorCorrection(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(868).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter I2cPostionEncodersError(int? e = null, int? i = null, bool? o = null, int? p = null, bool? r = null, int? s = null, double? t = null, bool? u = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(869).Param("E", e).Param("I", i).Param("O", o).Param("P", p).Param("R", r).Param("S", s).Param("T", t).Param("U", u).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter ProbeTemperatureConfig(bool? b = null, bool? e = null, bool? i = null, bool? p = null, bool? r = null, double? v = null, string? comment = null) {
return MCommand(871).Param("B", b).Param("E", e).Param("I", i).Param("P", p).Param("R", r).Param("V", v).Comment(comment);
}
public GCodeWriter HandlePromptResponse(string? s = null, string? comment = null) {
return MCommand(876).Param("S", s).Comment(comment);
}
public GCodeWriter LinearAdvanceFactor(double? k = null, double? l = null, int? s = null, int? t = null, string? comment = null) {
return MCommand(900).Param("K", k).Param("L", l).Param("S", s).Param("T", t).Comment(comment);
}
public GCodeWriter StepperMotorCurrent(double? e = null, int? i = null, int? t = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(906).Param("E", e).Param("I", i).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetMotorCurrent(double? b = null, double? c = null, double? d = null, double? e = null, double? s = null, double? x = null, double? y = null, double? z = null, string? comment = null) {
return MCommand(907).Param("B", b).Param("C", c).Param("D", d).Param("E", e).Param("S", s).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter SetTrimpotPins(int? e = null, double? s = null, string? comment = null) {
return MCommand(908).Param("E", e).Param("S", s).Comment(comment);
}
public GCodeWriter DacPrintValues(string? comment = null) {
return MCommand(909).Comment(comment);
}
public GCodeWriter CommitDacToEeprom(string? comment = null) {
return MCommand(910).Comment(comment);
}
public GCodeWriter TmcOtPreWarnCondition(string? comment = null) {
return MCommand(911).Comment(comment);
}
public GCodeWriter ClearTmcOtPreWarn(int? e = null, int? i = null, bool? x = null, bool? y = null, bool? z = null, string? comment = null) {
return MCommand(912).Param("E", e).Param("I", i).Flag("X", x).Flag("Y", y).Flag("Z", z).Comment(comment);
}
public GCodeWriter SetHybridThresholdSpeed(bool? e = null, int? i = null, int? t = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(913).Flag("E", e).Param("I", i).Param("T", t).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}
public GCodeWriter TmcBumpSensitivity(int? i = null, int? x = null, int? y = null, int? z = null, string? comment = null) {
return MCommand(914).Param("I", i).Param("X", x).Param("Y", y).Param("Z", z).Comment(comment);
}