41
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 06:04:11 PM »
Check the picture
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Yes I am editing inside of mach4 with the editor by clicking the "operator" tab and then "open script editor".
No I cannot save. tried at least half a dozen times
[mc.ISIG_INPUT0] = funtion (state)
if (state == 1) then
cyclestart()
else
mc.mcCntlFeedHold (0)
end
end
This is what I believe the UnRemmed version would be based on my needs. I could be wrong I am used to VB script.
end
end,
The "cyclestart()" need to be with capital c "Cyclestart() "
I added a physical button in the control panel door. Then I mapped it thru the ESS and in mach4. If I go to the diagnostic screen and press the button the light for input0 lights. I read on the forum that the screen load file needs to be edited to associate the input0 button press with a cycle start to make the button work. I found the example in the file rem'd out. I made the changes to the script and when I tried to save the script I was denied.
[mc.ISIG_INPUT0] = function (state)
if (state == 1) then
CycleStart()
end
end,
Trying to add a cycle start button. Found an old thread telling how to edit the file to make the button work. I do the edits and get an error trying to save. Access error, cannot save file. I have not registered the Mach4 yet as the docs say to get everything working first. Could that be stopping me from a save. I do start the program in administrator mode. Any ideas as to why I would not be allowed to save a script?
CycleStart()
Save script and close・ For Mach3
1, Feed Hold
2, designation of arbitrary line
3, Cycle Start
Does Mach4 not work in the flow of 1, 2 and 3 like Mach3?
For Mach4, how do you do "Run From Here"?
When I press the Feed Hold button, the "Run G cord From Here" button turns black and I can't press it.
When I press the Feed Hold button, the "Run G cord From Here" button turns black and I can't press it.
Please look at the photo.My Mach4 (wx4) did not have a Zero All module.
Are you wx4?
I want to attach ZERO All that was in Mach3 to Mach4.
Please let me know.
Is it possible to use Mach4's [Screen Scripts] to make it work? ??
Thank you for your cooperation.
inst = mc.mcGetInstance()
local rc = mc.mcAxisSetPos(inst, mc.X_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Y_AXIS,0.0);
rc = mc.mcAxisSetPos(inst, mc.Z_AXIS,0.0);