Hello Guest it is April 28, 2024, 09:31:08 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 - ComNerd21

Pages: 1
1
Share Your GCode / Re: VBS get machine location
« on: May 23, 2016, 04:07:26 PM »
SOLVED

getABSPosition(axis as integer)

2
Share Your GCode / VBS get machine location
« on: May 19, 2016, 11:16:20 PM »
Hello, i am using mach3 and need to get the current machine location.
i am programming this into a button that i added on a custom scene set, so i am using vbS.
any help would be great.

3
SOLVED!!!

Hi all, i am writing a vbScript program for mach3. my code is:
Code("#100 = 1")
If (Code("#100") = 1) Then
   MsgBox("true")
Else
   MsgBox("false")
End If

when this code is run i get a "false" message box, what am i doing wrong, i am using the system variable because I will need the state of this in another program.

Use a vbScript global variable.

4
Hi all, i am writing a vbScript program for mach3. my code is:
Code("#100 = 1")
If (Code("#100") = 1) Then
   MsgBox("true")
Else
   MsgBox("false")
End If

when this code is run i get a "false" message box, what am i doing wrong, i am using the system variable because I will need the state of this in another program.

5
G-Code, CAD, and CAM discussions / Re: Make M-Code
« on: May 06, 2016, 10:50:11 AM »
All of the programs that I write are designed to be scaleable. I am programing for a mill and the company wants the ability to choose what width height and depth to mill images. The looping is the easiest way to do this.

6
G-Code, CAD, and CAM discussions / Make M-Code
« on: May 04, 2016, 10:48:33 PM »
Hello, My name is Ben and i am currently sub-contracting for a company that wants me to write a variety of programs using g-code.
Since the mach3 g-code environment does not support the loops that i need to run i have resolved to writing a vbScript file and running code from that using the "Code "codeName" " function.
I have written some of the programs so that they work correctly using the mach3 built in vbScipt editor, when i click the play button it even runs on the machine.
I saved the file as M101.m1s and placed it in the directory "Mach3\macos\Vintage_Custom\M101.m1c" (Vintage_Custeom has been set as the working directory when mach 3 starts.)
When i call M101 from code my understanding is that if not found in the default mach3 defined M-Codes it will look in "Mach3\macos\Vintage_Custom\" to find it.

My Issue:
When my G-Code reached the line where i write M101 nothing happens, the machine runs as if the line never executed.
Any Insite?

Pages: 1