hello
i have been doing research and starting to program so correct me if i am wrong i started with screenset wx4 opened screen load script looks like this
---------------------------------------------------------------
-- Signal Library
---------------------------------------------------------------
SigLib = {
[mc.OSIG_MACHINE_ENABLED] = function (state)
machEnabled = state;
scr.SetProperty('btnRefAll', 'Enabled', tostring(state));
scr.SetProperty('btnRefAll2', 'Enabled', tostring(state));
scr.SetProperty('btnGotoZero', 'Enabled', tostring(state));
scr.SetProperty('tabJogging', 'Enabled', tostring(state));
if (state == 1) then
AxisEnable();
end
end,
[mc.ISIG_INPUT0] = function (state)
end,
[mc.ISIG_INPUT1] = function (state)
-- if (state == 1) then
-- CycleStart()
-- --else
-- --mc.mcCntlFeedHold (0)
-- end
end,
i am modifying it to look like this
---------------------------------------------------------------
-- Signal Library
---------------------------------------------------------------
SigLib = {
[mc.OSIG_MACHINE_ENABLED] = function (state)
machEnabled = state;
scr.SetProperty('btnRefAll', 'Enabled', tostring(state));
scr.SetProperty('btnRefAll2', 'Enabled', tostring(state));
scr.SetProperty('btnGotoZero', 'Enabled', tostring(state));
scr.SetProperty('tabJogging', 'Enabled', tostring(state));
if (state == 1) then
AxisEnable();
end
end,
[mc.ISIG_INPUT0] = function (state)
if (state == 1) then
FeedHold()
end,
[mc.ISIG_INPUT1] = function (state)
if (state == 1) then
CycleStart()
else
mc.mcCntlFeedHold (0) -- i dont know if i need this
end
end,
so why do we goto feed hold if cycle start is zero or off wouldnt the machine be in feed hold automatically the real question is after this machine i have one with a big controll pannel lots of switches so do i need to end an input with feed hold like under cycle start.
this takes care of regular cycle start. now onto mdi cycle start Chaoticone wrote this scr.ExecMdi('mdi1') is this stand alone or does it need more where do i put it thank you
mark