603,310 active members*
2,801 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > G-Code Programing > Problem with Programmed Machine Move After Soft Limit is Hit
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2008
    Posts
    16

    Problem with Programmed Machine Move After Soft Limit is Hit

    I am runnign Mach 4. Take this simple routine that is assigned to a button:

    inst = mc.mcGetInstance()
    mc.mcCntlGcodeExecuteWait(inst,'G90 G00 G53 Z0.0')

    This works fine but if I hit a soft limit with the Y-Axis, it will not perform this move unless I restart Mach or open and close the screen editor. This is true even if I back off of the y-soft limit. Any ideas what is going on here?

  2. #2

    Re: Problem with Programmed Machine Move After Soft Linit is Hit

    Use mc.mcCntlGcodeExecute() Instead

    Sometimes, using mcCntlGcodeExecute() (non-blocking) followed by a wait loop for the interpreter to finish can work around interpreter lockups:

    mc.mcCntlGcodeExecute(inst, 'G90 G00 G53 Z0.0')
    repeat
    local state = mc.mcCntlIsInCycle(inst)
    until state == 0
    http://cncmakers.com/cnc/controllers/CNC_Controller_System/CNC_Retrofit_Package.html

  3. #3
    Join Date
    Dec 2008
    Posts
    16

    Re: Problem with Programmed Machine Move After Soft Limit is Hit

    I worked around this by issuing a command to move the x-axis away from the soft limit by 0.001". I am guessing there is a bug in the Mach code such that it is using a check for "less than" when it should be "less than or equal to". Just a guess.

Similar Threads

  1. Hyundai Hit-20m turret problem!
    By Winamp9 in forum Hyundai Kia
    Replies: 2
    Last Post: 10-14-2024, 02:49 AM
  2. Any problem solvers? -> Need help with G02/G03 programmed as X Y I J
    By Forwardwiththegoat in forum G-Code Programing
    Replies: 12
    Last Post: 10-23-2022, 07:40 PM
  3. plasma z axis and proma 150 thc, linit switches
    By adricar144 in forum CNC Plasma / Oxy Fuel Cutting Machines
    Replies: 1
    Last Post: 06-27-2020, 09:58 AM
  4. Converting from Ruida rdc6442s to controller with no file size linit
    By closeracing in forum Laser Engraving / Cutting Machine General Topics
    Replies: 7
    Last Post: 09-08-2017, 08:01 PM
  5. Hyundai Hit 8s Problem
    By dillweed in forum DNC Problems and Solutions
    Replies: 2
    Last Post: 11-02-2008, 02:22 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •