Hello Guest it is April 25, 2024, 03:00:46 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

481
Create a DRO on your screen and use

GetOemDro (222)

that is the number of cycles left to do in a loop

482
Took 25 minutes to add, ya got to love it?
thanks again Scott

483
I do like it, cool work Scott

484
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 02, 2014, 11:20:29 AM »
That seemed like a odd question from your wisdom on programming, but did want to pass on some information to others as to how to get used to this new scripting. And don't be afraid of trying and learning something much more powerful then VB.
We ain't dead yet.

Most of my post are for general knowledge and enlightenment. The ole instructor in me.

485
Thanks Scott
but you must be running a different version then us  ::)

Quote
The “RC_DisplayModule.mcs” file is the module itself, its install path is the OEM stock:
C:/Mach4/Profiles/Mach4Mill/Macros RC_DisplayModule.mcs

Stock install is Mach4Hobby
just messing with ya
I'll change the path to suit and try it out

Thanks again

486
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 02, 2014, 10:07:20 AM »
Range = mc.mcSpindleGetCurrentRange(inst);
Dwell = mc.mcSpindleGetAccelTime(inst, Range);

He is passing the variable Range into the Dwell functions second field

There is a whole lot to learn for all of us. Blowing my mind the possibilities. No wonder it took them so damn long. lol
using a Messagebox helps with debugging and seeing what is in the variables, helps me anyways.

wx.wxMessageBox("Range == " .. tostring(Range) )

487
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 02, 2014, 08:37:20 AM »
Worked on a quick little routine this morning while watching the news.

I like to know the percent of completion the program I am running.

Added the Dro's and text to the tab then
Added this to the PLC Script

Code: [Select]
local TotalLines = mc.mcCntlGetGcodeLineCount(inst);
local GcodeCurrentLine = mc.mcCntlGetGcodeLineNbr(inst);
scr.SetProperty('droTotal', 'Value', tostring(TotalLines));
local GcodePercent = (GcodeCurrentLine/TotalLines) * 100;
scr.SetProperty('droPercent', 'Value', tostring(GcodePercent));

Works well, but I did notice a gcode file this big sure slows down everything you try to do.


488
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 01, 2014, 12:25:02 PM »
From what I can see Id say pay more attention to these wxwidgets pages.
as wx.wx starts everything function-able.

http://docs.wxwidgets.org/trunk/

putting this in a button script, a message box pops up
Your passing the function information into a string that gets displayed in a message box

local dir = wx.wxGetHomeDir();
wx.wxMessageBox("Your Home Directory is == " .. tostring(dir) )

Just as a good habit, remember to hit the disable button before you edit a screen set.

I'm just getting started on a new Tab, Having fun

489
Mach4 General Discussion / Re: Comments about Mach4 in Demo
« on: May 01, 2014, 06:31:02 AM »
    #1
    #11
    #26
    #7
    #24
    #18
    #25
    #3
    #9

did I miss where these got set?

490
Mach4 General Discussion / Re: DRO Code differences
« on: April 29, 2014, 01:52:55 PM »
Renaissance? Is that your way of saying some of are OLD and have too much time on our hands?

Sleep... that just Naps between nature calling.