Hello Guest it is March 28, 2024, 01:47:29 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 - JJ

Pages: 1 2 »
1
VB and the development of wizards / Re: mach vs VB sleep call problem?
« on: April 02, 2008, 09:26:25 AM »
Hi Stirling,

Thanks for your input, but there was definitely an increase in processor usage without the sleep commands.

Processor usage w/o sleep commands is at a constant 62%.... after adding the sleep commands processor usage is below 5%.

Thanks,

JJ

2
VB and the development of wizards / Re: mach vs VB sleep call problem?
« on: April 01, 2008, 12:11:49 PM »
Nevermind... I simply deleted the Declare Sub Sleep line and the sleep commands are working well and processor use is at correct levels.

JJ

3
VB and the development of wizards / Re: mach vs VB sleep call problem?
« on: April 01, 2008, 12:06:02 PM »
I'm having the same problem.

I get a type mismatch error on my sleep commands after upgrading Mach3 versions.

Is there a new syntax for the sleep command?  A snipet of my code is below.

Declare Sub Sleep Lib "Kernal32" (ByVal dwMilliseconds As Long)
.
.
.
DoOEMButton (1002)
DoButton (24)
While IsMoving()
Sleep 100
Wend
RunFile
.
.
.

Please help... my script is now broken unless I take out the sleep commands.  Unfortunately, too much processor resources get used up if I do that.

Thanks in advance,

JJ

4
G-Code, CAD, and CAM discussions / Re: Very Basic G-Code Help
« on: September 11, 2007, 01:12:54 PM »
Thanks Graham!

Sorry for the delayed response, but that worked terrifically.  Thanks again!

JJ

5
G-Code, CAD, and CAM discussions / Very Basic G-Code Help
« on: August 29, 2007, 01:31:17 PM »
Hello,

i apologize in advance for the basic nature of my question. 

I am using a custom 3-Axis stepper motor CNC device controlled by Mach3 and a Xylotex controller board. The device has been designed to press buttons on cel phones to stress our phone software.  The following is an example of the G-Code we use to navigate to the phone screen and make a call:

G28.1 Z0 Y0 X0
G0 G49 G40 G17 G50 G90
G82 X0 Y0 Z-.01 P0 R-.001 F150

(Start - Phone 1)
X5.5955 Y6.5254 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(#5 - Phone 1)
X5.9477 Y5.2646 Z-.49 P0

(Send - Phone 1)
X6.6462 Y4.8187 Z-.49 P0

(Pause for 10 seconds)
G4 P10

(Turn Off Phone 1)
X6.8215 Y6.4143 Z-.49 P6

G80
G28
M30


My simple question is what code should I use to add a "slot" here?  I basically need to move a phone's navigation button left, right, up, or down.  I want to accomplish this by cutting a fake slot... bringing the Z down to a given value, then moving the X or Y axis a short linear distance while Z remains down, then returning Z to it's Home position (determined by a limit switch).

Any help is GREATLY appreciated!

Thanks again,

JJ

6
G-Code, CAD, and CAM discussions / Re: M99, M98 problems...
« on: May 17, 2007, 01:21:44 PM »
Use the Teach feature, It Saves it to C:\Mach3\Gcode, You will have to Edit it anyway to add the M99, Use the File, "Save As" and Save it to the C:\Mach3\SubRoutines\, Folder.

Hi Chip,

Thank you for your reply.  Unfortunately this is the exact thing I'm trying to automate using VB.  Adding the M99 through VB is not a problem, but the mandate that subroutines be in the subroutine folder makes the teach function useless for subroutines as it only teaches to the gcode folder.  This wouldn't be a problem if m98 could call a file from the gcode folder, but that doesn't seem to be the case.  This screen is being made for internal customers and I would really like for them not to have to move a subroutine file every time they "teach" a new one.  Has nobody had the need to do this before?  I would think someone is using the teach function for subroutines as well as main routines, but I could definitely be wrong and probably am. :)

Is this the type of thing we ask Art to implement into his next version?

Thanks again for everyone's help...

JJ

7
G-Code, CAD, and CAM discussions / Re: M99, M98 problems...
« on: May 16, 2007, 01:45:20 PM »
Thanks to all that have helped so far... I'm still not out of the woods though.

I was able to get the file to load by placing the sub.tap file in c:\mach3\subroutines.  However this creates a new problem.

How can I teach and endteach a file in the subroutines folder?  I've tried the following to no avail.

OpenTeachFile "c:\mach3\subroutines\sub.tap"

and

OpenTeachFile ("c:\mach3\subroutines\sub.tap")

and

OpenTeachFile (c:\mach3\subroutines\sub.tap)


After failing at this, I figured I'd teach it to the default c:\mach3\gcode folder using OpenTeachFile "sub.tap" and try Graham's email suggestion to M98 (c:\mach3\gcode\sub.tap) L1 but of course that fails to load the file giving me the same indications as above.

I guess that brings me back to how I can teach a file to the subroutines folder.

Thanks for all your help so far guys... I am at my wits end here. :)

JJ

8
G-Code, CAD, and CAM discussions / Re: M99, M98 problems...
« on: May 15, 2007, 05:48:18 PM »
Files sent... thanks again.

JJ

9
G-Code, CAD, and CAM discussions / Re: M99, M98 problems...
« on: May 15, 2007, 03:04:25 PM »
OK...

I tried saving the sub.tap file and the main.tap file from Wordpad using the "Text Document - MS-DOS Format" option in the save-as function as per the link above.

I still see no G-Code in the G-Code display of the program when I do File - Load G-Code - Main.tap from the C:\mach3\gcode folder.

I did find an additional problem that could be an indicator to the cause of this.  When I try and edit a newly taught file via a Button defined as "Edit File" in the OEM drop down list, it does not launch my text editor.  I did a search through the forums and found people with similar issues having the wrong setting in the General Config options.  I verified that my path in that setting is c:\program files\windows nt\wordpad which I defined using the "Browse" button.  It still doesn't work.  I also tried defining the path to notepad from here and it didn't work either.  Do I have a system variables issue in Windows?

Any help is greatly appreciated.

Thanks,

JJ

10
G-Code, CAD, and CAM discussions / Re: M99, M98 problems...
« on: May 12, 2007, 12:24:08 PM »
Thanks Graham,

The M99 was a typo in my post... I was using M98 to initiate the canned scenario.

I'll try using wordpad when I get back to work on Monday.  I'll post the results.

Thanks again,

JJ


Pages: 1 2 »