Skip to content

Commit e79d9f4

Browse files
committed
pncconf -add rs274 startup code
1 parent c27238b commit e79d9f4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/emc/usr_intf/pncconf/build_INI.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,14 @@ def write_inifile(self, base):
165165
print("SUBROUTINE_PATH = ./:../../nc_files", file=file)
166166
print("USER_M_PATH = ./:../../nc_files", file=file)
167167
print("", file=file)
168+
else:
169+
if self.d.units == _PD._METRIC:
170+
unit = 21
171+
p = .025
172+
else:
173+
unit = 20
174+
p =.001
175+
print ("RS274NGC_STARTUP_CODE = G{} G40 G90 G94 G97 G64 P{}".format(unit,p), file=file)
168176

169177
#base_period = self.d.ideal_period()
170178

0 commit comments

Comments
 (0)