limit switch issue

when i begin my winding (2x) the carriage will go to the limit switch and then begin the next process but when it comes back it will hit the limit switch hard and just bang against it. i have tried messing with the z offset value but it keeps doing it. anyone have a solution? 

You need to be a member of X-Winder to add comments!

Join X-Winder

Email me when people reply –

Replies

  • We've located this bug in the code, it happens to be an inverse tanget function that divides by zero, and this is what causes the carriage to ram the limit switch ... this should never happen. It happens on some combinations of mandrel diameter and carriage speed, but not all. I'll comment again on this thread when new software download is available.

    Turner

    • Mr. Hunt -

      What is the status of the updated software? Could you provide a tentative date in which the update will be available?

  • Hi Mike, I'm having the same kind of issue with the 4-axis winding machine using 4.17 version of the software.

    When I click on "Build" button in the design software, the program is well executed, with right positions along Z axis. But when I execute it from the corresponding generated G-code, the carriage goes directly in the wrong way to reach its starting position and then hits the limit switch... However, I checked the line commanding to move to starting position, Z value (see bolted value in the following G-code) is ok. When I changed it manually to its oposit value (-9,84 in my case), the carriage went in the right way (no more hitting on the limit switch) but to far, not at the right position and started winding in the wrong way.

    It seems there is an issue with Z axis origin and I don't understand why the program is well executed by clicking on Build button and is not when executed from the corresponding G-code. 

    [G-CODE GENERATED BY X-WINDER DESIGNER v417 on 07/09/2019 15:50]
    [FileName= Demo.X4G ]
    [Units are in INCHES ]
    [FilePath= C:\Program Files (x86)\X-Winder\X-Winder40\XW_G-Code_Files\ ]
    [GENERAL PART DESCRIPTION: LeftDia=3,268 RightDia=3,268 ]
    [GENERAL PART DESCRIPTION: TotLen=7,88 FilaWidth=0,200 ]
    [GENERAL PART DESCRIPTION: FilaThickness=0,0060 ]


    [INITIALIZE WINDING SESSION -------------------------------- ]
    C C1 [DECIMAL COMMA FORMAT = YES]
    G20 [Units are Inches]
    G90 [Absolute Positioning]
    X V417,000 T3 Z4,720 [X-WINDER DESIGNER VERSION NUMBER, FILE TYPE, AND Z-AXIS MEAS. OFFSET DISTANCE]
    M711 H0 M0 S0 [Estimated Total Build Time]

    [ENABLE STEPPERS AND MOVE TO STARTING POSITION --------------- ]
    M17 [Enable Steppers]
    G1 I10 J10 K10 N10 O10 T10 [Linear and Angular Acceleration Settings of Axes]
    G28 E2,000 R4 F1,000 C0,00 [Move Axes to Limit Switches]
    G4 P10000 [Pause 1s at Carriage Limit Switch]
    G1 J1,250 K1,250 O1,250 T10 [Set Axes Accels]
    G4 Z P10000 [Pause 1000ms]
    G1 F1,000 Z9,84 Y2,224 E1,000 B0,00 R20

    [BEGIN 3-AXIS WINDING WITH DH ROTARY MOVEMENT -------------------------------------------------- ]
    D0 ST=Winding Schedule
    M0 [Wait for Button Press to Begin Winding Schedule]

     In hope that somene has a solutionn.

  • Hi,

    Can you send an example of your gcode or xwinder file?

    • [G-CODE GENERATED BY X-WINDER DESIGNER v420 on 07/08/2019 14:04]
      [FileName= newTestCodeG.X2G ]
      [Units are in INCHES ]
      [FilePath= C:\Users\E203374\Documents\X-Winder\X-Winder40\XW_G-Code_Files\ ]
      [GENERAL PART DESCRIPTION: LeftDia=0.375 RightDia=0.375 ]
      [GENERAL PART DESCRIPTION: TotLen=6.00 FilaWidth=0.040 ]
      [GENERAL PART DESCRIPTION: FilaThickness=0.0200 ]


      [INITIALIZE WINDING SESSION -------------------------------- ]
      C C0 [DECIMAL COMMA FORMAT = NO]
      G20 [Units are Inches]
      G90 [Absolute Positioning]
      X V420.000 T2 Z1.000 [X-WINDER DESIGNER VERSION NUMBER, FILE TYPE, AND Z-AXIS MEAS. OFFSET DISTANCE]
      M711 H0 M30 S0 [Estimated Total Build Time]

      [ENABLE STEPPERS AND MOVE TO STARTING POSITION --------------- ]
      M17 [Enable Steppers]
      G28 F1.000 [Move Carriage to LS]
      G4 Z P10000 [Pause 1000ms]
      G1 F1.000 Z1.100 [Move Carriage to Starting Position]

      [BEGIN 2-AXIS WINDING --------------------------------------------------------- ]
      D0 ST=Winding Schedule
      M0 [Wait for Button Press to Begin  Winding Schedule]

      [BEGIN LAYER 1 of 3 --------------------------------------------------- ]
      M4 S30 [Mandrel CW Rotation]
      M602 [Save the Mandrel Home End Reference Angle at Start of First Pass to Register L602]
      G1 F0.02 Z7.10 [Carriage Move to Z=7.10]
      M601 [Save Mandrel Ref Angle]

      [BEGIN LAYER 2 of 3 --------------------------------------------------- ]
      M4 S28.7 [Mandrel CW Rotation]
      M602 [Save the Mandrel Home End Reference Angle at Start of First Pass to Register L602]
      G1 F0.33 Z7.10 [Carriage Move to Z=7.10]
      M601 [Save Mandrel Ref Angle]

      [BEGIN LAYER 3 of 3 --------------------------------------------------- ]
      M4 S29.4 [Mandrel CW Rotation]
      M602 [Save the Mandrel Home End Reference Angle at Start of First Pass to Register L602]
      G1 F1 Z7.10 [Carriage Move to Z=7.10]
      M601 [Save Mandrel Ref Angle]

      D0 GM=Winding_Process_Complete
      M5 [Mandrel Stop - Winding Complete]

      M5 [Mandrel Stop]

  • I'm having the same issue when I edit a G-Code file. Has anyone found a solution to this?

This reply was deleted.