Hello Guest it is April 24, 2024, 03:03:40 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 - amnon

Pages: « 1 2 3 4
31
General Mach Discussion / Re: new button and led
« on: January 31, 2015, 07:40:04 AM »
Hej Hood,

I'd like to add button and LED, but made in mach Screen (not a standard). LED will give me information, if a VB code was executed.

Respect
Amnon

32
General Mach Discussion / new button and led
« on: January 29, 2015, 01:57:37 PM »
Hello,

How can I add a led to my new button?

Best Regards
Amnon

33
General Mach Discussion / Re: manual tool zero
« on: January 12, 2015, 02:42:48 PM »
Hej

Thank's andmar2005, I have another question

Code "G31 Z" & z-100 & "f100"
While IsMoving()
Wend
Z = GetVar( 2002 )

After probing Z = 6,5 mm - what kind of length is this. How is it measure.

Best Regards
Amnon

34
Quote
yes, yust figure it out.

but It doesn't work

35
General Mach Discussion / Mach3 Controller Card Breakout Interface Board
« on: October 30, 2014, 12:17:03 PM »
Hej,

I bought USB Controller Card

http://www.ebay.co.uk/itm/3-Axis-USB-Controller-Card-400KHz-CNC-MACH3-Breakout-Interface-Board-Win7-8-XP-/261395836685?pt=UK_BOI_Industrial_Automation_Control_ET&hash=item3cdc67ef0d

I have problem with wireing this up. There is no Enable joints (just DIR and STEP)unlike my stepper motor driver. I read manual but I didn't find explanation why is that. Could soneone tell me how to make it work.

Respect
amnon

36
G-Code, CAD, and CAM discussions / Re: GetVar(2002)
« on: October 22, 2014, 12:13:03 PM »
Code: [Select]
code "g90"

ChX = GetUserDRO( 1200 )
ChY = GetUserDRO( 1201 )
ChZ = GetUserDRO( 1202 )
Feed = GetDRO(18)

Code "G53 G00 Z-0.1" 'Move the tool all the way up
Code "G53 G00 X" & ChX & "Y" & ChY 'Move to the probe position
While IsMoving()
Wend

Code "G31 Z" & Z-100 & "f100" 'Z move down untill hit

While IsMoving()
Wend

ZposOld = GetVar(2002) 'Get the Position that the Porbe hit at
Code "G53 G00 Z-0.1"'Z move all way up

While IsMoving()
Wend

MsgBox ("Insert the new tool")
MsgBox ("Ok to finish tool change")

Code "G53 G00 Z-0.1" 'Move the tool all the way up
Code "G53 G00 X" & ChX & "Y" & ChY 'Move to the probe position

While IsMoving()
Wend

Code "G53 G00 X" & ChX & "Y" & ChY 'Move to the probe position

Code "G31 Z" & Z-100 & "f100" 'Z move down untill hit

While IsMoving()
Wend

ZposNew = GetVar(2002) 'Get the Position that the Porbe hit at
Offs = ZposOld - ZposNew

Call setdro (2,Offs)   'Set the value of the DRO to the value that is in "Offs"
Code "G53 G00 Z-0.1"   'or hoever high you want to go to get up safely off the probe

MsgBox ("Ok to return to program")


Code "G00 x0 y0"


My intention is to understand step by step what is going on in each line, and make my own macro.
I change tools manually - Kress, and my tool height measurement is in the same location, so I have to measure each tool twice to calculate difference.
Maybe there is a easier way to do this?

Respect
Amnon

37
G-Code, CAD, and CAM discussions / Re: GetVar(2002)
« on: October 22, 2014, 06:51:15 AM »
How macro knows that after :

Code "G31Z-10"
While IsMoving()
Wend


Z axis should be put into 2002(ZProbePos)
ZProbePos = GetVar(2002)

Respect
Amnon

38
G-Code, CAD, and CAM discussions / Re: GetVar(2002)
« on: October 21, 2014, 05:07:23 AM »
Thank's

What does "cstr" mean

Regards
Amnon

39
G-Code, CAD, and CAM discussions / GetVar(2002)
« on: October 21, 2014, 01:05:38 AM »
Hay,

Code "G31Z-10 F100" 'probing move, can set the feed rate here as well as how far to move
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit

Could some one explain me why is that when I put MsgBox ZProbePos I have always 0

Regards
Amnon

40
General Mach Discussion / manual tool zero
« on: October 12, 2014, 08:31:47 AM »
Hello,

I have macro M6End for manual tool changing and zeroing:


dim tool
z=25

Xtcp= GetUserDro (1200)
Ytcp= GetUserDro (1201)
Ztcp= GetUserDro (1202)
Feed= GetDRO(18)

Code"G53 Z"&Ztcp
While IsMoving
Wend
Code"G53 Y"&Ytcp & "x"&Xtcp

Code "G31 Z" & z-100 & "f100"
While IsMoving()
Wend
Z = GetVar( 2002 )
Code "G0"
Code "G53 Z0"
While IsMoving()
Wend
call SetOEMDRO(42,z-2)
Tool = GetDRO( 24 )
Code "G43 H"&Tool
Code "G53 z0"
While IsMoving()
Wend


but I don't know why is that after tools change I have different Z positions of tools.
When my program execute code G54 Z0 afer tools change Z axis is not on the top of my material as a planed. (G54 set on top of my material)

Best Regards
Amnon

Pages: « 1 2 3 4