Page 3 of 5 FirstFirst 12345 LastLast
Results 25 to 36 of 49

Thread: Building a software Indexer

  1. #25
    Community Moderator Al_The_Man's Avatar
    Join Date
    Dec 2003
    Location
    Canada
    Posts
    19117
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by bernster View Post
    Still alone in the wilderness.
    The footy must be good this weekend.
    Oh well, there you have it.
    Maybe I should have worked in fast food.
    NOW I know who you are, Sheldon Cooper on the Big Bang Theory!
    Very interesting, nonetheless.
    Al.
    CNC, Mechatronics Integration and Custom Machine Design (Skype Avail).

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.


  2. #26
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    Next to Battlestar Galactica, SGU,BAB,etc.,etc.,........
    'Big Bang' is definitely my favorite show.
    Sheldon Cooper is my all time hero, or maybe Spock
    Nope,
    Sheldon Cooper is my all time hero!
    I am both honored and humbled by the compliment Al.


  3. #27
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    Hope this image isn't too small

    Attached Thumbnails Attached Thumbnails Building a software Indexer-ijarc.jpg  


  4. #28
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1766
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by bernster View Post
    There's a bucket load of good tutorials online, that can get you
    coding with Python very quickly.
    Try, You tube, search 'Bucky Python'
    Bucky is, um, unique, isn't he...

    "Bam! Roast it, toast it!"
    Last edited by doorknob; 07-03-2011 at 11:13 AM.


  • #29
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    Bucky is indeed quite a character, but I do know this, he is one super smart cookie. Bucky really does know his stuff, if you go along for the ride, practice what he shows you and you'll learn plenty. There's a whole lot more out there but Bucky can give you a great head start.
    Although I'm not an educator, If you get stuck on something I can maybe give you a heads up on some code.
    There are some strange concepts to get your head around, even then, this won't stop you writing and using good code.
    But I gotta tell ya this, unlike C++, Python is a very forgiving language.
    As an analogy;
    If you make a mistake in C, you might loose a finger.
    If you make a mistake in C++ it'll blow your arm clean off.
    If you screw up in Python, you'll mostly get the likes of;
    "traceback", then, what really means "you might want to do this differently dude"
    Learning Python should be a smooth ride.
    Besides myself, there are literally thousands of Python users out there,
    that will happily give you useful advice.
    Bucky isn't the only good guy on you tube either, there are many others.
    David Ranum is another, he's real good and in a way a bit like me, he goes deep, deep,
    into the meanings and concepts and leaves no stone unturned.
    I'm gonna post a little 'stall this thread' message and wait to see if there's
    any interest for advancing. So I'll keep an eye on this and you can post a question
    any time.


  • #30
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    Now that there is a visual representation of the 2 G-code lines, we may
    be able to see the potential for further extraction of information from
    the same 2 G-code lines.
    We all know computers are blind and all they can do is count real fast,
    a program needs as much information as it can get.

    I'm going to leave this for a while and see if there's interest.
    If there is, we can play 'vectors' and 'quadrants'.


  • #31
    Community Moderator ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Twp, MI....USA
    Posts
    22213
    Downloads
    0
    Uploads
    0
    I still don't understand the purpose of "extracting" this additional info from the g-code?
    Gerry

    Mach3 2010 Screenset
    http://home.comcast.net/~cncwoodworker/2010.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)


  • #32
    Registered
    Join Date
    May 2005
    Location
    canada
    Posts
    1164
    Downloads
    0
    Uploads
    0
    This tread rambles a bit
    Going back to post #1
    Quote Originally Posted by bernster View Post
    Anyhow, back to the subject, I was going to use Mach3 as the software indexer for the machine, but have found that it has some quirks that I don't like, as in, rounding off corners when I don't want it to.
    The goal is to continue using Mach with Gcode from your own CAM software ?
    The Gcode created by your program(s) will slow the machine down at abrupt changes of direction ? Or possibly it will "roll" around sharp corners as seen in the better CAM softwares ? Examples of creating Gcode with python are plentiful but I can't think of any that have that function. Surely the plan isn't to replace Mach with a with something written in an interpreted language ?

    I'm just trying to get a handle on the endgame.
    Anyone who says "It only goes together one way" has no imagination.


  • #33
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    One program I wrote takes output from a few cad programs, processes it,
    then outputs it again to Mach3, in a certain way that's good for me.
    I have built my program in a way that it can store hundreds of process methods that result in changes to the way a cnc will behave during operation.
    I can change these methods any time I want and do it in seconds without having to 'pop it's hood'.
    My program isn't a text editor like 'notepad' either, although I can write code
    in notepad and it will process that also.
    I can leave out things like; M words, F words, G4 P words, Z words, etc.,
    It can take care of all the boring stuff for me.
    I can still include any of these words if I want to and if I make a mistake,
    it won't hang up, or even tell me, it just puts it right.
    It doesn't just look at code words as text, it processes their values as well.

    So far it handles a few code flavors and now I'm going to add HPGL 2.5D.
    Some might say, "why would you want to do that?".
    Well... because I can.

    I have a real old cad program that can't output code that Mach3 needs.
    In fact it's output is completely unreliable. But it's still handy to draw with,
    so my program takes that ol' cad output and gives it to Mach3 freshly packaged.
    While it's doing this, it'll insert additional code for anything else I want.

    The program just rips code, deals with it, then spits it out to anywhere I want it to go and does so as fast as my motherboard can handle it.

    I want to do some 'fine detailed' engraving, sharp corners included and I'm not going to be doing this at high speed either.

    Mach is like my screwdriver, and if my screwdriver isn't right for a job, then
    I'll get out another one that is.
    It isn't personal so I wouldn't have hard feelings toward the screwdriver because of it's size or shape. I like my screwdriver.

    So you see for almost everything, I don't have a problem with Mach.
    I like it a whole lot.
    But I can't just 'pop it's hood' and tinker with it, so I'll make myself another.

    Just maybe, mine won't be much better than a smart toaster, but then it's only going to cost me some spare time.


  • #34
    Registered doorknob's Avatar
    Join Date
    Jan 2010
    Location
    USA
    Posts
    1766
    Downloads
    0
    Uploads
    0
    Just wanted to thank you again for pointing me to the bucky youtube python tutorials.

    A long time ago I bought an introductory python book, but just never could get into it.

    So far, though, I've gone through 34 of the 43 bucky video tutorials, and his quirky style kept my attention while making the basics of the language understandable.

    I will continue through the rest of the videos, and then I should have enough background to tackle the book as well as do my own programs (and it looks like I can use python to handle a number of tasks that I'd like to accomplish).


  • #35
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    Looks like the light went on doorknob, The Python force is indeed strong, If you get stuck on anything, don't panic, you can ask me or as I said, there are many who will help you.
    Python was built on purpose for everyone, it's not just for those 'I'm so clever, know it alls'.
    Last edited by bernster; 07-04-2011 at 06:52 AM. Reason: bad grammar


  • #36
    Registered
    Join Date
    Sep 2009
    Location
    australia
    Posts
    96
    Downloads
    0
    Uploads
    0
    A kind of question has demanded an answer.
    But some readers may suffer for no apparent reason for it anyway.
    I'm sure that normal every day CNC Zoners, are forgiving creatures.
    And not being one to mention names ...
    < ger21 > # darn, I thought I hid that, sorry Gerry :-).

    Part1:
    Well, I see what you mean and there's probably many others thinking the same
    thing. No one is wrong for thinking the same thing.
    Your observation is quite valid.
    The words on the 2 G-code line themselves are indeed enough for an 'indexer'
    to process and yes, we do have one or two peices of the puzzle.

    The idea here though, is to create an actual indexer itself.
    I think the 'Heading' for this thread might be a small clue at the least :-)

    So far, I have posted a small amount of insanely simple math as a 'primer'.
    This math would be used in the construction of an indexers' 'functions',
    'functions' are the building blocks of a program.

    A 'function' is created to solve problems.
    It can take whatever type of information you give it, examine it in a
    logical way, then give you back nothing, some answer you were looking for,
    or take some other action that you have already given it permission to carry out.
    Functions can even call on other functions to give you some other quite different
    result and the road to getting there can be as complex as a sailors' best knot.
    But there's no point yet writing any program code.

    The math we have at this time, can only be used to construct 'functions' that
    could return to us;

    The start point for an arc
    The arc distance
    The angle
    The end point of the arc


  • Page 3 of 5 FirstFirst 12345 LastLast

    Similar Threads

    1. Tool indexer
      By blades in forum Mini Lathe
      Replies: 40
      Last Post: 04-30-2011, 01:06 AM
    2. DWG Indexer
      By hownewsday in forum General CAD Discussion
      Replies: 0
      Last Post: 02-22-2011, 04:49 AM
    3. using the indexer
      By woodman08 in forum LOGILASE 9060/12080/150120 / 250120 cnc lasers
      Replies: 0
      Last Post: 03-10-2010, 05:42 PM
    4. Indexer software
      By Art Ransom in forum Wood Lathes / Mills
      Replies: 4
      Last Post: 07-15-2008, 06:47 PM
    5. Indexer LPT - HELP!
      By CNC Pro in forum General CAM Discussion
      Replies: 3
      Last Post: 03-11-2004, 03:20 PM

    Posting Permissions



    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.