Skip to content

Commit

Permalink
move remap to unclaimed Gcode in sim config at sim/axis/remap/stop-re…
Browse files Browse the repository at this point in the history
…adahead
  • Loading branch information
Sigma1912 committed Aug 17, 2024
1 parent db761ea commit 7572c12
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 28 deletions.
5 changes: 1 addition & 4 deletions configs/sim/axis/remap/stop-lookahead/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ See also this forum thread:

Related:

see 'G103 Lookahead Mode', page 152,
see 'G103 Lookahead Mode' on some controllers

PMAC-NC2 Pro2 Software reference, Delta Tau Systems Inc

http://www.deltatau.com/manuals/pdfs/PMAC-NC%20PRO2.pdf?id=634701792253582640


15 changes: 0 additions & 15 deletions configs/sim/axis/remap/stop-lookahead/README_es

This file was deleted.

2 changes: 1 addition & 1 deletion configs/sim/axis/remap/stop-lookahead/demo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ py = python3
PARAMETER_FILE = sim.var
SUBROUTINE_PATH = nc_subroutines:../../nc_files/remap_lib/common_nc_subs
LOG_LEVEL = 0
REMAP= G70 modalgroup=1 py=queuebuster
REMAP= G70.9 modalgroup=1 py=queuebuster

# this is important - read nc_subroutines/on_abort.ngc
ON_ABORT_COMMAND= O <on_abort> call
Expand Down
15 changes: 7 additions & 8 deletions configs/sim/axis/remap/stop-lookahead/nc_files/examples.ngc
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
;
; demo for stopping interpreter readahead
;
; assuming the G70 line is commented out, what would happen is:
; assuming the G70.9 line is commented out, what would happen is:
;
; the interpreter parses and queues the msg commands, then encounters abort
; and immediately flushes the interpreter queue
; consequence: the message from (msg,xx) dont appear since they are flushed before they can be executed by
; task and the gui.
;
; if G70 is active, this means interpreter readahead stops at that very line until all preceding
; if G70.9 is active, this means interpreter readahead stops at that very line until all preceding
; commands have been executed
; hence the messages appear in that case

(msg,one)
(msg,two)
(msg,three)

G70 (dont lookahead further)

(abort, aborting)
m2


G70.9 (dont lookahead further)
o10 if [#<_task> EQ 1] (this avoids an abort message when starting the config)
(abort, aborting)
o10 endif
m2

0 comments on commit 7572c12

Please sign in to comment.