SBL Magnaturn Retrofit - Page 8


Page 8 of 8 FirstFirst ... 5678
Results 85 to 96 of 96

Thread: SBL Magnaturn Retrofit

  1. #85
    Registered
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    330
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Here's the code from an old backup I've got on my laptop, although I have a niggle in my mind that I had to change the offset calculation on the lathe.



  2. #86
    Registered
    Join Date
    Jun 2004
    Location
    Scotland
    Posts
    330
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Here's the code from an old backup I've got on my laptop, although I have a niggle in my mind that I had to change the offset calculation on the lathe.
    I would got out to the workshop to check, but I'm choked with a cold so have been having a very lazy weekend staying inside where it's warm!

    Couple notes are this checks to ensure you're in metric mode, and you have to move the X axis back to the cut position before setting the offset I.e. if you do a pass at 10mm then pull out to stop rubbing, you have to ensure the axis is moved back to 10mm before running this offset program. I normally do a single pass, pull out, move far enough in Z to clear the stock, move X back to the cut depth, then run the program.

    Code:
    #include "KMotionDef.h"
    #include "cyclone.h"
    #include "KflopToKMotionCNCFunctions.c"
    
    main()
    {
    	int	Units, TWORD, HWORD, DWORD;
    	double DROx, DROy, DROz, DROa, DROb, DROc, OffsetX;
    	double XMeasured, XDiff, XNewOffset;
    	float XEntered;
    	// get current DRO reading (we only need X, but we have to handle them all)
    	GetDROs(&DROx, &DROy, &DROz, &DROa, &DROb, &DROc);
    	// get the current Units and ToolTblID (and ignore the H and D Words)
    	GetMiscSettings(&Units, &TWORD, &HWORD, &DWORD);
    	// if KMotionCNC is in inch/G20 mode, then quit as it shouldn't be
    	if(Units == CANON_UNITS_INCHES){
    		MsgBox("KMotion set to inches. Set to MM and retry",MB_OK|MB_ICONEXCLAMATION);
    		ThreadDone();
    	}
    	// get the X offset from the tool table using the TWORD as index
    	GetToolOffsetX(TWORD, &OffsetX);
    	// now we have those, ask the operator for the actual size
    	int Answer = InputBox("Enter measured diameter in MM",&XEntered);
    	printf("Entered Value-%f\n",XEntered);
    	XMeasured = XEntered;
    	if(Answer) {	// if true/1, then user cancelled
    		MsgBox("X Offset adjustment cancelled",MB_OK|MB_ICONEXCLAMATION);
    		ThreadDone;		// and kill the thread
    	} else { // else we got a value and need to do some calcs
    		// first up we'll calculate the difference
    		XDiff = DROx - XMeasured;
    		// then the new offset with some rounding
    		XNewOffset = RoundToReasonable(OffsetX + XDiff,Units);
    		// and finally update the tool table
    		SetToolOffsetX(TWORD, XNewOffset);
    	}
    }
    And I've just noticed that calls my cyclone header file. You can delete that line, and just add a define for TMP if you don't already have one.
    This was one of the included example files that I modified.



  3. #87
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Hi m_c,
    Dont blame ya on the cold, its getting like that here.

    Just did a quick eyeball check and it looks like C program worked great. Will do an actual test cut and reset tools to see if calculation is correct.

    Thanks again,
    Troy

    http://www.homecncstuff.elementfx.com/


  4. #88
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Here is another part for press.... fresh off the press
    Troy SBL Magnaturn Retrofit-20181211_210535-jpeg

    http://www.homecncstuff.elementfx.com/


  5. #89
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Here is completed press break attachment. Did some test bends at they came out good. Will be making my servo covers with it in a few days and post some more pics then.
    TroyAttachment 408068SBL Magnaturn Retrofit-20181218_195808-jpeg

    http://www.homecncstuff.elementfx.com/


  6. #90
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3038
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Hi Troy,

    So what moves the press to do the bend?

    Regards
    TK http://dynomotion.com


  7. #91
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Hi Tom,
    This attachment will go in a H- frame hydraulic press. Will post a pic of it when I make my gaurds.
    Troy

    http://www.homecncstuff.elementfx.com/


  8. #92
    Registered
    Join Date
    May 2012
    Location
    canada
    Posts
    370
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Nice work, is it just mild steel or something harder? Is that a purchased piece in the bottom or did you machine that too?



  9. #93
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Top and bottom shoe are mild steel. Top punch is 4140 and the bottom die I thought was 4140 but was definatly not as it machined like D2. Got materials at a shop I used to work at. Machined everything here at home.

    http://www.homecncstuff.elementfx.com/


  10. #94
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Here is press attachment on the press.
    SBL Magnaturn Retrofit-20181221_180423-jpegSBL Magnaturn Retrofit-20181221_180234-jpeg

    http://www.homecncstuff.elementfx.com/


  11. #95
    Registered TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    3038
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Your work is so nice. What is the gear gizmo on the right? Does that somehow measure the press distance?

    Regards
    TK http://dynomotion.com


  12. #96
    Registered Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    446
    Downloads
    0
    Uploads
    0

    Default Re: SBL Magnaturn Retrofit

    Hi Tom,
    Thanks, thats what i believe about your coding work.But, what i lack in C code skills i think i make up in other areas. The gizmo is just a boat winch modified slightly with a cable that attaches to both sides of the press table to raise and lower it with a cordless drill. Its a bit to heavy to change height without assistance.
    Troy

    http://www.homecncstuff.elementfx.com/


Page 8 of 8 FirstFirst ... 5678

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

SBL Magnaturn Retrofit

SBL Magnaturn Retrofit