This commit is contained in:
Anders Sandstrom
2022-02-02 12:07:02 +01:00
parent f32dd2ada2
commit f92506ed21
3 changed files with 7 additions and 7 deletions

View File

@@ -802,11 +802,11 @@ int ecmcGrbl::setReset(int reset) {
}
int ecmcGrbl::getBusy() {
return getEcmcEpicsIOCState()!=16 || writerBusy_ || stepperInterruptEnable;
return getEcmcEpicsIOCState()!=16 || writerBusy_ || stepperInterruptEnable || !grblInitDone_;
}
int ecmcGrbl::getParserBusy() {
return getEcmcEpicsIOCState()!=16 || writerBusy_;
return getEcmcEpicsIOCState()!=16 || writerBusy_ || !grblInitDone_;
}
int ecmcGrbl::getCodeRowNum() {

View File

@@ -28,7 +28,7 @@
void spindle_init()
{
printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__);
#ifdef VARIABLE_SPINDLE
// Configure variable spindle PWM and enable pin, if requried. On the Uno, PWM and enable are
@@ -107,7 +107,7 @@ uint8_t spindle_get_state()
// Called by spindle_init(), spindle_set_speed(), spindle_set_state(), and mc_reset().
void spindle_stop()
{
printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d Not supported yet..\n",__FILE__,__FUNCTION__,__LINE__);
//#ifdef VARIABLE_SPINDLE
// SPINDLE_TCCRA_REGISTER &= ~(1<<SPINDLE_COMB_BIT); // Disable PWM. Output voltage is zero.

View File

@@ -2,9 +2,9 @@
# Test of GRBL plugin for g-code parsing
#
println('GRBL busy:', grbl_get_busy());
if(not(grbl_get_busy())) {
println('GRBL busy :', grbl_get_busy());
println('Parser busy:', grbl_get_parser_busy());
if(not(grbl_get_parser_busy())) {
static.counter+=1;
println('Retrigger g-code. Counter: ', static.counter);
grbl_set_execute(0);