Hello Guest it is April 19, 2024, 12:41:24 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 - DuhSavant

Pages: 1
1
General Mach Discussion / Skip Code?
« on: January 14, 2014, 11:42:42 AM »
Hello everyone,

I'm building a somewhat(actually very much so) custom Cylinder cutter. I'm trying to automate as much of the process as possible. Basically, when the cylinder gets cut, I would like it to hit a microswitch as it falls off. This microswitch would (Hopefully) give an input to Mach3, then Mach3 would use that input to skip the current line of code it is on and move to the next line of code.

Is there such functionality in Mach3? I've looked in the VB guide and done a little(Very little) research on Brains, but I haven't been able to find my answers. Can someone here help me?

Thanks for your time.

2
General Mach Discussion / Re: Help programming inputs
« on: January 10, 2014, 03:39:14 PM »
I'm sorry for all the questions I'm throwing at you.

So basically, I just used VB to create an M-code?
ALSO: I just tried to implement that code to see if it works and when I ran the code, it skipped to the M101, activated the Output1 signal and sat there. It did not run any other lines of code.

I can show you the code I'm using right now. It's a very simple code.


Code:
G20 G17 G91 F90
G0 z0.00

M98 P1234 L2

G90
G0 x0.00
M30

O1234
G1 X10.000
M4
M3  (These do not actually activate the spindle, so don't worry. I just output them to another source, and this part of the code runs fine)
(M101 would have taken the place of the M3, but again, did not run when I put it there)
G1 Y10.000
M5
M99
%

3
General Mach Discussion / Re: Help programming inputs
« on: January 10, 2014, 03:29:38 PM »
I have read portions of the Programmer reference manual, and did not see any kind of wait statement in there.

Now, as far as M101 code in my program. Is that in the top of my program with my general declarations?

4
General Mach Discussion / Re: Help programming inputs
« on: January 10, 2014, 03:19:44 PM »
Thanks for your reply, Hood.

If I understand that script correctly, then that will Deactivate my Output1 signal when my Input1 signal goes active. Is that correct?



EDIT: If I am correct in my assumption.... I want to script something like this to stop the line I'm working on now, and skip to the next line of G code. I understand you're not a VB expert, neither am I, but do you know what something like that might look like?

5
General Mach Discussion / Help programming inputs
« on: January 10, 2014, 02:55:06 PM »
Hello, I'm trying to program an input into Mach3. Basically, I want to make a wait statement. Where do you go to configure the usage of OEM triggers or Inputs? Also, does Mach3 support any kind of "Wait for Input" feature? I cannot find a G-code for any kind of wait statement.

To give you a better Idea of what I'm trying to do, I want a program to run a set number of codes, send an output to an alternate program, and then halt Mach3's operation until the other program sends a signal back to Mach3 to continue operation. I understand this can be done manually with an M0 or M1 code, but I need it to automatically restart after the break.

Keep in mind: this is my first post on this forum, and I'm not sure where it goes. Keep in mind I just got this Mach3 software. I am certainly not a CNC pro either.

Pages: 1