From d18cf51e1cc71c60ae08ab687613f24ada99599d Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Mon, 19 Nov 2018 10:59:09 +0200 Subject: Version 1.1.4.3: Cart goes to the edge at job end to enable spool change --- Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c | 5 +++-- Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Thread') diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c index 0c4a3b80a..fd577311e 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_Winder.c @@ -309,7 +309,6 @@ uint32_t Winder_Presegment(void *JobDetails, uint32_t SegmentId) } uint32_t Winder_End(void) { - int pend; //stop screw ScrewNumberOfSteps = 0; if (ScrewControlId != 0xFF) @@ -319,8 +318,10 @@ uint32_t Winder_End(void) } CurrentControlledSpeed[SCREW_MOTOR] = 0; ScrewsStopControlTimer(); + //move the cart to the edge so the spool can be easily replaced + MotorMovetoLimitSwitch (HARDWARE_MOTOR_TYPE__MOTO_SCREW,MotorsCfg[HARDWARE_MOTOR_TYPE__MOTO_SCREW].directionthreadwize, 1000, GPI_LS_SCREW_RIGHT, NULL); - return MotorStop (HARDWARE_MOTOR_TYPE__MOTO_SCREW,Hard_Hiz); + return OK; } void Winder_ScrewHomeLimitSwitchInterrupt(void) { diff --git a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c index ea86c2892..5390ed0a7 100644 --- a/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c +++ b/Software/Embedded_SW/Embedded/Modules/Thread/Thread_print.c @@ -775,7 +775,7 @@ char Endstr[150]; PoolerSpeedControlId = 0xFF; } - for ( Motor_i = 0;Motor_i < MAX_THREAD_MOTORS_NUM;Motor_i++) + for ( Motor_i = 0;Motor_i <= WINDER_MOTOR;Motor_i++) { if (ControlIdtoMotorId[Motor_i] != 0xFF) { -- cgit v1.3.1