From 951f4dd91b204f696091e68d4051ec2b047a033e Mon Sep 17 00:00:00 2001 From: "Stellamove Co., Ltd" Date: Wed, 23 Mar 2022 15:20:28 +0900 Subject: [PATCH] Change nozzle pattern processing routine for filament tip shaping --- Marlin/src/feature/pitta/pitta.cpp | 606 +++++++++++------------------ 1 file changed, 228 insertions(+), 378 deletions(-) diff --git a/Marlin/src/feature/pitta/pitta.cpp b/Marlin/src/feature/pitta/pitta.cpp index 4ae9d84..7784d10 100644 --- a/Marlin/src/feature/pitta/pitta.cpp +++ b/Marlin/src/feature/pitta/pitta.cpp @@ -722,525 +722,375 @@ void ext_snap() #define TEST_PATTERN +#define FAST_PASS 65 //60 +#define SLOW_PASS 170 //150 +#define TURN_PASS 270 // 250 +#define COOL_ADD 500 +#define DIP_MELT 200 cur_ext_dir = INV_DIR; E0_DIR_WRITE(INVERT_E0_DIR ? !INV_DIR : INV_DIR); - delay(1); + delay(2); + int add = 0; + int add_bit = 0, sub_bit = 0; + int dip_melt = 0; + int l_turn = 0; + pitta_req_manage_heater_update(); - switch (ptrn_n) { case 0: { - ext_flat(INV_DIR, 150, 570); - ext_flat(INV_DIR, 5000, 50); - ext_flat(INV_DIR, 300, 10); - ext_flat(INV_DIR, 280, 10); - ext_flat(INV_DIR, 260, 10); - for (int i = 0; i<10; i++ ) { //12//resrv2 - ext_flat(INV_DIR, 250, 10); - ext_flat(INV_DIR, 150, 15); + dip_melt = resrv2*10;//50 + ext_flat(INV_DIR, 250, 300); + l_turn = 22;//20 + for (int i = 0; i 1400) { - delayMicroseconds(400/WAIT_MUL_V);//90 + delayMicroseconds(200/WAIT_MUL_V);//400 E0_STEP_WRITE(LOW); Y_STEP_WRITE(LOW); - delayMicroseconds(400/WAIT_MUL_V); + delayMicroseconds(200/WAIT_MUL_V); } /// from 1500 else if (mot_ext_remain_step > 1000) { - delayMicroseconds(600/WAIT_MUL_V);//120 + delayMicroseconds(350/WAIT_MUL_V);//600 E0_STEP_WRITE(LOW); Y_STEP_WRITE(LOW); - delayMicroseconds(600/WAIT_MUL_V); + delayMicroseconds(350/WAIT_MUL_V); } else if (mot_ext_remain_step > 900) { - delayMicroseconds(900/WAIT_MUL_V);//120 + delayMicroseconds(600/WAIT_MUL_V);//900 E0_STEP_WRITE(LOW); Y_STEP_WRITE(LOW); - delayMicroseconds(900/WAIT_MUL_V); + delayMicroseconds(600/WAIT_MUL_V); expire_cnt++; } @@ -2903,10 +2753,10 @@ void PITTA::physical_processing() { mot_ext_remain_step = 200; } - delayMicroseconds(1000/WAIT_MUL_V);//120 + delayMicroseconds(600/WAIT_MUL_V);//1000 E0_STEP_WRITE(LOW); Y_STEP_WRITE(LOW); - delayMicroseconds(1000/WAIT_MUL_V); + delayMicroseconds(600/WAIT_MUL_V); expire_cnt+=5; } else @@ -2921,14 +2771,14 @@ void PITTA::physical_processing() { } if (mot_ext_remain_step<0) { mot_ext_remain_step = 0; - delayMicroseconds(450/WAIT_MUL_V);//1000 + delayMicroseconds(450/WAIT_MUL_V);//450 E0_STEP_WRITE(LOW); - delayMicroseconds(450/WAIT_MUL_V);//1000 + delayMicroseconds(450/WAIT_MUL_V);//450 expire_cnt++; } else { { - delayMicroseconds(1200/WAIT_MUL_V);//3000 + delayMicroseconds(1200/WAIT_MUL_V);//1200 E0_STEP_WRITE(LOW); delayMicroseconds(1200/WAIT_MUL_V); expire_cnt+=6;