Skip to content

Commit

Permalink
io: Remove code blocks for obsolete iocontrol-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma1912 committed Nov 4, 2024
1 parent 628fd73 commit 5f8c481
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
7 changes: 0 additions & 7 deletions configs/sim/gmoccapy/python/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,6 @@

def change_prolog(self, **words):
try:
# this is relevant only when using iocontrol-v2.
if self.params[5600] > 0.0:
if self.params[5601] < 0.0:
self.set_errormsg("Toolchanger hard fault %d" % (int(self.params[5601])))
return INTERP_ERROR
print("change_prolog: Toolchanger soft fault %d" % int(self.params[5601]))

if self.selected_pocket < 0:
self.set_errormsg("M6: no tool prepared")
return INTERP_ERROR
Expand Down
13 changes: 0 additions & 13 deletions configs/sim/woodpecker/python/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ def prepare_epilog(self, **words):

def change_prolog(self, **words):
try:
# this is relevant only when using iocontrol-v2.
if self.params[5600] > 0.0:
if self.params[5601] < 0.0:
self.set_errormsg("Toolchanger hard fault %d" % (int(self.params[5601])))
return INTERP_ERROR
print("change_prolog: Toolchanger soft fault %d" % int(self.params[5601]))

if self.selected_pocket < 0:
self.set_errormsg("M6: no tool prepared")
return INTERP_ERROR
Expand All @@ -196,12 +189,6 @@ def change_epilog(self, **words):
self.set_errormsg("the %s remap procedure %s did not return a value"
% (r.name,r.remap_ngc if r.remap_ngc else r.remap_py))
yield INTERP_ERROR
# this is relevant only when using iocontrol-v2.
if self.params[5600] > 0.0:
if self.params[5601] < 0.0:
self.set_errormsg("Toolchanger hard fault %d" % (int(self.params[5601])))
yield INTERP_ERROR
print("change_epilog: Toolchanger soft fault %d" % int(self.params[5601]))

if self.blocks[self.remap_level].builtin_used:
#print "---------- M6 builtin recursion, nothing to do"
Expand Down
13 changes: 0 additions & 13 deletions nc_files/remap_lib/python-stdglue/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,6 @@ def prepare_epilog(self, **words):

def change_prolog(self, **words):
try:
# this is relevant only when using iocontrol-v2.
if self.params[5600] > 0.0:
if self.params[5601] < 0.0:
self.set_errormsg("Toolchanger hard fault %d" % (int(self.params[5601])))
return INTERP_ERROR
print("change_prolog: Toolchanger soft fault %d" % int(self.params[5601]))

if self.selected_pocket < 0:
self.set_errormsg("M6: no tool prepared")
return INTERP_ERROR
Expand All @@ -196,12 +189,6 @@ def change_epilog(self, **words):
self.set_errormsg("the %s remap procedure %s did not return a value"
% (r.name,r.remap_ngc if r.remap_ngc else r.remap_py))
yield INTERP_ERROR
# this is relevant only when using iocontrol-v2.
if self.params[5600] > 0.0:
if self.params[5601] < 0.0:
self.set_errormsg("Toolchanger hard fault %d" % (int(self.params[5601])))
yield INTERP_ERROR
print("change_epilog: Toolchanger soft fault %d" % int(self.params[5601]))

if self.blocks[self.remap_level].builtin_used:
#print "---------- M6 builtin recursion, nothing to do"
Expand Down

0 comments on commit 5f8c481

Please sign in to comment.