Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: bigtwinch on February 10, 2015, 11:35:22 AM
-
Hi
I'am very new to Mach4 so i trying to add a new button to turn the spindle in CCW direction
I made a new button in the group grpSpindle with the name btnSpindleCCW
also i copyed theLeft Up Script to that button
but if i press the button Spindle CCW the spindle turns on in CW?
My setup is a CSMIO/IP-s
In Mach3 the CCW is working! :'(
Sorry for my bad english my native language is swiss-german ;)
Best Regards,
Christian
-
Hello
on your script you have something like this ...... mc.mcSpindleSetDirection(inst, 0);
else
mc.mcSpindleSetDirection(inst, 1).......
change the 1 to a -1
Dave
-
Hi Dave
1000 Thanks, all working as expected. :)
Best Regards,
Christian