Hello Guest it is April 19, 2024, 02:05:05 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 »
11
Brains Development / Compare two DRO values using a brain.
« on: May 24, 2013, 04:48:53 PM »
Is it possible to compare two DRO values with a brain, and if they are different activate a ULED?

12
I've read heaps of posts regarding the use of a dialog box, but I can't for the life of me figure out the format for the following sequence to work:

1 Dialog box opens with multiple tools in the list (This works ok)
2 Select the item you want (This works ok)
3 Depending on the item selected, values are entered into custom DRO's (No idea how to complete this part)

This is the test code I am using (just from the manual):

Sub Main
Dim MyList$ (5)
MyList (0) = "line Item 1"
MyList (1) = "line Item 2"
MyList (2) = "line Item 3"
MyList (3) = "line Item 4"
MyList (4) = "line Item 5"
MyList (5) = "line Item 6"
Begin Dialog BoxSample 16,35,256,89,"Drop-Down List Box"
OKButton 204,24,40,14
CancelButton 204,44,40,14
DropListBox 124,24,72,40, MyList$( ),.DrpList
Text 124,12,68,8,"Drop-Down List Box:"
End Dialog
Dim Dlg1 As BoxSample
Button = Dialog ( Dlg1 )
End Sub

So ideally if "line Item 1" is selected it will enter the following data:
SetOEMDRO(1204,4)
SetOEMDRO(1205,4.15)
SetUserLED(1007,1)
SetUserLED(1008,1)
'Message "Line Item 1 Details Entered"       

If "line Item 2" is selected it will enter the following data:
SetOEMDRO(1204,10)
SetOEMDRO(1205,5.25)
SetUserLED(1007,1)
SetUserLED(1008,1)
'Message "Line Item 2 Details Entered"       

So on and so forth.

I've done a bit with the visual basic side of it, but really only the basics of onscreen buttons and leds.
Thanks
Darc

13
VB and the development of wizards / Message across LAN
« on: May 15, 2013, 02:02:27 AM »
Hi Guys,
Just curious whether it's possible to have my CNC router send a message across the LAN to a win7 PC (IP 192.168.0.6) to say it's completed?
Just a thought, I think it might come in handy.
I had a quick look and couldn't really find anything on the forum.
Darc

14
VB and the development of wizards / Log file?
« on: December 06, 2012, 11:19:53 PM »
Is it possible to output the current machine position into a log file every time a certain M code is ran?
So every time the M code is called it just adds X_ _ Y_ _ X_ _ into the log file.
I think something like this would be great for debugging some VB code.
Darc

15
VB and the development of wizards / DRO Skin variations
« on: September 09, 2011, 07:14:20 PM »
Hi, is it possible to use the macropump to change the skin on certain DRO's depending on which work coordinate system is being used?
So in theory if G54 is in use the DRO would be GREEN, but if G55 is in use it might be YELLOW.
It's a bit out there, I know that.

16
General Mach Discussion / 2 stage homing script
« on: August 15, 2011, 04:27:16 AM »
Currently I use pretty much the standard homing routing, is it possible to home at rapid for the first cycle, then home at the normal slow speed, just to make it a lot quicker?
These are the buttons that currently run the slow homing cycle.

DoButton( 24 )'Z
DoButton( 23 )'Y
DoButton( 22 )'X

17
Below is a copy of a program that produces the strange movement.
If I enter a value for the corner radius on our grinding wheel it seems to offset correctly except when moving, it will move Y12 but also moves X  the value of the wheel radius.
If you alter the tool diameter and watch the movement of the Y12 you will see what I mean.
Got me pooched!!.......Can someone please offer some insight?


(strange tapering of parallel movement)
#1=4       ;No of Cuts
#2=400    ;Feedrate
#3=0.05   ;Cut Size
#4=1.      ;Corner Radius on Wheel

#6=[#1*#3] ;(No of Cuts * Depth of Cuts)
G90 G54 G21 G40
G41 G0 X0. Y0. P#4
M1
M98 P1 L[#1-1]
G40
M30



O1
G91 G0 X#3 Y[#3-[#3*2]]
G0 Y-18.
X5.
G1 Y12. F#2 ;Tapers this parallel movement the amount of radius comp that is put on
G2 X1. Y1. I1. J0.
G1 X5. ;Does this line correct (one axis only)
X5. Y5.
G0 X-16.
M99


18
General Mach Discussion / Cycle time accuracy
« on: July 30, 2010, 09:30:12 PM »
Is it possible to have the cycle time show more accurate, ever since I changed the look ahead value to 200, the timer runs out as soon as it's read the lines, not when it's actually ran them?
Is there a way around this?
Darc

19
General Mach Discussion / Radius Compensation
« on: May 10, 2010, 02:31:12 AM »
Hi Guys,
A while back I made a machine similar to a cylndrical grinder, it is basically the same config as a lathe, except for the toolpath display.
X=Ø
Z = length
It works great.
I try to use radius compensation and it gives me the following error:

"Cannot turn cutter radius comp on out of XY planeline 7"

I'm guessing I have something set wrong, assuming you can use the radius compensation for the lathes.
I've attached my General settings, I've highlighted a section that confuses me, if I set this to XZ, it just returns to XY next time I open it, what exactly is this for?
Darc

20
Mach Screens / Cycle running LED
« on: April 21, 2010, 02:48:02 AM »
Hey guys, been a while, but I'm back on the Mach Train............toot...........toot
I thought I would try to put a bit of code to stop people changing pages whilst a program is running, long story short, I have one page as G54 and one as G55 so I don't want it to be changed half way through a program.
I tried the following code, and for some reason it isn't working.

If Not GetOEMLED(804)Then'The cycle running LED
DoOEMButton(1)
Code "G54"   
Else
Message "Please wait for cycle to finish before changing pages"
Exit Sub
End If

Thanks Darc

Pages: « 1 2 3 4 5 6 7 8 »