Hello Guest it is October 17, 2019, 02:04:12 AM

Author Topic: New Button for CCW  (Read 1312 times)

0 Members and 1 Guest are viewing this topic.

New Button for CCW
« 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
Re: New Button for CCW
« Reply #1 on: February 10, 2015, 12:16:35 PM »
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
Re: New Button for CCW
« Reply #2 on: February 11, 2015, 01:24:13 AM »
Hi Dave

1000 Thanks, all working as expected. :)

Best Regards,
Christian