21
Mach SDK plugin questions and answers. / Re: USB plugin don't fill Trajectories array
« on: September 21, 2011, 08:32:51 AM »
I have VS2003 and I can not compile your plugin.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Check my virtual plugin - it does work :-)
http://www.machsupport.com/forum/index.php/topic,17612.0.html
/* For 1ms timed waypoints... */
MainPlanner->ExTime = .001;
/* For variable ms timing... */
MainPlanner->ExternalType = EX_VMS;
/* Setup external pulse rate */
for( int x = 0; x < 7; x++ )
{
MainPlanner->ExternalPulseRates[x] = 1000000;
}
G90
G49
M3 S15000
G0 X52.000 Y27.663 Z7.472
G1 Z-0.500 F200
G1 X52.000 Y27.663 Z-0.500 F1200
X33.344 Y20.577
X33.197 Y20.535
X33.033 Y20.520
X32.858 Y20.537
...
5) press stopvoid USBPlugin::update (void)
{
if (Engine->TrajHead == Engine->TrajIndex)
{
PluginConsole::getInstance()->printMessage("Same positions...");
return;
}
else
{
Engine->TrajIndex++;
PluginConsole::getInstance()->printMessage("New positions...");
}
}
this function is called by myUpdate().