Hello Guest it is March 29, 2024, 06:43: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.


Topics - moorea21

Pages: « 1 2 3 4 5 »
31
General Mach Discussion / Gcode to zero Z axis during run
« on: April 13, 2014, 02:11:26 PM »
I may be over complicating this; I think what I want to do is to zero my Z axis in code...

I have code that moves my Z axis until a moveable limit switch is tripped (G00 Z40000; ie a figure so large that it ensures the switch will always be tripped at some point.) When this happens, I want the machine to treat this position as Z0, until the end of the file. All other axes will remain as they are. At the end of the file, the next file will be called and run automatically from within the current file, and so a new Z0 position will need to be found... (at least that's what I intend.)

I looked through a post from 2007 entitled 'Gcode to re-zero Z axis', which appears to be about the same kind of thing.

Poppabear suggested a user defined DRO, which passes a value to a macro:-

'G90 G17
G28.1
M700
(the rest of code here)

Here is the Macro:

'M700.m1s  'metal thickness offset macro

z=GetUserDro(1100)     'get the value of your metal thickness from the dro.
Code "G0 Z" & z        'This moves to the new Z position that you put in the dro.
While IsMoving
WEnd'


I may be misunderstanding what the OP wanted; but I think in order to do what I want, I would need to rewrite as:-

G90 G17
G28.1     'only Z would be enabled for this in my soft limits config?
M700
(the rest of code here)

'M700.m1s

z = GetUserDro(1100) 'get value from my DRO
Code "G52 Z" & z
WhileIsMoving
WEnd

Am I right in thinking that this would move my Z axis until the switch trips, then Z stops moving, and mach sets the current Z position as Z0?
Or is there a function in mach that does that anyway? Can't test this for a few days now, which bugs me.

32
General Mach Discussion / 'run from here' not working as expected
« on: March 05, 2014, 09:13:03 AM »
The code below has an 'M00' line after a few initial axis moves, to provides a break in which to judge whether to repeat those moves (by running again from line 5, 'G91'), or alternatively to continue through the code (by running from line10, 'G90'):-

G21
G90
G64
G00 A0.2 F2500
G91
G01 A0.2 Z15
G01 A-0.4
M00
( !!!!! ZERO Z AXIS NOW!!!! )
G90
G01 X10 etc

The lines up to M00 execute initially, but I'm unable to then choose which line I want to run from. I originally thought I could just scroll back up (or down to the next line), until the correct line number appeared in the DRO, and press 'run from here', and it would 'run from here'... But this just scrolls back through the initial few lines of code and then stops.

I've consulted the manual, forum and FAQ's on this, to no avail. I appear to have had the wrong idea about what 'run from here' does, but unfortunately none of the other buttons seem to perform this apparently simple task either.

Can somebody explain to me what I should do to choose a line and run from it? It feels like it should be very simple.

33
G-Code, CAD, and CAM discussions / Call G91 sub from G90 main program?
« on: March 03, 2014, 09:42:20 AM »
Is it possible to call and use a subroutine that uses incremental (G91) programming, from a main program that uses absolute (G90) programming? Or aternatively, can I specify some parts of the main program as G90 and some as G91?

34
G-Code, CAD, and CAM discussions / M98 - M99 loop with M00 in
« on: March 03, 2014, 09:06:44 AM »
I'm not able to get to my machine to test this, but I've been trying to figure out a way of doing a subroutine, and having the machine stop temporarily afterwards, to give the user the option of either repeating the subroutine or continuing through the main code. So far I've come up with this:-

o0001
g21
g90
g64
g00 a2 f2500
m06 t001
g00 x0 y20
m98 p0002
m00
g01 x10 etc...

o0001
g01 a0.5 z120
g01 a0
g01 a0.2
m99

The idea being that the user can manually select and run from either the line 'm98 p0002' to repeat the routine, or the line 'g01 a0.2' to continue through the code.

Is this a normal way of achieving this? I've used lower case here to distinguish between 'o' and '0'.

Thanks


35
General Mach Discussion / pdmx 122 configure for mach
« on: January 23, 2011, 08:23:52 AM »
Hi, I've bought my 2 breakout boards, looking through the literature that came with them, I can't work out if I should set jp5 to "1 to2" to configure it as o/p only, or "2 to 3" so it's controlled from the "-select in" signal from the PP. Which is normal for Mach 3 on XP sp3?
Ta!
Rich B

36
Hi,

Just got my pmdx 122 breakout boards, only to find that the cable connectors are female... so the male to male cables I bought are no good.
I have 2 25 pin to 36 pin printer cables, one of which is the type where you can disassemble the 25 pin end, and resolder the pins in whatever order you want.

For Mach I need 'straight through' cables, right? does that mean pin 1 to pin 1, right up to pin 25 to pin 25, and then 10 empty pins from 26 to 36 on the male end? My standard printer cable connects as per below; is this not suitable?

18  17  16  15  14  13  12  11  10   9    8    7   6    5    4   3    2   1                 
36  35  34  33  32  31  30  29  28  27  26  25  24  23  22  21  20  19

13  12  11  10   9    8    7    6   5    4    3    2   1
   25  24  23  22  21  20  19  18  17  16  15  14   


DB25  Centronics

1       13
2       12
3       11
4       10
5       9
6       8
7       7
8       6
9       5
10     4
11     3
12     2
13     1
14     25
15     33
16     32
17     36
18     34
19     19
20     21
21     23
22     25
23     27
24     29
25     31   

If I've got the pin order on either of the top diagrams wrong, please let me know, and I'll correct them and rewrite the pins table, so it makes sense...

Richard B 

37
NC Pod / request for drivers for oem tech basic control panel
« on: January 01, 2011, 04:19:27 PM »
Hi,

A friend of mine suggested I should test run the ncPOD (see my previous post in this sub-forum) with oemtech's basic control interface thingy. Excellent idea! Except that the link to it is down...

Does anyone have the 'NewUsbDriver 0.9.9.0' file anywhere? can someone send it to me? I think oemtech are on their holidays at the moment; no reply from them yet.

Richard B

38
NC Pod / Pod not recognised?
« on: December 29, 2010, 01:45:27 PM »
Hi,

A year ago I got my machine working (Mach3, ncPOD, xp sp3), mothballed it for months, and forgot everything I learned setting it up the first time...

Now I come to use it again, after 4 months away from it, it doesn't work.... no jogging happens (even in DRO's) and no response to gcode, unless I specify the parallel port driver in mach instead of ncPOD. Motors all tight and torqued up, lights on drivers lit, so no problems there.

