Hi Hakan,
I was saying this from the beginning and that is the reason why we couldnt use the ISIG_SPINDLE_AT_SPEED and ISIG_SPINDLE_AT_ZERO because they assigned to some function but function is not defined within Mach4 and software does not let user to define that function.
Rubbish! The SIGNAL is defined the ACTION is not. The modern programming paradigm is the an object and its action are separate. You create what ever function
you require to achieve the behaviour you want and then you LINK the OBJECT (input signal ISIG_SPINDLE_AT_SPEED) to your desired ACTION ( your function)
In this case we used a particular API call to make our function (mc.SignalWait()) but unfortunately that particular API has limited input range but otherwise
preforms perfectly. If we chose to use a different way to make our function that didn't use that particular API call the we could have used ISIG_SPINDLE_AT_SPEED
throughout.
Spindle at speed signal is the best and cheapest way to make the machine know that spindle is at commanded speed, most of the VFDs providing this function, if u dont use it u have to buy a spindle which has encoder installed or u have to install a encoder or rpm sensor to the shaft of the spindle, first one is expensive and second one is dangerous so best and industrial way of knowing that the spindle is at commanded speed is using this function and it must be implemented to industrial version.
Certainly using the At Speed or Is Stopped signals provided by VFD is cheap and easy...look you've done it yourself. My VFD and its hardly unique, a Delta, synthesises
and encoder output which can be read by Mach. Its built in...no cost involved. Yes if you require exact and/or physically confirmed rotation then you'll need a tacho
or similar. The At Speed signal cannot determine if the rotor is spinning except indirectly and so would fail a safety test which might be required of a coolant pump
or a lift motor. Such applications require a tacho or indexer, safety requires it and is in effect leaglly mandated by Codes of Practice and various National Standards.
My spindle can use the 'Wait on Spindle to Stabilise' and 'Percentage' functions already in Mach4 for exactly that purpose. You may recall early in the piece I advised you
that you could use either of two methods to achieve what you wanted. You chose to go with the At Speed/Is Stopped route whereas the other method reqired
you program your VFD to produce a pulse output and have Mach use its inbuilt functions to read and act on it.
Craig