Hello Guest it is April 20, 2024, 04:21:28 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

291
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 06, 2014, 02:01:56 PM »
As a note to all:
Under the History button there is a 'Save' option button
Found that I had to create a history.txt file in the mach4 root folder for it to write to the file.

Update: This has been addressed and fixed in the latest versions.

292
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 06, 2014, 12:44:46 PM »
Been working on a universal function that writes to a file either the lathe or mill tool tables, based on mode.

(note: to nick) all mach4 tool data starts at variable 7781; so 7781-7790 is tool #1

the numbers in my graphics tables don't mean anything in this case, I just used them as fillers to get the routine to work.
but it does include any tool that has a description


//Tool Numbering
#define TOOLS_START 7781      //Start of Tools in Parameter list
#define TOOL_INC 10           //Inc from tool to tool in the param list

#define TOOL_MILL_X           0 //X offset
#define TOOL_MILL_X_W         1 //X Wear offset
#define TOOL_MILL_Y           2 //Y offset
#define TOOL_MILL_Y_W         3 //Y Wear offset
#define TOOL_MILL_HEIGHT      4 //Tool height offset
#define TOOL_MILL_HEIGHT_W    5 //Height wear Offset
#define TOOL_MILL_POCKET      6 //Tool changer pocket
#define TOOL_MILL_RAD         7 //Rad for comp
#define TOOL_MILL_RAD_W       8 //wear offset for comp

#define TOOL_LATHE_X          0 //X offset
#define TOOL_LATHE_X_W        1 //X Wear offset
#define TOOL_LATHE_Y          2 //Y offset
#define TOOL_LATHE_Y_W        3 //Y Wear offset
#define TOOL_LATHE_Z          4 //Z offset
#define TOOL_LATHE_Z_W        5 //Z wear offset
#define TOOL_LATHE_POCKET     6 //Pocket # (may not be needed)
#define TOOL_LATHE_TIPRAD     7 //Tip Rad for comp
#define TOOL_LATHE_TIPDIR     8 //Tool tip DIR
#define TOOL_LATHE_TOOLSLIDE  9 //AxisSlide number  and - for reversed

293
Mach4 General Discussion / Re: Screen Set Ideas
« on: July 04, 2014, 12:44:02 PM »
Came across this reference document thought it was a good resource for Lua 5.1

294
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: June 22, 2014, 09:16:07 AM »
Rich aren't you in the man cave in the basement? As long as the washer and dryer is not down there she doesn't care how it looks.  :D But I'm sure she still shakes her head.

laptops work for saving space, not like they all have to be running at the same time or on a network. Learned years ago that one computer cant do it all so have dedicated laptops/computers now.

295
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: June 22, 2014, 08:16:29 AM »
Hell Art, I would have thought you had a computer with every OS for testing   ;D make your wife proud!  :o

296
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: June 22, 2014, 08:01:42 AM »
did you run the vcredist_x86.exe installer first?

297
Mach4 General Discussion / Re: Screen Set Ideas
« on: June 19, 2014, 12:28:24 PM »
How to control states and led's

local SpinCCW = scr.GetProperty('ledSpindleCCW','Value','Value',0);
local SpinCW = scr.GetProperty('ledSpindleCW','Value','Value',0);

if (SpinCCW == "1") then
    scr.SetProperty('btnSpindleCCW', 'Label', 'SpindleCCW ON');
    scr.SetProperty('ledSpindleOFF', 'Value', '1');
    scr.SetProperty('btnSpindleOFF', 'Label', 'Spindle ON');
elseif (SpinCW == "1") then
    scr.SetProperty('btnSpindleCW', 'Label', 'SpindleCW ON');
    scr.SetProperty('ledSpindleOFF', 'Value', '1');
    scr.SetProperty('btnSpindleOFF', 'Label', 'Spindle ON');
else
    scr.SetProperty('btnSpindleCW', 'Label', 'SpindleCW OFF');
    scr.SetProperty('btnSpindleCCW', 'Label', 'SpindleCCW OFF');
    scr.SetProperty('ledSpindleOFF', 'Value', '0');
    scr.SetProperty('btnSpindleOFF', 'Label', 'Spindle OFF');
end

298
Mach4 General Discussion / Re: Mach4 Printer Port Discussions
« on: June 17, 2014, 09:27:36 AM »
Hi Tweakie

trying to follow your diagrams, is this correct? Not at all an electronics expert.
Plus when I see this, I get a little confused why you pass a single signal to both sides of an "and gate", when you already have the logic.

299
Mach4 General Discussion / Re: Screen Set Ideas
« on: June 16, 2014, 08:55:13 AM »
Feed and Speed control with buttons and hot keys (F keys) working.

300
Mach4 General Discussion / Re: Screen Set Ideas
« on: June 16, 2014, 08:29:05 AM »
Found that a one second Sleep is needed to give the registers time to fill before I could read them.