Hello Guest it is April 24, 2024, 03:35:22 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.


Messages - Tarak

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
191
Hi Brian, thanks for the reply (sorry it's taken me so long).
I've been reading up on the Macro pump and now I understand what it is and how it works.
I looked at the LED I need to check and it's OEM code 808.
I'm just having a try at coding it at the moment.
Thanks.

192
Mach Screens / How do I use an OEM code with VB?
« on: April 11, 2007, 06:00:23 PM »
I've got a button that runs g code
e.g
CODE "G90 G00 X10.0"

Before the code runs I would like it to close any open G code program (just in case).
I noticed on the CLOSE G CODE BUTTON the OEM code is 169.
How do I use this OEM with VB?
Thanks.

193
Sorry to hear your scripts won't work, but I have to admit, it makes me feel better, I'm not going crazy...

194
General Mach Discussion / Re: Should I remove the gallery ?
« on: March 18, 2007, 02:53:08 AM »
I never noticed it either, great idea, I'll post pictures sortly.

195
Is it possible to make the machine not operate unless it is homed after switching on power?

196
I've got this topic in another of my posts, but thought it may get a few more looks in it's own topic.
I've searched the forums and looked in Mach3 but I can't seem to work out how to get a DRO and a button that runs a program to interact.
I think I'm close, I want to have a DRO that you can put a measurement into and when you press a button it will use this measurement in the program, this is what I have.
Create a DRO, I assigned it to DIAMETER OF CURRENT TOOL (which I think is OEM code 105), should I select DIAMETER OF CURRENT TOOL from the drop down or should I enter the OEM code 105?

Create a button and assign VB code to it as follows:

Material = GetOEMDRO (105)
CODE "#1=Material"     ;In theory if 20 is entered into the DRO, Material should =20
CODE "G90 G55 G21 
CODE "G00 Y[#1*2]    ;Rapid to Y40
CODE "G01 Y#1 F100  ;Linear travel to Y20
CODE "G00 Y[#1*2]    ;Rapid back to Y40
CODE "M30"

What am I doing wrong?

197
Thanks Wolfram, on my screen set I have 15 buttons and an LED for each button/program, how do I set each LED to run for one individual program only?
Does that mean I need to have 15 different M codes?
Also do I just save each M code as follows: M100.m1s,  M101.m1s, M102.m1s, M103.m1s, M104.m1s, etc etc?
Sorry one more thing, with this code you wrote.

SetUserLED (nnnn, 1)   ' Led on
(How do I link this to a particular LED?)

Also on another topic, I've searched the forums and looked in Mach3 but I can't seem to work out how to get a DRO and a button that runs a program to interact.
I think I'm close, I want to have a DRO that you can put a measurement into and when you press a button it will use this measurement in the program, this is what I have.
Create a DRO, I assigned it to DIAMETER OF CURRENT TOOL (which I think is OEM code 105), should I select DIAMETER OF CURRENT TOOL from the drop down or should I enter the OEM code 105?

Create a button and assign VB code to it as follows:

Material = GetOEMDRO (105)
CODE "#1=Material"     ;In theory if 20 is entered into the DRO, Material should =20
CODE "G90 G55 G21 
CODE "G00 Y[#1*2]    ;Rapid to Y40
CODE "G01 Y#1 F100  ;Linear travel to Y20
CODE "G00 Y[#1*2]    ;Rapid back to Y40
CODE "M30"

What am I doing wrong?

198
I would like to run a small program, that will also turn on an LED
e.g
CODE "TURN LED ON HERE"
CODE "G90 G55 G21"
CODE "G00 Y100."
CODE "G01 Y110. F100"
CODE "G00 Y300."
CODE "M30"
CODE "TURN LED OFF HERE"

What's the best way to achieve this?

199
Well I just copied the Mach3 folder from a pc that it works on and voila, so I have no idea what I did wrong?

200
General Mach Discussion / Re: Limit Switch Problems - BAFFLING!
« on: February 17, 2007, 03:03:45 PM »
Thanks, I'll give it a try.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »