Hello Guest it is April 26, 2024, 09:55:38 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 - Ya-Nvr-No

61
Mach4 General Discussion / Re: Showing selected axis
« on: November 04, 2015, 09:49:46 AM »
Thanks Steve

yep there it is,  ;) I must have missed that in the release notes.  ::)

62
Mach4 General Discussion / Re: Showing selected axis
« on: November 03, 2015, 04:23:55 PM »
Have to think that 2788 is not working with the shuttle pro, only shuttle pro jog setup and button selection seems to work.

Lot of changes in the shuttle pro setup options with the last versions.

63
Mach4 General Discussion / Re: Showing selected axis
« on: November 03, 2015, 03:37:50 PM »
i see it updating fine, just don't seem to get the dro's and buttons to follow the logic

64
Mach4 General Discussion / Re: Showing selected axis
« on: November 03, 2015, 02:31:29 PM »
I am told that if you use the mpgaxis choices in the shuttle pro setup that you can.  ???
and you will have to setup mpg in your screen set too, I did not have any luck, as I have/had mine all working for my mpg dials

Could not get jog or mpg too step for me (center dial does nothing, outer dial worked but would not change axis on button presses)
had to go back to the jog selection for the axis button selections to work for me.
inner and outer dial worked a few revisions ago just fine.  ::)

but this did confirm and display what button press i selected as long as i used the mpgaxis option

    local inst = mc.mcGetInstance(inst)
    local mpg, rc
    mpg, rc = mc.mcMpgGetAxis(inst, 1); -- in this case mpg1
    mc.mcCntlSetLastError(inst, 'mpg axis = '.. tostring(mpg));

maybe i need a higher number axis selection, as i am using 3 now for mpg's and there might be some conflict with my current ones.

65
Mach4 General Discussion / Re: Showing selected axis
« on: November 03, 2015, 11:23:34 AM »
I opened and watched the log file and noticed a pattern.

So then wrote a function and put it at the bottom of the plc script to parse out the current Axis data, ugly but it does show how to strip out data from a log file.

There does not seem to be a "Lua mc.mc command / for that API call" but the log file shows the API. So not a great way to do it, as it is checking every line the log file creates. and only reports the single line with the updated axis selected (Note: it does have to jog to show up in the log)

but it is a good lesson for me in scripting and Lua, Thanks

66
Mach4 General Discussion / Re: Lua: Error occured while opening
« on: October 28, 2015, 09:45:45 AM »
Good chance that one of your m code files (mcs scripts in the macro folder are bad) and when Mach4 starts it tries to create the combined mcc file from all the scripts in the macro folder if one or more are bad it just cannot complete its task.

Either open each mcs script and see if they compile in the mcluaEditor on there own or move them all out and start putting them back in one at a time till you find the culprit.

That's one of the reasons for restarts in Mach4 to create or recreate the macro code (mcLua.mcc) for it to use. It checks to see if changes have been made and updates if needed, and why you can not share that file with other profiles.

67
Mach4 General Discussion / Re: Mach 3 and Mach 4 Profile?
« on: October 27, 2015, 12:40:13 PM »
I've had both working on the same machine for year and a half and that is using all 6 axis's. But just in testing Mach4 only.  Still don't have the full trust to let it loose on a big job to be able to walk away (as some of my runs last days). Runs smoother but has some hiccups at times.

Running ESS on the PMDX-126 board using 2 Servos(Slaved),  2 Nema-34 & 2 Nema-23 Steppers

68
I did try this and no longer see the mach4GUI running as a task after closing. Not sure it needs all this but gives you something to try.

     StartUpVerify:Close(true)
     StartUpVerify:Destroy()
     DailyMaintenance:Destroy()
     MonthlyMaintenance:Destroy()
     WeeklyMaintance:Destroy()

69
Not sure, but did you try to make sure all is destroyed after the StartUpVerify:ShowModal()

    DailyMaintenance:Destroy()
    MonthlyMaintenance:Destroy()
    WeeklyMaintance:Destroy()


70
Mach4 General Discussion / Re: Mach4 Variable Counter
« on: October 25, 2015, 07:34:36 PM »
Not sure why you keep using Mach3 VB code.

Mach4 uses LUA for coding. I provided what you needed to do what you wanted,  just have to grasp the new coding process.

Either way you have to read, read, read and practice. Most everything you need is provided in the document section of Mach4, help "F1" in the mcLuaEditor or this Mach4 forum, full of examples.

Mach4/Lua will take hundreds of hours to grasp it all.

Good Luck & Have Fun