Skip to content

Commit ec4b3f6

Browse files
committed
Merge branch '2.9'
# Conflicts: # docs/src/config/python-interface.adoc
2 parents e236a00 + 87fa030 commit ec4b3f6

3 files changed

Lines changed: 6 additions & 16 deletions

File tree

docs/src/config/python-interface.adoc

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,8 @@ see <<python:reading-ini-values,ReadingINI file values>> for an example.
187187
pose of the current g92 offset.
188188

189189
*gcodes*:: '(returns tuple of integers)' -
190-
Active G-codes for each modal group.
191-
G-code constants:
192-
G_0, G_1, G_2, G_3, G_4, G_5, G_5_1, G_5_2, G_5_3, G_7, G_8, G_100, G_17,
193-
G_17_1, G_18, G_18_1, G_19, G_19_1, G_20, G_21, G_28, G_28_1, G_30, G_30_1,
194-
G_33, G_33_1, G_38_2, G_38_3, G_38_4, G_38_5, G_40, G_41, G_41_1, G_42, G_42_1,
195-
G_43, G_43_1, G_43_2, G_49, G_50, G_51, G_53, G_54, G_55, G_56, G_57, G_58,
196-
G_59, G_59_1, G_59_2, G_59_3, G_61, G_61_1, G_64, G_73, G_76, G_80, G_81, G_82,
197-
G_83, G_84, G_85, G_86, G_87, G_88, G_89, G_90, G_90_1, G_91, G_91_1, G_92,
198-
G_92_1, G_92_2, G_92_3, G_93, G_94, G_95, G_96, G_97, G_98, G_99
190+
Active G-codes for each modal group. +
191+
The integer values reflect the nominal G-code numbers multiplied by 10. (Examples: 10 = 'G1', 430 = 'G43', 923 = 'G92.3')
199192

200193
*homed*:: '(returns tuple of integers)' -
201194
currently homed joints, with 0 = not homed, 1 = homed.
@@ -538,7 +531,8 @@ For each joint, the following dictionary keys are available:
538531
value of the spindle override enabled flag.
539532

540533
*speed*:: '(returns float)' -
541-
spindle speed value, rpm, > 0: clockwise, < 0: counterclockwise.
534+
spindle speed value, rpm, > 0: clockwise, < 0: counterclockwise. +
535+
With G96 active this reflects the maximum speed set by the optional G96 'D'-word or, if the 'D'-word was missing, the default values +/-1e30
542536

543537
== Preparing to send commands
544538

docs/src/gcode/g-code.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ gives the compensation length in Z (for lathes and milling machines).
14621462
----
14631463
G90 (set absolute mode)
14641464
T1 M6 G43 (load tool 1 and tool length offsets, Z is at machine 0 and DRO shows Z1.500)
1465-
G43.1 Z0.250 (offset current tool offset by 0.250, DRO now shows Z1.250)
1465+
G43.1 Z0.250 (offset current tool offset by 0.250, DRO now shows Z0.250)
14661466
M2 (end program)
14671467
----
14681468

src/emc/rs274ngc/gcodemodule.cc

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -914,11 +914,7 @@ static PyObject *parse_file(PyObject * /*self*/, PyObject *args) {
914914
if(!RESULT_OK) goto out_error;
915915
result = pinterp->execute();
916916
}
917-
if(initcode && RESULT_OK) {
918-
result = pinterp->read(initcode);
919-
if(!RESULT_OK) goto out_error;
920-
result = pinterp->execute();
921-
}
917+
922918
while(!interp_error && RESULT_OK) {
923919
error_line_offset = 1;
924920
result = pinterp->read();

0 commit comments

Comments
 (0)