When the pod is switched on, the red and blue lights show continuously, the green flashes slowly. It stays like this regardless of whether the pc is on or off, or if Mach is running or not. Disconnecting the usb lead at either end causes the blue light to blink (which tells me no usb connection)

So I reloaded Mach and all drivers, tried it , with same response. Even ran chkdsk to see if PC  had a problem. None there.

Also, despite seeing 'Deskpod-ncPOD-plugin-3.00.--A.Fenerty-B-I'' 'in the motion control hardware sensed!' dialogue at start of mach, I'm still only seeing 'ncPOD v2.00.059 config' in the dropdown under 'plugin control', plus an ominously empty config box... (see attached.) I seem to remember something automatically appeared there the last time I did all this I mean in the config box, sorry.

I don't remember how I solved this last time I did all this... I know I had same problems a year ago, forgot to write down what I did.

Rich B

39
General Mach Discussion / best supported controller?
« on: December 29, 2010, 12:00:48 PM »
Hi,

At the risk of starting a war of some kind, can anyone recommend a control board for me that is actually popular and well supported (in terms of advice, updates, etc) by both the manufacturer and cnc forums.

I'm fed up with the pace of progress getting my ncpod based machine running.

My pc has a parallel port, and I'm running 6 axes. Such things as backlash compensation, spindle speed control etc not necessary, but THC would be helpful (not obligatory, though; there's probably a way to work around the lack of it), and I need home/limit for all 6 axes, plus a few supplementary input and output pins.

Anyone any ideas? anyone tempted to sell me something they're not using?!

Rich B

40
General Mach Discussion / .m3p file
« on: December 28, 2010, 03:04:17 PM »
Hi,

stupid question coming:-

A year ago, I got my machine working ( mach3, ncPOD), mothballed it for months, and forgot everything I learned setting it up the first time...

At the moment, the ncpod plug in doesn't work. There is a plug in on the mach site, which I've downloaded, and want to use. I think this went some way to solving the problem last time. It's a .m3p file! I have no idea at all what to do with it. Frustrated, can't remember. Looked in the mach 3 mill documentation, found nothing...

Can anyone tell me what to do with an .m3p file?

Thanks...

Rich B

Pages: « 1 2 3 4 5 »