585,743 active members*
5,077 visitors online*
Register for free
Login
Page 2 of 2 12
Results 21 to 22 of 22
  1. #21
    Join Date
    May 2012
    Posts
    537

    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
    Join Date
    Dec 2007
    Posts
    578

    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

Page 2 of 2 12

Similar Threads

  1. Will Argon drive work with Sanyo motor
    By medu2015 in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 07-29-2016, 05:10 AM
  2. encoder on Argon drive together with sinumerik 808D basic
    By slektning in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 02-23-2016, 08:09 PM
  3. I am a newbie, Argon drive with Mach 3?
    By machining fool in forum CNC Machine Related Electronics
    Replies: 0
    Last Post: 08-18-2015, 06:06 PM
  4. Will Argon drive work with a more powerful servo?
    By richienz in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 05-25-2015, 01:41 AM
  5. Argon drive stepper + encoder?
    By nicad in forum CNC Machine Related Electronics
    Replies: 1
    Last Post: 09-19-2013, 10:00 PM

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
  •