Hi,
I need initializate my embroidery profile using Single Blk mode
I will use and X,Y,Z axis, and swap Z with spindle.
I will make a Macro (M910.m1s) and place in Initialization String.
M910.m1s
DoOemButton(1004) 'Pressing button Single Blk
I need start spindle using Cycle Start buttom,
but I need change default function of this button
and use a VBscript .
I saw in Mach2 Customization than I can change default
Funtion for Cycle Start Button and use a VB Macro. Macro could be M900.m1s
M900.m1s
SwapAxis(3,6) 'Swap pins of Z axis for Spindle pins
SetSpinSpeed(S100) 'sET spindle Speed in 100RPM
DoSpinCW( ) 'Start Spindle at 100RPM Speed
Then spindle start,
Cycle Start button will be pressed in each spindle revolution
using a optoswitch connected to one Input Pin, configured like
OEM trigger1, and assig OEM code to OemTrigger in System Hotkeys.
Each spindle revolution will press Cycle Start once, and run
one Gcode Line for X and Y movements. Like I will be in
Single BLK mode, I don't need to use Cycle Star Buttom.
Also I need to create another VB screen button for
stop spindle and pause system.
May work in this way?
New problem will be, how many revolutions will be possible to get
considering Mach response 1/10 second and Optoswich start and Stop
I think more and less 6-7 times/second for a 400 RPM. IT depends
also of lenght of X and Y movements.
Thanks for your help.
Regards
Rene