Skip to content

Commit 5324e63

Browse files
committed
pnccong -add rs274 startup code
1 parent f5473a9 commit 5324e63

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/emc/usr_intf/pncconf/build_INI.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ def write_inifile(self, base):
109109
print >>file
110110
print >>file, "[RS274NGC]"
111111
print >>file, "PARAMETER_FILE = linuxcnc.var"
112+
if self.d.units == _PD._METRIC:
113+
unit = 21
114+
p = .025
115+
else:
116+
unit = 20
117+
p =.001
118+
print >>file, "RS274NGC_STARTUP_CODE = G{} G40 G90 G94 G97 G64 P{}".format(unit,p)
112119

113120
#base_period = self.d.ideal_period()
114121

0 commit comments

Comments
 (0)