4th Axis With Argon Drive - Page 2


Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: 4th Axis With Argon Drive

  1. #21
    Member
    Join Date
    May 2012
    Location
    canada
    Posts
    537
    Downloads
    0
    Uploads
    0

    Default Re: 4th Axis With Argon Drive

    Here is my code to clamp:

    Code:
    #include "KMotionDef.h"
    
    
    main()
    {
    	Delay_sec(0.25); // wait for everything to stop
    	ch3->MaxOutput=1;  // reduce max gain
    	ch3->I=0.0;	// reduce integrator
    	
    	SetBit(53); // turn on brake
    
    	while (!ReadBit(1052)) WaitNextTimeSlice(); // Wait for clamped signal
    	
    	
        
    }
    And here is the code to unclamp:

    Code:
    #include "KMotionDef.h"
    
    
    main()
    {
    	ClearBit(53); // turn off brake
    
    	while (!ReadBit(1053)) WaitNextTimeSlice(); // Wait for unclamped signal
    
    	ch3->MaxOutput=2000;  // increase max gain
    	ch3->I=0.010;	// increase integrator	
        
    }
    I just configured my M30 to unclamp so it unclamps at the end of every program, and you will also want to do the same thing for your halt/reset button. So anytime im not running g-code, its unclamped. If I ever need to do some very heavy hogging with the MPG (not likely) ill just use the M code in MDI to reclamp.



  2. #22
    Member Need TECH Help!'s Avatar
    Join Date
    Dec 2007
    Location
    United States
    Posts
    578
    Downloads
    0
    Uploads
    0

    Default Re: 4th Axis With Argon Drive

    Hi Murray,
    That is the same code i made minus the "disabling" of servo.

    The M30 config is a simple solution, thanks
    Troy

    www.tsjobshop.com, www.homecncstuff.elementfx.com


Page 2 of 2 FirstFirst 12

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

4th Axis With Argon Drive

4th Axis With Argon Drive