YET anotherHoming Issue

Home Forums TinyG TinyG Support YET anotherHoming Issue

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #10439
    bjp6555
    Member

    So I’m trying to home X axis! When it its the switch it stops and never backs off the switch! I had it working a week ago!
    Partial config file
    [fb] firmware build 440.20
    [fv] firmware version 0.97
    [hp] hardware platform 1.00
    [hv] hardware version 8.00
    [id] TinyG ID 5X0850-CSH
    [ja] junction acceleration 39370 in
    [ct] chordal tolerance 0.0004 in
    [sl] soft limit enable 0
    [st] switch type 1 [0=NO,1=NC] I’ve tried both
    [mt] motor idle timeout 10.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 2 [0=off,1=XON/XOFF, 2=RTS/CTS]

    [1ma] m1 map to axis 0 [0=X,1=Y,2=Z…]
    [1sa] m1 step angle 1.800 deg
    [1tr] m1 travel per revolution 2.3622 in
    [1mi] m1 microsteps 8 [1,2,4,8]
    [1po] m1 polarity 1 [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…]

    [xam] x axis mode 1 [standard]
    [xvm] x velocity maximum 31 in/min
    [xfr] x feedrate maximum 31 in/min
    [xtn] x travel minimum 0.000 in
    [xtm] x travel maximum 12.000 in
    [xjm] x jerk maximum 1 in/min^3 * 1 million
    [xjh] x jerk homing 2 in/min^3 * 1 million
    [xjd] x junction deviation 0.0020 in (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 20 in/min
    [xlv] x latch velocity 4 in/min
    [xlb] x latch backoff 0.787 in
    [xzb] x zero backoff 0.118 in

    #10440
    cmcgrath5035
    Moderator

    Hits switch and stops, or hits switch and dies/reboots/flashes(as it would if the switch was a limit)?

    Anything unusual happen since last it worked?

    How do you send commands to tinyG: CoolTerm, Chilipeppr, etc?

    Observation:Your parameter values look a bit strange.
    Not necessarily invalid, just strange.
    For example, why would you enter $xlv=4 in/min (a nice, round number) but $xlb=0.787in? A quick calc finds 0.787= approx 20mm.
    Did you enter machine settings in mm mode or inch mode?
    If issues continue, you might want to try sending $def=1 to tinyG, resetting all parameters to default.
    Then reenter your parameters in mm mode from a Command Line Interface.
    A reminder, save a copy of $$ listing so you have a reference point for reloading.

    Another thing to try:
    Position (via jog ) the machine at X= 8in or so (good distance from Home).
    Send the Home X command as machine starts to move, then manually operate the limit switch to see if the behavior repeats that far away from the switch.
    What should happen is the machine stop, then start to back away.

    Best guess – parameter corruption.
    I while ago folks using the Chilipeppr Parameter widget in inch mode were sometimes seeing a parameter corruption issue. The root cause was never found, have not seen it recently.

    • This reply was modified 7 years, 4 months ago by cmcgrath5035.
    • This reply was modified 7 years, 4 months ago by cmcgrath5035.
    #10443
    bjp6555
    Member

    Hits switch and stops! disconnects from json server!
    tinyG and Chilipeppr!
    Entered machine settings in inch mode (not sure how to change it back to MM)
    I think I’ll do the reset $def=1 and reenter all settings!
    but 1st I’ll try the 8inch away from home and see what happends!
    Thank you for your suggestions!
    Brian

    #10444
    bjp6555
    Member

    So I did a reset on the board, reloaded my parameters and still no luck! Chilipeppr is my choice and I guess I could reset again and try coolterm but my laptop won’t support coolterm! It does seem like the switch is acting like a limit even when choosing Homing! Not sure what to do now!

    #10446
    JuKu
    Member

    Any other switches configured to a limit switch?

    #10447
    cmcgrath5035
    Moderator

    Sending Gcode command “G20” (without the quotes) from the console widget will put tinyG in inch mode.
    Sending Gcode “G21” will put tinyG into mm mode.
    See

    Rereading from the top, with the context that tinyG crashes/reboots when you hit switch, based on “..Hits switch and stops! disconnects from json server!..”.
    You said it worked at one time – for many cycles, or just one?
    I now have to question your switch wiring.
    What sort of switches (mechanical, electronic/proximity) ?
    Did you use shielded twisted pair to wire to the switches from tinyG port?
    What port on the switch did you wire to(NO or NC)?

    One of your twisted pairs should be Gnd at tinyG end, the other should connect to the axis input port. Is that the way you wired it?
    If the wire connects to the NC port, then $st=1.
    See also

    CoolTerm is available for Win, Mac and Linux, but Chilipeppr console widget should work just as well, just a bit more complex setup.

    Re-enter your parameters, one at a time from command line, in mm mode.
    Run $$ in mm mode from command line, copy and paste the complete dump to a file , post the file to a cloud drive (Gdrive, etc.) and post a URL here.
    That will reveal you whole setup, in a much more readable format.

    #10449
    bjp6555
    Member

    When I 1st wire the switch I did a few test runs and it worked!
    The switch I used is from smw3d Limit Switch using the wire that came with the switch!
    Green to ground
    Black to 3.3 volt
    Red to Xmin
    Could I have miss read that Black should go to 3. volt? I would think that Red would would go to 3.3 volt!
    I’ve tried both NO and NC switch type!
    Brian

    #10450
    bjp6555
    Member

    Limit Switch
    https://drive.google.com/file/d/0B6n02RjzpTAHVTZlRVFOYzF3NkE/view?usp=sharing

    • This reply was modified 7 years, 4 months ago by bjp6555.
    #10452
    cmcgrath5035
    Moderator

    Hmmm, I cannot find a schematic for this smw3d, so the following is somewhat of a guess.

    tinyG assumes passive NO or NC switch closure is used.
    There should be no connection to 3.3V required, the tinyG input ports have a pullup resistor to 3.3v on the tinyG board.

    How did you connect this to tinyG, cut off the connector?
    The only connector on tinyG that might accept this directly is the fan connector, but doing that will definitely not work.

    Do you have an ohmmeter available?
    I might guess that the wires on this unit MIGHT be:
    Black – Common
    Red – NC (or NO)
    Grn – NO (or NC)

    You need to determine which 2 leads constitute a NC switch, then wire to Gnd and the tinyG port. That should work, but might not depending on what the passive Rs and Cs on the smw3d actually do.

    #10454
    bjp6555
    Member

    CMCGrath, you hit it on the head! Disconnected the black wire on the 3volt, left the green and red wires in place and X homed very nicely! Going to now setup up Y AND Z, and hopefully all will go well!
    Thank you so much for your support 🙂
    Brian

    • This reply was modified 7 years, 4 months ago by bjp6555.
    #10457
    cmcgrath5035
    Moderator

    Good luck with your finish

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.