Hello,
Is it possible to move forward in the G-code program so as to start from a selected block.
It would be necessary that the control executes all the blocks calculation internally (without moving the axes) so as to approach the point at the end of block preceding the chosen block.
For example if work stops during thread cutting it would be possible to continue from where last machining ended.
Any input on implementation of this function is welcome.
Thanks.
Moving forward in G-code & starting from a selected block
Moderators: TomKerekes, dynomotion
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Moving forward in G-code & starting from a selected block
Hi,
However KMotionCNC does have a Set Next Statement option by right clicking on the GCode line where you would like to start. KMotionCNC then scans backwards from that line to attempt to determine the previous position, feedrate, spindle speed, units, etc
When setting the Next Statement you may receive messages such as:
And then when Cycle Starting you may receive a resume message with certain options as shown below:
Set Next Statement doesn't work with subroutines, or if a different Tool, or GCode Offset, or Plane is required to resume.
Its not clear how that would work if the move to the previous block is not executed.Is it possible to move forward in the G-code program so as to start from a selected block.
It would be necessary that the control executes all the blocks calculation internally (without moving the axes) so as to approach the point at the end of block preceding the chosen block.
Its not clear what you mean by this.For example if work stops during thread cutting it would be possible to continue from where last machining ended.
However KMotionCNC does have a Set Next Statement option by right clicking on the GCode line where you would like to start. KMotionCNC then scans backwards from that line to attempt to determine the previous position, feedrate, spindle speed, units, etc
When setting the Next Statement you may receive messages such as:
And then when Cycle Starting you may receive a resume message with certain options as shown below:
Set Next Statement doesn't work with subroutines, or if a different Tool, or GCode Offset, or Plane is required to resume.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.
Re: Moving forward in G-code & starting from a selected block
Hi,
Note that I'm referring to a function in SIEMENS control called "Block Search" which I quote few lines of it's description
Block search
Function
Block search offers the possibility of starting part program execution from almost any part
program block.
This involves the NC rapidly performing an internal run through the part program (without
traversing motions) to the selected target block during block search. Here, every effort is
made to achieve to the exact same control status as would result at the target block during
normal part program execution (e.g. with respect to axis positions, spindle speeds, loaded
tools, NC/PLC interface signals, variable values) in order to be able to resume automatic part
program execution from the target block with minimum manual intervention.
Block search types
● Type 1: Block search without calculation
Block search without calculation is used to find a part program block in the quickest
possible way. No calculation of any type is performed. The control status at the target
block remains unchanged compared to the status before the start of the block search.
● Type 2: Block search with calculation at contour
Block search with calculation at contour is used to enable the programmed contour to be
approached in any situation. On NC Start, the start position of the target block or the end
position of the block before the target block is approached. This is traversed up to the end
position. Processing is true to contour.
....
The calculations of the upstream G-code is done internally without moving the axes, then only the move of the block immediately preceding the requested start block.TomKerekes wrote: ↑Wed Mar 01, 2023 11:36 pmIts not clear how that would work if the move to the previous block is not executed.
I mean if, say thread cutting is interrupted due to power off, operator can continue starting from a selected block.
Note that I'm referring to a function in SIEMENS control called "Block Search" which I quote few lines of it's description
Block search
Function
Block search offers the possibility of starting part program execution from almost any part
program block.
This involves the NC rapidly performing an internal run through the part program (without
traversing motions) to the selected target block during block search. Here, every effort is
made to achieve to the exact same control status as would result at the target block during
normal part program execution (e.g. with respect to axis positions, spindle speeds, loaded
tools, NC/PLC interface signals, variable values) in order to be able to resume automatic part
program execution from the target block with minimum manual intervention.
Block search types
● Type 1: Block search without calculation
Block search without calculation is used to find a part program block in the quickest
possible way. No calculation of any type is performed. The control status at the target
block remains unchanged compared to the status before the start of the block search.
● Type 2: Block search with calculation at contour
Block search with calculation at contour is used to enable the programmed contour to be
approached in any situation. On NC Start, the start position of the target block or the end
position of the block before the target block is approached. This is traversed up to the end
position. Processing is true to contour.
....
- TomKerekes
- Posts: 2676
- Joined: Mon Dec 04, 2017 1:49 am
Re: Moving forward in G-code & starting from a selected block
We only have what I described.
Regards,
Tom Kerekes
Dynomotion, Inc.
Tom Kerekes
Dynomotion, Inc.