Hello Guest it is February 06, 2023, 05:51:51 PM

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 - Tarak

Pages: 1 2 3 4 5 6 7 8 »
VB and the development of wizards / Manual tool change macro
« on: September 27, 2021, 07:29:46 PM »
Hi all,

It's been awhile since I've been here, but time has allowed me more Mach time, which I have sorely missed.
I have read soooooooo many posts to try and figure this out, but to no avail.
My question is regarding the the tool change location.

Just to recap, I have a probing routine (code in the button) that I have used for years, it fairly basic, but it works great for me.
I just jog close to my touch plate, hit the button, then it moves down in small increments until it touches, retracts, then goes again in smaller increments, sets the thickness of the plate then retracts
I decided to make this into M14 so I can utilise it in a program (similar to M6, I could just never get this to work correctly).

So basically in my program it calls M16, which moves to the tool change location specified in (1200,1201,1202), then I would like the machine to PAUSE HERE so I can manually change the tool and jog close to the touch plate, press CYCLE start, then it would touch the touch plate set Z (which it does really well with my M14 if I do it manually), but I cannot get it to PAUSE once it move to the G53 location, it just goes straight into my probing cycle.
Is there an easy way for me to PAUSE the program at the G53 location? I have looked at so many tool change macros, but I cannot figure out what is making it stop so you can change tools and jog the machine.
It's probably staring me right the face. ::)


Tarak ;D

VB and the development of wizards / Enable multiple LEDS
« on: February 04, 2019, 05:04:55 PM »
Hi All,

Is it possible to have multiple LEDs enabled/disabled in a single command?
Similar to

General Mach Discussion / Servo drive tripping, mach3 stays online.
« on: June 03, 2017, 05:36:01 PM »
Hi All,
I have this issue that happens once in a blue moon:
I believe I have a leadscrew with a tight spot in it. And occasionally when the machine is ramping up speed at this exact point it will tripout my Z axis servo drive (TEK10), but it doesn't stop Mach from running, so my other axis keeps machining, is there a basic setting I haven't enabled to stop the system when a servo drive trips?
Its easy to re-position once it does trip, I just re-home the offending axis and it's good to go again.
BTW, I'm running three ID33003 servo motors with three CNC TekniX TEK10 drives


Hi All,
I have an interesting probing issue that I am unsure how to easily overcome, I have programmed two buttons for testing purposes:
the first button is my step grinding program, it works a treat.  ::)
I have used the following code style in both buttons:

OpenTeachFile "Step grinding program.cnc"
Code "(Step grinding program.cnc)"
Call LoadTeachFile()

the second is a probing routing which is an entire G code program I have written, it works quite well.

OpenTeachFile "probing cycle.cnc"
Code "(probing cycle.cnc)"
Call LoadTeachFile()

I was originally hoping to run the program by putting it into an M code, but I now realise I cannot run it like this, the values would not update.
So I guess my questions are: ???
  • How can I have it run the probing cycle during the STEP GRINDING PROGRAM which will measure existing step lengths.
  • When I press the load button on the STEP GRINDING PROGRAM it loads all parameters from DRO's, so after running the PROBING CYCLE, how do I get it to load these new measured values into an already running G code program (STEP GRINDING PROGRAM).

Tarak ;D

VB and the development of wizards / Work offset table using VB
« on: September 15, 2016, 01:04:21 AM »
Is it possible to extract a value from the WORK OFFSET TABLE?
I've read many post for the Tool table but I can't find anything about the WORK OFFSET table.

Basically I would like to be able to read the X & Z values of G54, G55, G56, G57, G58 & G59 when I need to.
Is this possible?

I tried with the GetToolParam, but I think this is only the tool table.


General Mach Discussion / G31 alternative
« on: August 13, 2016, 06:54:20 PM »
Because of some of the strange issues I am having with G31, is there any alternative probing function to use instead of G31?
I am writing a probing routine that is fairly standard, but occasionally when it runs a line like "G31 Z-5. F100", the A axis will rotate as well????
But the next time I run the code it may not rotate??????
It's a very strange issue, has anyone experienced anything like this?


VB and the development of wizards / Touch probe checking algorithm
« on: July 25, 2016, 07:26:08 PM »
Hi All,
I've been using a touch probe for a bit now with pretty good success (touch job, set size, pull away), I am wondering if anyone could help me with how I could do the following probing routine, I couldn't really find anything like it on the forum.

I am using a rotary axis in my router, I have a round bar with a slot in it (in a random position around the bar), this is in the A axis,
I would like to tell the probe to try to come in to 2mm below the diameter of the round bar (this would ensure it is in the slot), but if it hits the bar before this, to stop, pull away 3mm, then rotate the A axis 10°, then try plunging in again, repeat this until the probe is capable of reaching the final depth (2mm below bar diameter).
Once this depth is reached, to then rotate A axis until the probe is activated, then I know where the edge of the slot is.

Tarak ;D

General Mach Discussion / Weird rotary axis issue???????????????
« on: April 24, 2016, 06:41:27 AM »
Hi All, been awhile since I've been back at the forum, may I pick your brains for some ideas with this rotary issue I'm having?
I've been using this machine for a few years now, it's basically a cylindrical grinder, it works in the same manner as a lathe.
Xaxis is diameter, Zaxis is left and right and A axis is the rotary head (indexable axis not a spindle).
Ever since I can remember, if I run code like the following:

G90 G0 X20. Z0.
G91 G1 A1440. F2000
      G0 X20.;***********

X axis will jump out and lose position, tripping out the servo on the line with the**************
I managed to get itto work by entering a really slow feedrate instead of G0, e.g G1 X20. F20 (very, very slow though).
I'm guessing it's to do with the fact I am trying to use the indexable axis as a spindle type arrangement, any ideas why it might be doing this?????????.

A few years back I attempted to use the A axis as both the indexable axis and also a spindle that I could just turn on and off, but I couldn't get it to work.
I tried setting the pins of the spindle to the same as the step and direction on the A axis, but I just got errors about duplicating pin assignments, could someone possible explain exactly how I could get this to work?


Mach Screens / Timer display
« on: August 26, 2015, 05:24:18 PM »
Hi Guys, is it possible to put a clock on the screen (much like the cycle run time display) that I can start with an M code when a program finishes?
It's only to display the idle time since the machine was run.......

Is it possible to use VB script to change the appearance of the toolpath display?
The main thing I was hoping, is to enable/disable A axis rotations.

Pages: 1 2 3 4 5 6 7 8 »