file analysis

Results 1 to 9 of 9

Thread: file analysis

  1. #1
    Member Clyde_IT's Avatar
    Join Date
    Nov 2021
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default 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

    Similar Threads:


  2. #2
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1304
    Downloads
    0
    Uploads
    0

    Default Re: file analysis

    Your machine limits are not set correctly.



  3. #3
    Member Clyde_IT's Avatar
    Join Date
    Nov 2021
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default 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
    Member ScorpionTDL's Avatar
    Join Date
    Aug 2020
    Posts
    131
    Downloads
    0
    Uploads
    0

    Default 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
    Member PlanetCNC's Avatar
    Join Date
    Mar 2017
    Location
    Slovenia
    Posts
    1304
    Downloads
    0
    Uploads
    0

    Default 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
    Member Clyde_IT's Avatar
    Join Date
    Nov 2021
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default 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
    Member ScorpionTDL's Avatar
    Join Date
    Aug 2020
    Posts
    131
    Downloads
    0
    Uploads
    0

    Default 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
    Member Clyde_IT's Avatar
    Join Date
    Nov 2021
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default Re: file analysis

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



  9. #9
    Member Clyde_IT's Avatar
    Join Date
    Nov 2021
    Posts
    35
    Downloads
    0
    Uploads
    0

    Default 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)



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

file analysis

file analysis