586,058 active members*
4,338 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2012
    Posts
    537

    Stopping oiler when machine is idle

    Hi Tom,

    Is there any easy way to detect when the machine is idle for a period of time? Would be nice if I could disable the oiler after say 10 mins of no movement. Thanks.

    Mark

  2. #2
    Join Date
    Jan 2007
    Posts
    626

    Re: Stopping oiler when machine is idle

    Control the Oiler via a relay contact on your VFD, so it comes on when the VFD starts the motor, and fit an electronic timer configured to give a 10min delay off when the contact opens on the VFD.

  3. #3
    Join Date
    May 2006
    Posts
    4045

    Re: Stopping oiler when machine is idle

    Hi Mark,

    You might do something similar to how KStep is disabled after a period of no motion. Enable the Oiler and TimeStamp the time whenever there is motion, and if the current time is a certain amount past the TimeStamp then disable the oiler.


    Code:
    	for (;;) // loop forever
    	{
    		WaitNextTimeSlice();
    		
    		// Service Amplifier disable after no activity for a while
    		if (ch0->Dest != LastX || ch1->Dest != LastY || ch2->Dest != LastZ)
    		{
    			// we moved - enable KStep Amplifers
    			SetBit(45);
    			T0 = Time_sec();  // record the time and position of last motion
    			LastX=ch0->Dest;
    			LastY=ch1->Dest;
    			LastZ=ch2->Dest; 
    		}
    		else
    		{
    			if (Time_sec() > T0 + 10.0) ClearBit(45);
    		}
    	}
    TK
    http://dynomotion.com

  4. #4
    Join Date
    May 2012
    Posts
    537

    Re: Stopping oiler when machine is idle

    Quote Originally Posted by TomKerekes View Post
    Hi Mark,

    You might do something similar to how KStep is disabled after a period of no motion. Enable the Oiler and TimeStamp the time whenever there is motion, and if the current time is a certain amount past the TimeStamp then disable the oiler.


    Code:
    	for (;;) // loop forever
    	{
    		WaitNextTimeSlice();
    		
    		// Service Amplifier disable after no activity for a while
    		if (ch0->Dest != LastX || ch1->Dest != LastY || ch2->Dest != LastZ)
    		{
    			// we moved - enable KStep Amplifers
    			SetBit(45);
    			T0 = Time_sec();  // record the time and position of last motion
    			LastX=ch0->Dest;
    			LastY=ch1->Dest;
    			LastZ=ch2->Dest; 
    		}
    		else
    		{
    			if (Time_sec() > T0 + 10.0) ClearBit(45);
    		}
    	}
    Thanks Tom, Worked perfectly.

Similar Threads

  1. Replies: 10
    Last Post: 06-02-2015, 07:20 PM
  2. 'ESC' key not stopping machine?
    By Tony T in forum Tormach Personal CNC Mill
    Replies: 0
    Last Post: 12-28-2013, 01:03 PM
  3. Whine / squeal noises when machine idle
    By bkraz in forum Bridgeport / Hardinge Mills
    Replies: 5
    Last Post: 02-09-2006, 12:29 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
  •