181
Mach4 General Discussion / Re: Can soft limits be automatically on at start up?
« on: December 13, 2016, 01:38:57 PM »mc.mcSoftLimitSetState(inst, mc.Z_AXIS, mc.MC_ON);
mc.mcSoftLimitSetState(inst, mc.Y_AXIS, mc.MC_ON);
mc.mcSoftLimitSetState(inst, mc.X_AXIS, mc.MC_ON);
[/quote]
Notice the capitalization! Apparently this code is CASE Sensitive! I did not know that. Anytime we want to run a mcAnything() we need to add the mc to the mcAnything to get mc.mcAnything Slowly making more sense. Studying the LUA Scripting Guide line by line is helping to learn Lua. Feeling like a champ right now with these one liners...
Keith