Repetier CNC with TB6600

Hello,
I am willing to run my cnc using tb6600 but motors dont move. i checked them with follwoing program-
**************
#define dirPin 40
#define stepPin 46
void setup() {
  // Declare pins as output:
  pinMode(stepPin, OUTPUT);
  pinMode(dirPin, OUTPUT);
  // Set the spinning direction CW/CCW:
  digitalWrite(dirPin, HIGH);
}
void loop() {
  // These four lines result in 1 step:
  digitalWrite(stepPin, HIGH);
  delayMicroseconds(70);
  digitalWrite(stepPin, LOW);
  delayMicroseconds(70);
}
**************
  Note for delay is 70. stepper running fine at this delay.
But on repetier STEPPER_HIGH_DELAY 70 resulting in no move.
Also applied -

#define X_ENABLE_ON 1
#define Y_ENABLE_ON 1
#define Z_ENABLE_ON 1
(Note- No of extruder and thermistor is zero for  CNC purspose)
But no luck.  Stepper not moving
What next to do?


«1

Comments

  • change STEPPER_HIGH_DELAY 70  to 1 , that´s the setting i have on my cnc for TB6600.

  • Already did that with configuration defaults. In that condition drv8825 running fine but when replaced with tb6600, it stopped.
  • what´s your board and how about wiring?
  • edited November 22
    It is arduino mega+ramps1.4 and from ramps step,dir and enable pins to their respective motors of x y and z axis as shown in here -
    limit switch- x min, y min, z min+max
  • just following this thread should make it work.

    step+ , dir+ and enable+ connected to +5vdc
    step- to step pin
    dir- to dir pin
    enable- to enable pin

    and

    #define X_ENABLE_ON 1
    #define Y_ENABLE_ON 1
    #define Z_ENABLE_ON 1

    that´s the settings i work with


  • edited November 22
    Actually i am trying to build one from last 5 months but no luck. tried grbl for uno and mega. no result. tried marlin. no move. now at repetier. no progress.
    My stepper driver dont have step- dir- enable- they all are +
    here is the image-


  • can you post a picture or drawing of your wiring?
  • edited November 22
    Nothing is different just taking inputs from ramps to drives. Only one endstop is plugged as of now to just check. only 2 stepper drivers are connected for testing.
    5V from ramps to 5v input to tb6600

  • there is a purple cable connecting the +5V inputs of the stepper drivers.
    I cannot see the connection from there to 5V of Ramps
  • edited November 22
    5v coming from 5V pin on ramps. Yellow cable (At bottom) is providing 5v from ramps to tb6600 drivers.
  • did you ever measure the servo 5v pin? not shure if the 5V are really there as far as i know ther is a jumper necessary
  • edited November 22
    try to get 5V from Aux1 connector, then it should work ,
    5V at servo Pin is not supplied from arduino.It has to be supplied from external as servos draw a lot of current.
  • Connected from vcc pin from ramps as it is providing 5v output (tested using multimeter). when trying to home x or y axis board hangs as can be seen on display attached to ramps.
  • set STEPPER_HIGH_DELAY  to 1 or 2  before testing
  • when i power them all using 24v supply it shows idle. In idle state en is at 5v dir at 5v and step at 0v. When homing command issued Dir is 0v Step at 5v and enable at 0v. These are readings on multimeter.
  • edited November 22
    what are your settigs from this`?

    #define X_ENABLE_ON 1
    #define Y_ENABLE_ON 1
    #define Z_ENABLE_ON 1

    maybe you have to change these to 0  or if they are 0 change them to 1
    guess after homing command enable has to be 5v

  • Changed stepper high delay to 2 and aslo
    x enable on 1
    y enable on 1
    But no progress. Pressing home for any axis hang ramps as no sound from rotatory encoder until pressed reset.
  • edited November 22
    whats the endstops settings?
    after starting homing firmware waits for endstop to be triggered/untriggered
    so it does not really hang

    What´s reported after sending M119 ?
  • edited November 22
    End stops working fine, normally off when pressed shoes on on riprap display.
  • what happens when you send gcode ?

    f.e. G1 X50 Y50 F500
  • edited November 22
    Repetier Host Output is -

    15:38:53.814 : OpenGL renderer:AMD RS780 (DRM 2.50.0 / 5.4.0-53-generic, LLVM 10.0.0)
    15:38:53.814 : Using fast VBOs for rendering is possible
    15:38:59.855 : Printer reset detected - initializing
    15:38:59.867 : ?start
    15:39:00.024 : N1 M110*34
    15:39:00.024 : N2 M115*36
    15:39:00.024 : N3 M105*36
    15:39:00.024 : N4 M114*35
    15:39:00.024 : N5 M111 S6*98
    15:39:00.028 : N6 T0*60
    15:39:00.028 : N7 M20*22
    15:39:00.028 : N8 M80*19
    15:39:02.487 : Free RAM:3903
    15:39:02.496 : N9 M220 S100*104
    15:39:02.496 : N10 M221 S100*81
    15:39:02.499 : FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:0 REPETIER_PROTOCOL:3
    15:39:02.499 : N11 M111 S6*87
    15:39:02.499 : PrinterMode:CNC
    15:39:02.499 : N12 T0*9
    15:39:02.499 : X:0.00 Y:0.00 Z:0.000 E:0.0000
    15:39:02.502 : DebugLevel:6
    15:39:02.502 : Begin file list
    15:39:02.505 : End file list
    15:39:02.508 : DebugLevel:6
    15:39:27.331 : N13 G1 X50 X50 F500*73

    After commanding this gcode sound of fan from PSU24V goes down. Now i can not hear that sound but before command execution that was pretty much clear.
    After disconnect and reconnect sound became as loud as earlier.
  • log after reconnect in repetier host-

    15:47:15.790 : Free RAM:3903
    15:47:15.792 : N9 M220 S100*104
    15:47:15.792 : N10 M221 S100*81
    15:47:15.793 : FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:0 REPETIER_PROTOCOL:3
    15:47:15.793 : N11 M111 S6*87
    15:47:15.793 : N12 T0*9
    15:47:15.797 : PrinterMode:CNC
    15:47:15.798 : X:0.00 Y:0.00 Z:0.000 E:0.0000
    15:47:15.798 : DebugLevel:6
    15:47:15.800 : Begin file list
    15:47:15.801 : End file list
    15:47:15.802 : Error:Wrong checksum
    15:47:15.802 : Resend:11
    15:47:15.803 : Resend: N11 M111 S6*87
    15:47:15.803 : Resend: N12 T0*9
    15:47:15.808 : DebugLevel:6


  • Repetier.log file contents-

    > 15:57:02.981 : DebugLevel:6
    > 15:57:02.981 : ok 6
    > 15:57:02.981 : ok 7
    > 15:57:02.981 : Begin file list
    > 15:57:02.981 : End file list
    > 15:57:02.981 : ok 8
    > 15:57:02.984 : ok 9
    > 15:57:02.984 : SpeedMultiply:100
    > 15:57:02.984 : ok 10
    > 15:57:02.984 : FlowMultiply:100
    > 15:57:02.984 : ok 11
    > 15:57:02.985 : DebugLevel:6
    > 15:57:02.985 : ok 12
    > 15:57:04.047 : wait
    > 15:57:05.047 : wait
    > 15:57:06.047 : wait
    > 15:57:07.049 : wait
    > 15:57:08.049 : wait
    > 15:57:09.049 : wait
    > 15:57:10.050 : wait
    > 15:57:11.050 : wait
    > 15:57:12.051 : wait
    > 15:57:13.049 : wait
    > 15:57:14.125 : wait
    > 15:57:15.125 : wait
    > 15:57:16.129 : wait
    > 15:57:17.129 : wait
    > 15:57:18.128 : wait
    > 15:57:19.132 : wait
    > 15:57:20.131 : wait
    > 15:57:21.130 : wait
    > 15:57:22.129 : wait
    > 15:57:23.131 : wait
    > 15:57:24.132 : wait
    > 15:57:25.130 : wait
    > 15:57:26.135 : wait
    > 15:57:27.132 : wait
    > 15:57:28.133 : wait
    > 15:57:29.132 : wait
    > 15:57:30.136 : wait
    > 15:57:31.135 : wait
    < 15:57:31.878 : N13 G1 Z1 F100*6
    > 15:57:31.884 : ok 13
    > 15:57:32.884 : wait
    > 15:57:33.881 : wait
    > 15:57:34.881 : wait
    > 15:57:35.885 : wait
    > 15:57:36.884 : wait
    > 15:57:37.882 : wait
    > 15:57:38.887 : wait
    > 15:57:39.886 : wait
    < 15:57:40.771 : N14 G1 Z0.9 F100*23
    > 15:57:40.774 : ok 14
    > 15:57:41.778 : wait
    < 15:57:42.524 : N15 G1 Z-0.1 F100*51
    > 15:57:42.527 : ok 15
    > 15:57:43.527 : wait
    > 15:57:44.530 : wait
    > 15:57:45.529 : wait
    < 15:57:46.170 : N16 G28 Z0*110
    > 15:57:46.176 : ok 16
    < 15:57:55.784 : N17 G28 X0*109
    < 15:58:01.695 : N18 M81*35
    < 15:58:10.834 : Printer reset detected - initializing
    > 15:58:10.834 : start
    < 15:58:10.968 : N1 M110*34
    < 15:58:10.968 : N2 M115*36
    < 15:58:10.968 : N3 M105*36
    < 15:58:10.968 : N4 M114*35
    < 15:58:10.984 : N5 M111 S6*98
    < 15:58:10.985 : N6 T0*60
    < 15:58:10.985 : N7 M20*22
    < 15:58:10.986 : N8 M80*19
    > 15:58:13.476 : Free RAM:3903
    > 15:58:13.477 : ok
    > 15:58:13.477 : ok 2
    < 15:58:13.479 : N9 M220 S100*104
    < 15:58:13.479 : N10 M221 S100*81
    > 15:58:13.480 : FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:0 REPETIER_PROTOCOL:3
    < 15:58:13.480 : N11 M111 S6*87
    > 15:58:13.480 : PrinterMode:CNC
    < 15:58:13.480 : N12 T0*9
    > 15:58:13.484 : ok 3
    > 15:58:13.484 : ok 4
    > 15:58:13.484 : X:0.00 Y:0.00 Z:0.000 E:0.0000
    > 15:58:13.484 : ok 5
    > 15:58:13.485 : DebugLevel:6
    > 15:58:13.485 : ok 6
    > 15:58:13.485 : ok 7
    > 15:58:13.487 : Begin file list
    > 15:58:13.487 : End file list
    > 15:58:13.488 : ok 8
    > 15:58:13.488 : ok 9
    > 15:58:13.488 : SpeedMultiply:100
    > 15:58:13.488 : ok 10
    > 15:58:13.488 : FlowMultiply:100
    > 15:58:13.488 : ok 11
    > 15:58:13.488 : DebugLevel:6
    > 15:58:13.489 : ok 12
    > 15:58:14.553 : wait
    > 15:58:15.555 : wait
    > 15:58:16.554 : wait

  • edited November 22
    sorry, no more idea from my side .
    but as you wrote :"After commanding this gcode sound of fan from PSU24V goes down"
    I you should check 24V during operation.
    not shure what happens


    BTW:
    15:47:15.793 : FIRMWARE_NAME:Repetier_0.92.9 FIRMWARE_URL:https://github.com/repetier/Repetier-Firmware/ PROTOCOL_VERSION:1.0 MACHINE_TYPE:Mendel EXTRUDER_COUNT:0 REPETIER_PROTOCOL:3

    why are you using this old Firmware?


  • OMG. Thanks a ton. Now repetier firmware latest version compiled and uploaded. It is moving. I was using that old version bcoz it was stable release.
    Now let me check everything working fine of not from display.
    Thanks for firmware version suggestion.
  • i remember, it´s a hard way to get the first machine runnig, so have fun now!
  • Now it seems that stepper missing steps bcoz moving y axis moves stepper in one direction and sometimes opposite direction. Should i try delay? And what is that coming just below of printer name on smart display? how can i change that showing $&#... like characters?
  • changing direction is usually steppers current setting, refer drivers manual how to do.
    also might be loose cable on dir input
    regarding display no idea
  • i mean to write that i am rotating the encoder in one direction but motor is misbehaving.
  • btw : hope you don´t supply ramps/arduino by 24V

    this will kill arduino's voltage regulator soon.

    see:

Sign In or Register to comment.