TinyG stops responding when I attempt to move A-axis

Home Forums TinyG TinyG Support TinyG stops responding when I attempt to move A-axis

Tagged: 

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #9526
    ehrichweiss
    Member

    I’ve had my TinyG a few days, got the XYZ calibrated, and made my first “perfect” cut(LinuxCNC had issues with latency so it’d goof them up) using X/Y/Z a couple days ago, and decided to configure A-axis. Well the stepper would hum but wouldn’t move no matter how I positioned the pot, so I figured the max velocity was exceeding the stepper or the like but at some point I set something and now if I send any gcode that moves the A-axis, the TinyG just stops responding(no lights flash or otherwise…just sits there) and I have to reset it(and ChiliPeppr), the rest of the axes work fine. I tried to set them back but apparently I goofed something and didn’t notice. Any ideas?

    My config is below.

    $$ dump:
    {“ej”:””}
    [fb] firmware build 440.20
    [fv] firmware version 0.97
    [hp] hardware platform 1.00
    [hv] hardware version 8.00
    [id] TinyG ID 2U2971-YFW
    [ja] junction acceleration 2000000 mm
    [ct] chordal tolerance 0.0100 mm
    [sl] soft limit enable 0
    [st] switch type 1 [0=NO,1=NC]
    [mt] motor idle timeout 2.00 Sec
    [ej] enable json mode 0 [0=text,1=JSON]
    [jv] json verbosity 4 [0=silent,1=footer,2=messages,3=configs,4=linenum,5=verbose]
    [js] json serialize style 1 [0=relaxed,1=strict]
    [tv] text verbosity 1 [0=silent,1=verbose]
    [qv] queue report verbosity 1 [0=off,1=single,2=triple]
    [sv] status report verbosity 1 [0=off,1=filtered,2=verbose]
    [si] status interval 250 ms
    [ec] expand LF to CRLF on TX 0 [0=off,1=on]
    [ee] enable echo 0 [0=off,1=on]
    [ex] enable flow control 1 [0=off,1=XON/XOFF, 2=RTS/CTS]
    [baud] USB baud rate 5 [1=9600,2=19200,3=38400,4=57600,5=115200,6=230400]
    [net] network mode 0 [0=master]
    [gpl] default gcode plane 0 [0=G17,1=G18,2=G19]
    [gun] default gcode units mode 1 [0=G20,1=G21]
    [gco] default gcode coord system 1 [1-6 (G54-G59)]
    [gpa] default gcode path control 2 [0=G61,1=G61.1,2=G64]
    [gdi] default gcode distance mode 0 [0=G90,1=G91]
    [1ma] m1 map to axis 0 [0=X,1=Y,2=Z…]
    [1sa] m1 step angle 1.800 deg
    [1tr] m1 travel per revolution 3.9890 mm
    [1mi] m1 microsteps 8 [1,2,4,8]
    [1po] m1 polarity 0 [0=normal,1=reverse]
    [1pm] m1 power management 2 [0=disabled,1=always on,2=in cycle,3=when moving]
    [2ma] m2 map to axis 1 [0=X,1=Y,2=Z…]
    [2sa] m2 step angle 1.800 deg
    [2tr] m2 travel per revolution 3.9890 mm
    [2mi] m2 microsteps 8 [1,2,4,8]
    [2po] m2 polarity 0 [0=normal,1=reverse]
    [2pm] m2 power management 2 [0=disabled,1=always on,2=in cycle,3=when moving]
    [3ma] m3 map to axis 2 [0=X,1=Y,2=Z…]
    [3sa] m3 step angle 1.800 deg
    [3tr] m3 travel per revolution 4.0000 mm
    [3mi] m3 microsteps 8 [1,2,4,8]
    [3po] m3 polarity 0 [0=normal,1=reverse]
    [3pm] m3 power management 2 [0=disabled,1=always on,2=in cycle,3=when moving]
    [4ma] m4 map to axis 3 [0=X,1=Y,2=Z…]
    [4sa] m4 step angle 1.800 deg
    [4tr] m4 travel per revolution 2.1166 mm
    [4mi] m4 microsteps 8 [1,2,4,8]
    [4po] m4 polarity 1 [0=normal,1=reverse]
    [4pm] m4 power management 2 [0=disabled,1=always on,2=in cycle,3=when moving]
    [xam] x axis mode 1 [standard]
    [xvm] x velocity maximum 2500 mm/min
    [xfr] x feedrate maximum 500 mm/min
    [xtn] x travel minimum 0.000 mm
    [xtm] x travel maximum 300.000 mm
    [xjm] x jerk maximum 5000 mm/min^3 * 1 million
    [xjh] x jerk homing 10000 mm/min^3 * 1 million
    [xjd] x junction deviation 0.0100 mm (larger is faster)
    [xsn] x switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
    [xsx] x switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
    [xsv] x search velocity 3000 mm/min
    [xlv] x latch velocity 100 mm/min
    [xlb] x latch backoff 10.000 mm
    [xzb] x zero backoff 2.000 mm
    [yam] y axis mode 1 [standard]
    [yvm] y velocity maximum 2500 mm/min
    [yfr] y feedrate maximum 500 mm/min
    [ytn] y travel minimum 0.000 mm
    [ytm] y travel maximum 320.000 mm
    [yjm] y jerk maximum 5000 mm/min^3 * 1 million
    [yjh] y jerk homing 10000 mm/min^3 * 1 million
    [yjd] y junction deviation 0.0100 mm (larger is faster)
    [ysn] y switch min 1 [0=off,1=homing,2=limit,3=limit+homing]
    [ysx] y switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
    [ysv] y search velocity 3000 mm/min
    [ylv] y latch velocity 100 mm/min
    [ylb] y latch backoff 10.000 mm
    [yzb] y zero backoff 2.000 mm
    [zam] z axis mode 1 [standard]
    [zvm] z velocity maximum 1000 mm/min
    [zfr] z feedrate maximum 1000 mm/min
    [ztn] z travel minimum -120.000 mm
    [ztm] z travel maximum 0.000 mm
    [zjm] z jerk maximum 50 mm/min^3 * 1 million
    [zjh] z jerk homing 1000 mm/min^3 * 1 million
    [zjd] z junction deviation 0.0100 mm (larger is faster)
    [zsn] z switch min 0 [0=off,1=homing,2=limit,3=limit+homing]
    [zsx] z switch max 1 [0=off,1=homing,2=limit,3=limit+homing]
    [zsv] z search velocity 1000 mm/min
    [zlv] z latch velocity 100 mm/min
    [zlb] z latch backoff 10.000 mm
    [zzb] z zero backoff 3.000 mm
    [aam] a axis mode 3 [radius]
    [avm] a velocity maximum 500 deg/min
    [afr] a feedrate maximum 1296 deg/min
    [atn] a travel minimum -1.000 deg
    [atm] a travel maximum -1.000 deg
    [ajm] a jerk maximum 324000 deg/min^3 * 1 million
    [ajh] a jerk homing 324000 deg/min^3 * 1 million
    [ajd] a junction deviation 0.1000 deg (larger is faster)
    [ara] a radius value 5.3050 deg
    [asn] a switch min 0 [0=off,1=homing,2=limit,3=limit+homing]
    [asx] a switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
    [asv] a search velocity 1000 deg/min
    [alv] a latch velocity 2000 deg/min
    [alb] a latch backoff 5.000 deg
    [azb] a zero backoff 2.000 deg
    [bam] b axis mode 0 [disabled]
    [bvm] b velocity maximum 3600 deg/min
    [bfr] b feedrate maximum 3600 deg/min
    [btn] b travel minimum -1.000 deg
    [btm] b travel maximum -1.000 deg
    [bjm] b jerk maximum 20 deg/min^3 * 1 million
    [bjd] b junction deviation 0.0100 deg (larger is faster)
    [bra] b radius value 1.0000 deg
    [cam] c axis mode 0 [disabled]
    [cvm] c velocity maximum 3600 deg/min
    [cfr] c feedrate maximum 3600 deg/min
    [ctn] c travel minimum -1.000 deg
    [ctm] c travel maximum -1.000 deg
    [cjm] c jerk maximum 20 deg/min^3 * 1 million
    [cjd] c junction deviation 0.0100 deg (larger is faster)
    [cra] c radius value 1.0000 deg
    [p1frq] pwm frequency 100 Hz
    [p1csl] pwm cw speed lo 1000 RPM
    [p1csh] pwm cw speed hi 2000 RPM
    [p1cpl] pwm cw phase lo 0.125 [0..1]
    [p1cph] pwm cw phase hi 0.200 [0..1]
    [p1wsl] pwm ccw speed lo 1000 RPM
    [p1wsh] pwm ccw speed hi 2000 RPM
    [p1wpl] pwm ccw phase lo 0.125 [0..1]
    [p1wph] pwm ccw phase hi 0.200 [0..1]
    [p1pof] pwm phase off 0.100 [0..1]
    [g54x] g54 x offset 0.000 mm
    [g54y] g54 y offset 0.000 mm
    [g54z] g54 z offset 0.000 mm
    [g54a] g54 a offset 0.000 deg
    [g54b] g54 b offset 0.000 deg
    [g54c] g54 c offset 0.000 deg
    [g55x] g55 x offset 145.000 mm
    [g55y] g55 y offset 160.000 mm
    [g55z] g55 z offset 0.000 mm
    [g55a] g55 a offset 0.000 deg
    [g55b] g55 b offset 0.000 deg
    [g55c] g55 c offset 0.000 deg
    [g56x] g56 x offset 0.000 mm
    [g56y] g56 y offset 0.000 mm
    [g56z] g56 z offset 0.000 mm
    [g56a] g56 a offset 0.000 deg
    [g56b] g56 b offset 0.000 deg
    [g56c] g56 c offset 0.000 deg
    [g57x] g57 x offset 0.000 mm
    [g57y] g57 y offset 0.000 mm
    [g57z] g57 z offset 0.000 mm
    [g57a] g57 a offset 0.000 deg
    [g57b] g57 b offset 0.000 deg
    [g57c] g57 c offset 0.000 deg
    [g58x] g58 x offset 0.000 mm
    [g58y] g58 y offset 0.000 mm
    [g58z] g58 z offset 0.000 mm
    [g58a] g58 a offset 0.000 deg
    [g58b] g58 b offset 0.000 deg
    [g58c] g58 c offset 0.000 deg
    [g59x] g59 x offset 0.000 mm
    [g59y] g59 y offset 0.000 mm
    [g59z] g59 z offset 0.000 mm
    [g59a] g59 a offset 0.000 deg
    [g59b] g59 b offset 0.000 deg
    [g59c] g59 c offset 0.000 deg
    [g92x] g92 x offset 0.000 mm
    [g92y] g92 y offset 0.000 mm
    [g92z] g92 z offset 0.000 mm
    [g92a] g92 a offset 0.000 deg
    [g92b] g92 b offset 0.000 deg
    [g92c] g92 c offset 0.000 deg
    [g28x] g28 x position 0.000 mm
    [g28y] g28 y position 0.000 mm
    [g28z] g28 z position 0.000 mm
    [g28a] g28 a position 0.000 deg
    [g28b] g28 b position 0.000 deg
    [g28c] g28 c position 0.000 deg
    [g30x] g30 x position 0.000 mm
    [g30y] g30 y position 0.000 mm
    [g30z] g30 z position 0.000 mm
    [g30a] g30 a position 0.000 deg
    [g30b] g30 b position 0.000 deg
    [g30c] g30 c position 0.000 deg
    tinyg [mm] ok>

    #9527
    John Weigel
    Member

    I have the same problem. Although I’m tring to use the A axis as linear only and set it to Radius mode. As it turns out, it doesn’t matter what mode I’m in, tring to move the axis will lock everything. It does move every now and again, but nothing that can be predicted.

    #9528
    cmcgrath5035
    Moderator

    Did you review the wiki, such as

    I believe setting $atn = $atm = a negative value has shut off the motor

    #9529
    ehrichweiss
    Member

    This isn’t just the motor though, this is the TinyG that stops responding. I’ll change that setting here in a bit but I don’t think that completely addresses the issue I’m referring to.

    #9530
    ehrichweiss
    Member

    Nope, didn’t fix it. I still have to reset the TinyG and at least the json server to get it to work again after that. And I might clarify that there is zero response from ANY gcode OR using the TinyG $ commands at that point.

    Just in case it helps, all this is running on Linux.

    #9531
    ehrichweiss
    Member

    I reset all my settings and got back to square one at least. I restored everything except for the max velocity for each axis and I at least got humming out of A. Then when I changed $avm to 500, I got the same behavior as before where nothing worked. When I changed it to 1000 it started working again. I don’t know if there’s a hardwired lower limit but that seems like strange behavior, and maybe a bug somewhere. I’ll investigate it later. My next step is working on the power that’s likely causing the humming motor.

    #9536
    cmcgrath5035
    Moderator

    When you get a chance, post your $$ parameter dump to a cloud drive and provide a URL. Perhaps we will see something that you do not.

    #9537
    ehrichweiss
    Member
    #9538
    cmcgrath5035
    Moderator

    I read

    and

    To say
    $4tr = 360 degrees
    $ara = ?? mm

    Are the proper parameters for the A axis run in radius mode.

    Value ?? depends on what the A motor is connected to.

    #9539
    ehrichweiss
    Member

    I tested those and they didn’t seem to hurt anything but the A-axis is still just humming even after I upped the power. To see if it was something in my config causing A not to move, I switched the A and Z and the A started to try to move far more than it had before but still not quite. Any ideas why that would be the case even after accounting for having adjusted the pots?

    Then I realized that this particular stepper is 3amp and it’s moving a HEAVY chuck so I will likely have to use an external driver for it. I have some from my old controller so I’ll see if I can dig up the wiring on them for the power.

    #9540
    cmcgrath5035
    Moderator

    Are you trying to bore material with a stepper, e.g. use the a axis motor as a spindle?It might be possible with some materials, but…

    #9542
    ehrichweiss
    Member

    No, it’s a rotational axis like a lathe.

    #9543
    ehrichweiss
    Member

    I tested it again and it has to be getting enough current or really close to it because once the motors are energized, it is incredibly hard to turn by hand. Just to make sure I wired it right, I switched 2 of my wires and it started to turn but very slowly and sometimes it would reverse mid-movement. Adjusting the pot didn’t make it go any faster. It also seemed a bit weaker so I’m guessing I wired it correctly the first time.

    I read somewhere that it might have something to do with the step pulse width. Any chance that’s a possibility? I’m definitely getting closer.

    #9544
    cmcgrath5035
    Moderator

    Perhaps you can repost your updated parameter set.
    There is not a huge depth of experience on rotational axis operation, but I do wonder about your $ajm and $ajh values; they seem a bit high.

    Step pulse with for on-board drivers should not be an issue. You do need to verify requirements for your “old” external drivers.

    Have you tried disconnecting the A motor from the machine, to see if it will rotate unloaded?

    Are you direct driving the lathe chuck with the stepper?
    What are you planning to do – cut metal, turn wood, wind coils?

    #9546
    ehrichweiss
    Member

    I tried adjusting $ajm and $ajh down to close to that of $xjm/$xjh and noticed something that I hadn’t noticed before, and not sure whether it was like that with the previous setup. The green LED for A blinks as the motor tries to move. It’s almost as if it’s not getting a full signal. Is that a product of $ajm/$ajh, or something else?

    Yes, I have tested that it will move unloaded. That was one of the first things I checked because I thought maybe it had a lock that I was unaware of. The stepper is connected to the lathe chuck via a belt system. Not sure of the ratio but looks like about a 2:1 or 3:1.

    Anyway, here’s the current config. I re-tested adjusting $avm and definitely if I drop it to 500, TinyG stops responding if I send any commands involving the A-axis. If I reset it back to 1000, it works just fine.

    https://drive.google.com/file/d/0B2ghArPdVqfecUw2b01ROWg2am8/view?usp=sharing

    • This reply was modified 8 years, 7 months ago by ehrichweiss.
Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.