585,973 active members*
4,199 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Dynomotion/Kflop/Kanalog > Canned C Program For Rotating Coordinate System To Match Stock
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2017
    Posts
    2

    Canned C Program For Rotating Coordinate System To Match Stock

    My machine: 3 axis Techno Isel ~49inch x ~69 inch gantry style router table. Running the stock Techno Isel servos and motor drivers all wired up to a KFLOP/KANALOG board.

    What I would like to do is write a program that allows me to adjust the XY coordinate plane to match the orientation of my stock.

    In other words, I would like to push a button, touch off one corner of my stock, touch off a second corner of my stock, mathematically draw a straight line between those two points, compare that straight line to the XY machine coordinate system, and finally rotate the machine coordinate system to match.

    This would allow me (I think) to quickly clamp a piece of stock to my table, run this canned program and then run the G-Code for my part. Therefore, I would no longer need to get out the dial indicator or build a fixture jig to ensure my stock is squared to the table properly before cutting my part(s).

    Has anyone done something like this? I'm not even sure what a program like this would be called and I've had a rough time digging up useful information. That said, I would classify my coding ability closer to a script kiddie than anything else. If I have a couple examples to look at or insight into which libraries or functions to research, I can usually figure it out.

    Any and all help would be greatly appreciated. Thanks so much for everyone's time!

    -Sean

    --

  2. #2
    Join Date
    Jun 2004
    Posts
    355

    Re: Canned C Program For Rotating Coordinate System To Match Stock

    What you need to use is the Geometric Correction capability - Geo Correction Table

    There is a good example of GeoCorrection in use, along with a video demonstration using a camera at KMotionCNC Fiducial Alignment

    And the topic was covered recently on the Yahoo Group, with an example where the user enters the angle of rotation needed (scroll down to the last post) - https://groups.yahoo.com/neo/groups/...s/topics/15325
    It doesn't do quite what you need it to, and will need adapted to use two probing moves, but that shouldn't be too hard. If you're stuck, just post back, and I'm sure somebody will help with the required edits to that last example (I'd do it, but I'd have to go and remember how to do a probing move in C)

  3. #3
    Join Date
    May 2017
    Posts
    2

    Re: Canned C Program For Rotating Coordinate System To Match Stock

    That's exactly what I needed! Thank you very much m_c!

    It'll probably take me a few days to get this shorted. I'll let you know if I run into any roadblocks. Otherwise, I'll post my final code once I get it functional for anyone interested.

    --

Similar Threads

  1. Moving Coordinate System to Edge of Rough Stock
    By Sierevello in forum GibbsCAM
    Replies: 0
    Last Post: 12-30-2016, 06:34 AM
  2. Problem with stock (STL) file after i add new MAC coordinate
    By Hrki in forum SolidCAM for SolidWorks and SolidCAM for Inventor
    Replies: 1
    Last Post: 07-03-2013, 12:45 PM
  3. How to move Mill Stock to match part's 0,0?
    By cismontguy in forum BobCad-Cam
    Replies: 4
    Last Post: 03-05-2013, 06:58 PM
  4. Replies: 13
    Last Post: 01-08-2013, 03:38 PM
  5. Work coordinate in canned cycle line
    By acseatsri in forum G-Code Programing
    Replies: 1
    Last Post: 02-15-2005, 04:11 AM

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
  •