Input trigger event - set my function

Here is where you can request new features or special features.

Input trigger event - set my function

Postby shad » Thu Sep 22, 2016 6:10 am

Is it possible to add my function to the input trigger event? Or start my macros when the input trigger event issue?
For example I need to have fast handler for any input signal and then I need to make any action inside plugin (40 msec plugin loop is very big for this purpose).
Thank you!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 314
Joined: Thu Sep 15, 2016 5:23 pm

Re: Input trigger event - set my function

Postby cncdrive » Thu Sep 22, 2016 8:59 am

If the 40msec is too long in the loop then you can create your own Thread in the plugin project.
The plugin project allows you to add anything which the C# language allows, so you can make your own thread which can be as fast as you want it to be.

In the input triggers if you set the function call between ID 20000 and 20999 those are macro call button codes, so if you assign these to input triggers or hotkeys then the macro will be called.
cncdrive
Site Admin
 
Posts: 3457
Joined: Tue Aug 12, 2014 11:17 pm

Re: Input trigger event - set my function

Postby shad » Fri Sep 23, 2016 7:05 am

Thank you!
Now I have 10.5 msec loop for communication to controller - 500 uSec for send/receive and 10 msec sleep.
And 40 msec plugin main loop for non time sensitive functions.
It's work great!
-- Andrew
UC400ETH
UC300ETH-5LPT
NEURON Lite THC
http://neuroncnc.com/
shad
 
Posts: 314
Joined: Thu Sep 15, 2016 5:23 pm


Return to Feature Request

Who is online

Users browsing this forum: No registered users and 2 guests