585,685 active members*
4,726 visitors online*
Register for free
Login
Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2021
    Posts
    35

    file analysis

    Good morning to all.
    Example:
    In my CNC I've a 2 meters work limit on Y axis.
    If I launch a G-Code with a line of Y=2100 the machine run until this line, after I've a "machine limit reached" message. It is a correct behavior?
    Can I analyze my G-code BEFORE i run it, for to see limit error? Or I've made any mistake in configuration?
    Thank's

  2. #2
    Join Date
    Mar 2017
    Posts
    1304

    Re: file analysis

    Your machine limits are not set correctly.

  3. #3
    Join Date
    Nov 2021
    Posts
    35

    Re: file analysis

    Why this?
    Okay, maybe I'm not explaining this right...
    I've my limit set on Xaxis 0 and 1000, for example.
    I set my zero on zero of machine.
    If I launch g-code X1500 the machin must not run, correct?
    Instead machine start and only when reach 1000 it stop and send message (machine limit reached)...
    I hope I've been clear...
    L.

  4. #4
    Join Date
    Aug 2020
    Posts
    131

    Re: file analysis

    Indeed, some kind of precheck if the machine is capable of running the complete code, within its set limits, would be nice.

  5. #5
    Join Date
    Mar 2017
    Posts
    1304

    Re: file analysis

    This can be easy done in OnStart script. Just compare _prog_min_? and _prog_max_? parameters with _motorlimit_? parameters.
    I had this on mine machine and I hated it. I prefer to check bounds in 3D display.

  6. #6
    Join Date
    Nov 2021
    Posts
    35

    Re: file analysis

    Quote Originally Posted by ScorpionTDL View Post
    Indeed, some kind of precheck if the machine is capable of running the complete code, within its set limits, would be nice.
    yes, in fact...

    - - - Updated - - -

    Quote Originally Posted by PlanetCNC View Post
    This can be easy done in OnStart script. Just compare _prog_min_? and _prog_max_? parameters with _motorlimit_? parameters.
    I had this on mine machine and I hated it. I prefer to check bounds in 3D display.
    ok, i'll try now

  7. #7
    Join Date
    Aug 2020
    Posts
    131

    Re: file analysis

    Adding

    o<chksize> if[#<_prog_min_x> LT #<_motorlimit_xn> OR #<_prog_max_x> GT #<_motorlimit_xp> OR #<_prog_min_y> LT #<_motorlimit_yn> OR #<_prog_max_y> GT #<_motorlimit_yp>]
    (msg, Warning, Toolpath exceeds Machine Limits)
    O<chksize> endif

    to the onstart script seems to give the desired result.

  8. #8
    Join Date
    Nov 2021
    Posts
    35

    Re: file analysis

    Yes, I wrote something like this and it works...
    Thank's, again

  9. #9
    Join Date
    Nov 2021
    Posts
    35

    Re: file analysis

    For every axes:

    o<chkx> if [#<_prog_max_x> GT #<_motorlimit_xp> OR #<_prog_min_x> LE #<_motorlimit_xn>]
    M64 H1 Q0 L10
    M64 H1 P3 Q1 L10
    (msg, Asse X fuori limite)
    M2
    o<chkx> endif

    (M64 H1 P3 Q1 L10 run red light)

Similar Threads

  1. force analysis
    By sml2010 in forum Solidworks
    Replies: 0
    Last Post: 12-29-2014, 09:16 AM
  2. Motion Analysis Help
    By valentinem in forum Solidworks
    Replies: 0
    Last Post: 02-02-2012, 07:56 PM
  3. trend analysis
    By omnilayser in forum Australia, New Zealand Club House
    Replies: 0
    Last Post: 07-13-2011, 08:03 PM
  4. New Machine Analysis
    By kaizad in forum Uncategorised MetalWorking Machines
    Replies: 0
    Last Post: 10-16-2008, 11:33 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
  •