Hello Guest it is April 20, 2024, 11:55:59 AM

Show Posts

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.


Messages - Greekart

Pages: « 1 2 3 4 5 6 7 8 »
41
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 06:04:11 PM »
Check the picture

42
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 06:02:38 PM »

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

Now i see it, no don't use "open script editor". Just go in "operator" and "edit screen" option.
Then you select the first selection at left and go to load script.

43
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 05:45:05 PM »
[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.

At the second "end" must have a "," if is not the last.
Code: [Select]
    end
end,
The "cyclestart()" need to be with capital c "Cyclestart() "

44
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 05:15:12 PM »
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.

This is something different..
At screen load script add or edit an already that is not used like this:
Code: [Select]
[mc.ISIG_INPUT0] = function (state)
    if (state == 1) then   
CycleStart()
   end
end,

If you show the code you try to change it would be better to find the error, lua language is not forgiving about grammar errors.

45
Mach4 General Discussion / Re: Can't save edited screen load script
« on: August 22, 2021, 04:49:29 PM »
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?

No idea what are you doing and not save, not have something with not registered. Only thing i did was:
Add button
Add at left up script
Code: [Select]
CycleStart()Save script and close
Save screen and exit edit
Load gcode and mouse click on new button

46
・ 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?

I don't see the point for that and i never had try it.
Change the enable state of "Run from here" to enable always and give a try if it will work.
Mach4 when feedhold is just paused, you can't do much in that state, no motion e.t.c.

47
Not for the feed hold button..

Just stop running any file, select a line you want to start and press run from here.

48
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.

It suppose that you are starting a new program from that line, if you are at feedhold you are not at start..

When I press the Feed Hold button, the "Run G cord From Here" button turns black and I can't press it.

You need to be in idle mode to use "Run From Here".

49
Mach4 General Discussion / Re: How to create ZERO All button on Mach4
« on: August 13, 2021, 02:52:13 AM »
Please look at the photo.My Mach4 (wx4) did not have a Zero All module.
Are you wx4?

No, that was a test screen. You need to find space and create a button or use other that you not use.
At w4x screenset is a button "Custom Button" that is for feature use (not do anything), use that.

50
Mach4 General Discussion / Re: How to create ZERO All button on Mach4
« on: August 13, 2021, 01:01:09 AM »
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.

Yes you can, just put a button where you want and at Left up script put this:

Code: [Select]
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);

Pages: « 1 2 3 4 5 6 7 8 »