WIP
This commit is contained in:
@@ -177,6 +177,8 @@ int grblConstruct(char *configStr)
|
||||
// test some commands
|
||||
printf("Test command:G0X10Y100\n");
|
||||
ecmc_write_command_serial("G0X10Y100\n");
|
||||
printf("Test command:G1X20Y200F20\n");
|
||||
ecmc_write_command_serial("G1X20Y200F20\n");
|
||||
//printf("Test command:$J=X10.0Y-1.5\n");
|
||||
//ecmc_write_command_serial("$J=X10.0Y-1.5\0");
|
||||
//printf("Test command:#\n");
|
||||
|
||||
@@ -229,7 +229,10 @@ void *ecmc_dummy_thread(void *ptr) {
|
||||
|
||||
while (stepperInterruptEnable) {
|
||||
for(int i=0; i < 30; i++) {
|
||||
ecmc_grbl_main_rt_thread();
|
||||
if(!stepperInterruptEnable) {
|
||||
break;
|
||||
}
|
||||
ecmc_grbl_main_rt_thread();
|
||||
}
|
||||
printf("%s:%s:%d Positions(x,y,z)=%d,%d,%d..\n",__FILE__,__FUNCTION__,__LINE__,sys_position[X_AXIS], sys_position[Y_AXIS],sys_position[Z_AXIS] );
|
||||
delay_ms(1);
|
||||
@@ -439,6 +442,7 @@ void ecmc_grbl_main_rt_thread()
|
||||
|
||||
} else {
|
||||
// Segment buffer empty. Shutdown.
|
||||
printf("Segment buffer empty!!!!!!!!!!!!!!!!!!!!!");
|
||||
st_go_idle();
|
||||
#ifdef VARIABLE_SPINDLE
|
||||
// Ensure pwm is set properly upon completion of rate-controlled motion.
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#define stepper_h
|
||||
|
||||
#ifndef SEGMENT_BUFFER_SIZE
|
||||
#define SEGMENT_BUFFER_SIZE 6
|
||||
#define SEGMENT_BUFFER_SIZE 32
|
||||
#endif
|
||||
|
||||
// Initialize and setup the stepper motor subsystem
|
||||
|
||||
29248
iocsh/log.log
29248
iocsh/log.log
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user