Skip to content

Commit

Permalink
Remove code block for obsolete iocontrol-v2 from stdglue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma1912 committed Oct 26, 2024
1 parent a85632c commit 09b3b66
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions configs/sim/woodpecker/python/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,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
6 changes: 0 additions & 6 deletions nc_files/remap_lib/python-stdglue/stdglue.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,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 09b3b66

Please sign in to comment.