Limit switch and System shutdown error

Home Forums TinyG TinyG Support Limit switch and System shutdown error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4042
    shaileshal
    Member

    I am trying to get the limit switch configure and working with TinyG V7.0 with 0.95 firmware running on it. The build is 370.08.

    My limit switch is NC and have the $st=1 configured.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:17:03.556 [TX] – $st<CR><LF>

    01/01/2009 02:17:05.350 [RX] – [st]  switch type                 1 [0=NO,1=NC]<LF>

    tinyg [mm] ok> <LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    I have connected the limit switch to Xmin and this is my X axis setting

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:16:32.256 [TX] – $x<CR><LF>

     

    01/01/2009 02:16:33.277 [RX] – [xam] x axis mode                 1 [standard]<LF>

    [xvm] x velocity maximum        600.000 mm/min<LF>

    [xfr] x feedrate maximum        600.000 mm/min<LF>

    [xtm] x travel maximum          150.000 mm<LF>

    [xjm] x jerk maximum       20000000 mm/min^3<LF>

    [xjh] x jerk homing        20000000 mm/min^3<LF>

    [xjd] x junction deviation        0.0500 mm (larger is faster)<LF>

    [xsn] x switch min                1 [0=off,1=homing,2=limit,3=limit+homing]<LF>

    [xsx] x switch max                0 [0=off,1=homing,2=limit,3=limit+homing]<LF>

    [xsv] x search velocity         500.000 mm/min<LF>

    [xlv] x latch velocity          100.000 mm/min<LF>

    [xlb] x latch backoff            10.000 mm<LF>

    [xzb] x zero backoff              2.000 mm<LF>

    tinyg [mm] ok> <LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    I am setting the limit switch in Homing + Limit. As in my previous trial and issue posted already it was just configured as Homing only.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:16:44.257 [TX] – $xsn=3<CR><LF>

     

    01/01/2009 02:16:48.139 [RX] – [xsn]  switch min                3 [0=off,1=homing,2=limit,3=limit+homing]<LF>

    tinyg [mm] ok> <LF>

     

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Now that the limit switch is configued, i move a location as follows:

    I have configued my homing position @ X zero itself. using the G28.1 command as follows:

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:17:55.933 [TX] – g28.1<CR><LF>

    01/01/2009 02:17:58.376 [RX] – tinyg [mm] ok> <LF>

    tinyg [mm] ok> <LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Now we move to a different position X50.

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:18:01.480 [TX] – x50<CR><LF>

     

    01/01/2009 02:18:07.065 [RX] – tinyg [mm] ok> <LF>

    posx:0.000,vel:0.272,stat:5<LF>

    tinyg [mm] ok> <LF>

    posx:0.019,vel:29.946<LF>

    posx:0.133,vel:114.147<LF>

    posx:0.422,vel:226.052<LF>

    posx:0.857,vel:288.524<LF>

    posx:1.349,vel:300.000<LF>

    posx:1.824<LF>

    posx:2.324<LF>

    posx:2.823<LF>

    posx:3.323<LF>

    posx:3.798<LF>

    posx:4.298<LF>

    posx:4.797<LF>

    posx:5.297<LF>

    posx:5.772<LF>

    posx:6.272<LF>

    posx:6.771<LF>

    posx:7.246<LF>

    posx:7.746<LF>

    posx:8.246<LF>

    posx:8.745<LF>

    posx:9.220<LF>

    posx:9.720<LF>

    posx:10.220<LF>

    posx:10.719<LF>

    posx:11.194<LF>

    posx:11.694<LF>

    posx:12.194<LF>

    posx:12.693<LF>

    posx:13.168<LF>

    posx:13.668<LF>

    posx:14.168<LF>

    posx:14.667<LF>

    posx:15.142<LF>

    posx:15.642<LF>

    posx:16.142<LF>

    posx:16.641<LF>

    posx:17.116<LF>

    posx:17.616<LF>

    posx:18.116<LF>

    posx:18.616<LF>

    posx:19.090<LF>

    posx:19.590<LF>

    posx:20.090<LF>

    posx:20.590<LF>

    posx:21.064<LF>

    posx:21.564<LF>

    posx:22.064<LF>

    posx:22.539<LF>

    posx:23.038<LF>

    posx:23.538<LF>

    posx:24.038<LF>

    posx:24.513<LF>

    posx:25.013<LF>

    posx:25.512<LF>

    posx:26.012<LF>

    posx:26.487<LF>

    posx:26.987<LF>

    posx:27.486<LF>

    posx:27.986<LF>

    posx:28.461<LF>

    posx:28.961<LF>

    posx:29.460<LF>

    posx:29.960<LF>

    posx:30.435<LF>

    posx:30.935<LF>

    posx:31.434<LF>

    posx:31.934<LF>

    posx:32.409<LF>

    posx:32.909<LF>

    posx:33.408<LF>

    posx:33.908<LF>

    posx:34.383<LF>

    posx:34.883<LF>

    posx:35.382<LF>

    posx:35.857<LF>

    posx:36.357<LF>

    posx:36.857<LF>

    posx:37.356<LF>

    posx:37.831<LF>

    posx:38.331<LF>

    posx:38.830<LF>

    posx:39.330<LF>

    posx:39.805<LF>

    posx:40.305<LF>

    posx:40.804<LF>

    posx:41.304<LF>

    posx:41.779<LF>

    posx:42.279<LF>

    posx:42.778<LF>

    posx:43.278<LF>

    posx:43.753<LF>

    posx:44.252<LF>

    posx:44.752<LF>

    posx:45.252<LF>

    posx:45.727<LF>

    posx:46.226<LF>

    posx:46.726<LF>

    posx:47.226<LF>

    posx:47.701<LF>

    posx:48.200<LF>

    posx:48.700<LF>

    posx:49.190,vel:286.691<LF>

    posx:49.596,vel:221.503<LF>

    posx:49.876,vel:114.147<LF>

    posx:49.983,vel:29.946<LF>

    posx:50.000,vel:0.068<LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Now we provide the homing command G28. Once the slide starts moving, we press the limit switch expecting it to stop and move in reverse direction. But the moment limit switch is pressed the error is generated as below:

    {“er”:{“fb”:370.08,”st”:27,”msg”:”System shutdown”,”val”:1}}<LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    01/01/2009 02:18:21.262 [TX] – g28<CR><LF>

     

    01/01/2009 02:18:24.364 [RX] – tinyg [mm] ok> <LF>

    posx:50.000,vel:0.275,momo:0<LF>

    tinyg [mm] ok> <LF>

    posx:49.981,vel:30.372<LF>

    posx:49.864,vel:115.771<LF>

    posx:49.557,vel:256.267<LF>

    posx:49.018,vel:413.774<LF>

    posx:48.223,vel:529.477<LF>

    posx:47.283,vel:590.083<LF>

    posx:46.289,vel:600.000<LF>

    posx:45.290<LF>

    posx:44.340<LF>

    posx:43.341<LF>

    posx:42.341<LF>

    posx:41.342<LF>

    posx:40.392<LF>

    posx:39.393<LF>

    posx:38.393<LF>

    posx:37.394<LF>

    posx:36.444<LF>

    posx:35.445<LF>

    posx:34.446<LF>

    posx:33.446<LF>

    posx:32.497<LF>

    {“er”:{“fb”:370.08,”st”:27,”msg”:”System shutdown”,”val”:1}}<LF>

     

    01/01/2009 02:18:32.794 [TX] – ?<CR><LF>

    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    I am unable to understand what causes the shutdown, this is simply a limit switch press for stoping the movement.

    I have tried the Homing only mode also, there the SHUTDOWN is not seen , but neither the homing is happening.

    Kindly provide tips for getting the HOMING and limit switch functionality working.

     

     

    #4044
    alden
    Member

    Please refer to my answer on your other post, and reference this page:
    https://github.com/synthetos/TinyG/wiki/TinyG-Homing

    You are confusing the G28.1 / G28 “return to home” sequence with the g28.2 machine homing cycle.

    What is happening is that you are in normal movement in G28 and since you set the switch as a limit and then hit it the machine goes into shutdown, as it should. Please try homing using the G28.2 command.

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