Hello Guest it is March 29, 2024, 09:10:33 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.


Topics - BR549

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 »
31
VB and the development of wizards / Select Tool By Picture
« on: November 20, 2014, 10:09:54 AM »
Someone Somewhere was asking about this and it IS possible in CB.

Selecting a tool from a directory of tool pictures.

Just a though, (;-) TP

32
Mach4 Toolbox / ASK user for Password SCRIPT
« on: June 02, 2014, 04:11:33 PM »
Here is a sample of a script that ASKS the user for a password and processes the answer. IT uses the WxLUA call    wx.wxGetPasswordFromUser()

local Pword = "FrogLog"
local Pnum = 0

while Pnum <3 do
local Panswer = wx.wxGetPasswordFromUser("What is the Password ? ")
if Panswer == Pword then
            wx.wxMessageBox("The Password is " ..Panswer)
else
            wx.wxMessageBox("Wrong Password")
            Pnum =(Pnum+1)
    end

 end
wx.wxMessageBox(" Call YOUR Supervisor for HELP! ")  

33
Mach4 Toolbox / Bolt Circle Wizard with tapping
« on: June 01, 2014, 05:46:37 PM »
Here is an example of a Bolt Circle Wizard. It support all teh Normal Drill Cycles PLUS the tapping cycle(G84).

It is in Zip format so you have to do the unzip thing on your end INTO the Wizards folder.

It is a decent conversational example of creating Gcode for a Bolt Circle. BRIAN did the original layout and I fancied it up a bit and added a few extra features.

It makes a very good PATTERN as to HOW to create a WIZARD in Mach4.

This version also does a SAVE file AND when you exit it opens the file in MACH4 ready for you to get at it.

I think I have it all cleaned up and error free BUT if you find something please let me know. There is a LOT of Lua code to sort through >:D

NOW IF you can improve it PLEASE DO and reload it back into the Mach4 TOOL BOX for others to use and enjoy.

(;-) TP

34
Mach4 Toolbox / Mach4 SUB to do sequential S/N engraving
« on: June 01, 2014, 03:19:33 PM »
Here is a SUB/Macro program that allows you to do sequential S/N engraving. The serial NUMBER is held in #VAR  #590  it is a 6 digit number 987654 when it gets to 999999 it will roll over to 000001 on the next call.


The website will NOT take the native file so I had to ZIP it . You will have to UNZIP it on your end then place in the SUBROUTINES folder.

You must copy it into the mach4 SUBROUTINES folder. IF you modify it make SURE you follow the correct proceedure for a SUB program File it is o9001 with NO extensions at the end of file. Currently the Gcode editor does NOT give you that option.  Notepad WILL do it on an original file. IF it ever gets changed I have to go out to a DOS promt and do a Rename from o9001.txt to o9001  

 Use {Rename o9001.txt o9001 from the DOS prompt}

You can reset the Serial number anytime by MDI  #590 = 123456.  IF you add to many digits for example  1111111 then the macro will NOT run but alert you to reset the Serial Number. The macro does NOT see any decimal values in the #var.

The Size is currently SET. Furture versions will allow you to scale the Charactors to suite your application.

To call it you can do so several ways. Simply move to the start point of the Engraving and call it by

M98 P9001

or

M65 P9001

The code uses the Centerline of the charectors as the start/end point  of each charactor

YOU CAN add the serial number DRO and script support to your screen to make it even easier to use. But this version will work for everyone.

IF you care to modify it for IMPROVMENTS please do and POST it back in the Mach4 ToolBox for everybody to use/enjoy.

Thanks, (;-) TP

35
It is a bit crude but it works (;-) Mach4 sent me a message today that Machine#549's  program was complete.


36
Mach4 General Discussion / MACH 4 emblem/decal etc ??
« on: May 31, 2014, 01:22:15 AM »
IS there an offical MACH4 Image yet.  I need it for the DOCS/manuals I print out. Nothing worse than a dull ugly manual staring at you.

(;-) TP

37
Mach4 General Discussion / Read write to a DRO ??
« on: May 30, 2014, 03:06:56 PM »
How would one read or write to a USER DRO on the screen.

I need to read a #var(I can do that) and update an onscreen DRO(dro18)  . That part I cannt do as I do not find any langeage to create the function.

In mach3 it would be    SetUserDRO(18,  GetVar(590))

ALSO same the otherway around. I need to update a #var(#590) from  DRO value of (DRO18)

in Mach3 it would be SetVar(590, GetUserDro(18))

38
Mach4 General Discussion / MACH4 Mcode testing
« on: May 25, 2014, 10:51:32 PM »
Has anyone gotten a NEW Mcode to work properly. I was doing a simple test to see IF I could create a new Mcode.

I tried it this way, AND that errored out in the editor

-- Serial Number Engrave
function m100()
inst=mc.mcGetInstance();
mc.mcCntlSetLastError(inst, 'Serial Number Engrave')
mc.mcCntlGcodeExecute(inst, "G0X10 ");
mc.mcCntlGcodeExecute(inst, "G0X0 ");
end


SO I tried it this way. It will run from the EDITOR if you step though it but not from a M100 call in MACH4.  OR will not run with RUN in the editor.

-- Serial Number Engrave
inst=mc.mcGetInstance();
mc.mcCntlSetLastError(inst, 'Serial Number Engrave')
mc.mcCntlGcodeExecute(inst, "G0X10 ");
mc.mcCntlGcodeExecute(inst, "G0X0 ");


Can we create Mcodes for Mach4 ??

Does anyone have an example that works??

, (;-) TP

39
Newfangled Mill Wizard / 4th axis toolpath ?
« on: May 24, 2014, 08:04:54 AM »
HIYA RON Are we ever going to get 4th axis toolpathing ??

(;-) TP

40
Mach4 General Discussion / Export tool table
« on: May 15, 2014, 11:01:33 AM »
HIYA Craig, see how popular you have become(;-)

Can you give a button code script example on HOW to export the tool table file out to a simple text file for printing in notepad. We could do that in Mach3 and it was a big help.

In the Mach3 version it ONLY exported tools that had values it did not create entries for empty tools

Thanks, (;-) TP

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 »