Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: jeff1973 on February 16, 2019, 05:58:33 AM

Title: SRO disable
Post by: jeff1973 on February 16, 2019, 05:58:33 AM
Hi All,

I Need an M function to disable the SRO especially when taping ,Is this possible with mach4
Title: Re: SRO disable
Post by: joeaverage on February 16, 2019, 04:04:51 PM
Hi,
yes it is possible.
Look in the 'Spindle' category of the Mach AI.chm:

Code: [Select]
LUA Syntax:
rc = mc.mcSpindleSetOverride(
number mInst,
number percent)

Description:
Set the spindle override percentage.

You could use this or you might experiment with another from the same category:

Code: [Select]
LUA Syntax:
rc = mc.mcSpindleSetOverrideEnable(
number mInst,
number enable)

This API determines whether a SRO is applied at all.

Craig