Hello Guest it is May 06, 2024, 11:50:26 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 - Graham Waterworth

1311
Have a look here, mach3 is based on the Fanuc 6 system type a16, i.e. it has no conditional commands or loops and no I/O commands

http://www.machinetoolhelp.com/Applications/macro/macro_variables.html

Graham

1312
General Mach Discussion / Re: Viewing Parameters
« on: November 14, 2009, 04:24:49 PM »
If you only want to keep the values for calculations then you can store them in DRO's

Mach3 allows you to use DRO 1000 onward for this, if you have a value stored in a variable called 'x_pos' within VB then all you have to do is command SetUserDRO(1000,x_pos) and the value is stored.

To read the value back into a variable its var=GetUserDRO(1000)

I hope this is what you wanted.

Graham

1313
G-Code, CAD, and CAM discussions / Re: meshcam
« on: November 14, 2009, 04:13:20 PM »
I don't know what system you are using but I use the emboss command to do that type of thing, I pick an area, paste an image into it, then emboss the image.

May give you some clues, it may not

Graham

1314
General Mach Discussion / Re: Boxford tcl125
« on: November 13, 2009, 11:23:43 AM »
Have a look here :-

http://www.cncdoctor.co.uk/15.html

Graham

1315
General Mach Discussion / Re: Keeping informed on Vis Basic
« on: November 13, 2009, 09:51:49 AM »
Hi Jim,

you can have something like this in a macro

Graham

Dim a As Integer
For a = 1 To 100
  message("line " & Str(a))
  code "g01 g91 x10. f100."
  While ismoving()
  Wend
Next  

1316
G-Code, CAD, and CAM discussions / Re: Problems loading cad files to L-cam
« on: November 11, 2009, 06:52:16 PM »
Yes, and in an early version, R14 or 2000


1317
G-Code, CAD, and CAM discussions / Re: Problems loading cad files to L-cam
« on: November 11, 2009, 06:14:31 PM »
export your files as DXF acad R14 or 2000 format.


1318
It could be that Mach3 is set for absolute arcs and MaxNC is incremental, you can change Mach3 in the config screen for abs or inc arcs.

Graham

1319
G-Code, CAD, and CAM discussions / Re: CanĀ“t call the subroutine twice
« on: November 05, 2009, 08:33:48 AM »
It should look more like this :-

%
N10 G0 Z2
N20 M3 S2000 F200
N30 G1 X0 Y0
N40 Z0
N50 M98 P10
N70 X-20
N80 M98 P10
M30

O10
G91 Z-0.5 F70
G90 Y-30 F150
G91 Z-0.5 F70
G90 Y0 F150
M99
%

1320
You can do what you are doing you just need to use the correct sets of variables:-

1 to 33 are local variables, there value can only be used within the current g-code file,

100 to 149 and 500 to 531 are global and can be used over any number of files.

In the later versions of Mach variables 500 to 600 are global variables.

Mach version 4 is much more strict about # values and locks certain blocks to read only.

G52, G92 and all the G54-G59 fixture offsets position data is stored in #2500 range

Tool offset data is stored in the #2000 range.

Graham