Dynomotion

Group: DynoMotion Message: 11451 From: Sam Marrocco Date: 5/3/2015
Subject: Absolute/Relative motion via vb.net
I've had very good results with my vb.net cnc controller by sending gcode lines to the Interpreter.Interpret(file) method. However, I'm writing some code to do auto-calculation of backlash that involves moving the motor in very small increments many times in a row until a trigger is seen. Because each call requires:

Write the move gcode to a file.
Read the file via Interpreter.interpret().
Repeat

....all that thrashing about on disk sometimes causes some slowdowns......besides it isn't very elegant.
While I'm hopeful that we will some day see a version of Interpret() that takes arguments such as

Interpret(gcode line as string)

and overloads such as

Interpret (gcode lines as collection)
Interpret(gcode lines as array)

in the meantime I'm looking for an alternative that doesn't require all the writing/reading to disk but still utilizes any existing Interpreter settings such as backlash.

Are there dotnet non-gcode commands that I can use to perform absolute/relative motion utilizing all existing motor tunings and interpreter settings, something like

AbsoluteMoveTo(AxisID, Location)
RelativeMoveTo(AxisID,Location)



--

sam marrocco | chief technical officer
ringside.cutters.picnic.moonlink

248 548 2500 w
248 910 3344 c

ringsidecreative.com

Group: DynoMotion Message: 11452 From: Tom Kerekes Date: 5/3/2015
Subject: Re: Absolute/Relative motion via vb.net
Hi Sam,

The best approach for something like that would be to run a Program in KFLOP to perform the motion and stop on a trigger.  The movement would be smooth and the guaranteed response would be 180us.

But otherwise there are a number of ways to perform simple commanded motion from .NET.  For Example see the KM_Axis class RelativeMoveTo function.

The Interpreter doesn't impliment backlash correction.  Backlash correction is performed within KFLOP and will apply to any motion regarless of the origin if it is enabled.

HTH
Regards
TK



Group: DynoMotion Message: 11462 From: Sam Marrocco Date: 5/4/2015
Subject: Re: Absolute/Relative motion via vb.net

On 5/3/2015 3:31 PM, Tom Kerekes tk@... [DynoMotion] wrote:
 
Hi Sam,

The best approach for something like that would be to run a Program in KFLOP to perform the motion and stop on a trigger.  The movement would be smooth and the guaranteed response would be 180us.

But otherwise there are a number of ways to perform simple commanded motion from .NET.  For Example see the KM_Axis class RelativeMoveTo function.

The Interpreter doesn't impliment backlash correction.  Backlash correction is performed within KFLOP and will apply to any motion regarless of the origin if it is enabled.



Thanks, Tom. I will look into those methods.



sam marrocco | chief technical officer
ringside.cutters.picnic.moonlink

248 548 2500 w
248 910 3344 c

ringsidecreative.com