Stopping oiler when machine is idle


Results 1 to 4 of 4

Thread: Stopping oiler when machine is idle

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

    Default 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

    Similar Threads:


  2. #2
    Member Sterob's Avatar
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    626
    Downloads
    0
    Uploads
    0

    Default 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
    Member TomKerekes's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    4045
    Downloads
    0
    Uploads
    0

    Default 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);
    		}
    	}


    Regards
    TK http://dynomotion.com


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

    Default 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.



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

Stopping oiler when machine is idle

Stopping oiler when machine is idle