Hi,
yes it is possible to do that. Mach4 has the following behavior when being enabled.
When the machine is first switched on the machine is disabled. That means that OGIG_MACHINE_ENABLE is low.
Machs core will ensure that the output signals OSIG_ENABLE0, OSIG_ENABLE1, OSIG_ENABLE2 etc are likewise set low.
When you hit the <Enable> button it causes an internal Mach action (Up Action) 'Enable On' as is seen in screen edit mode looking
at the event properties of the <Enable> button.
Looking at the <Enable> button properties, again in edit screen mode you can see that the 'Machine Enabled' signal is affected
by the <Enable> button.
Machs internal actions 'Enable ON' and 'Enable Off' are not available for us to see or edit. It is plain though that if the
function 'Enable On' is called (as signaled by OSIG_MACHINE_ENABLE) then OSIG_ENABLE0, OSIG_ENABLE1 etc are all
turned on pretty much simultaneously.
In order to have the axes enable in delayed fashion it is necessary to disconnect the 'Enable On' and 'Enable Off' actions.
That is possible, in effect the Up Action and Down Action events must be left blank. Note however that there is allowed
an Up Script and a Down Script. Thus you can write your own scripts which could turn on (enable) axes in a delayed
fashion. In essence your scripts run INSTEAD of Machs built in functions.
Given that you are new to Mach4 I'm wondering if you think its a good idea to delve into writing scripts this early?
I can imagine that if you had really big servo drives or something then staggering the enable signals might reduce
the in-rush currents but they would have to be huge servos to warrant such behavior.
If you think you absolutely need to do so then have at it. Otherwise just box on with Mach......the vast majority of
machining operations can be done WITHOUT having to write any special scripts and I suggest that's what you do.
There will come a time when you need something a bit different to the standard Mach offering and then by all means
write your own code, Mach4 is generously provided with the means to customize your installation. Customizing your
machine when it doesn't really need it however is a great way to waste a lot of time and make few if any chips.
Craig