Test x,y movement

This commit is contained in:
Anders Sandstrom
2022-01-18 15:37:22 +01:00
parent 6e4bd2410f
commit 450f553699
4 changed files with 5477 additions and 6 deletions

View File

@@ -151,7 +151,7 @@ int grblConstruct(char *configStr)
// test some commands
printf("Test command:G0X11\n");
ecmc_write_command_serial("G0X11\n");
ecmc_write_command_serial("G0X10Y100\n");
printf("Test command:$J=X10.0Y-1.5\n");
ecmc_write_command_serial("$J=X10.0Y-1.5\n");
printf("Test command:#\n");

View File

@@ -227,7 +227,7 @@ pthread_t tid;
void *ecmc_dummy_thread(void *ptr) {
printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
while (stepperInterruptEnable) {
for(int i=0; i< 30;i++) {
for(int i=0; i < 30; i++) {
ecmc_grbl_main_rt_thread();
}
printf("%s:%s:%d Positions(x,y,x)=%d,%d,%d..\n",__FILE__,__FUNCTION__,__LINE__,sys_position[X_AXIS], sys_position[Y_AXIS],sys_position[Z_AXIS] );
@@ -362,7 +362,7 @@ void st_go_idle()
// call from plugin execute
void ecmc_grbl_main_rt_thread()
{
printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
if (busy) { return; } // The busy-flag is used to avoid reentering this interrupt
@@ -723,7 +723,7 @@ static uint8_t st_next_block_index(uint8_t block_index)
*/
void st_prep_buffer()
{
printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
// Block step prep buffer, while in a suspend state and there is no suspend motion to execute.
if (bit_istrue(sys.step_control,STEP_CONTROL_END_MOTION)) { return; }

View File

@@ -371,7 +371,7 @@ uint8_t system_check_travel_limits(float *target)
// Special handlers for setting and clearing Grbl's real-time execution flags.
// ecmc: set execute here (start rt thread maybe)
void system_set_exec_state_flag(uint8_t mask) {
printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
//uint8_t sreg = SREG;
//cli();
@@ -380,7 +380,7 @@ void system_set_exec_state_flag(uint8_t mask) {
}
void system_clear_exec_state_flag(uint8_t mask) {
printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
//printf("%s:%s:%d:\n",__FILE__,__FUNCTION__,__LINE__);
//uint8_t sreg = SREG;
//cli();

5471
iocsh/log.log Normal file

File diff suppressed because it is too large Load Diff