Hello Guest it is March 19, 2024, 12:35:19 AM

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 - mjohnson

Pages: 1
1
VB and the development of wizards / Macro Question...
« on: March 30, 2019, 03:55:21 PM »
I found a VB script that will email me when executed. Most people set it up as an M30 macro. I am wanting to set it up as an M03 macro instead. My question is how do I get it to make the subject line of the email the next line in the G-Code? The reason for this is that Vectric Aspire will put the name of the step that it is running after every line with M03. I want an email to be sent to me every time a new step is ran with the subject line being the name of the step which requires reading that next line. Here is a sample of the applicable lines of G-Code as it is generated by aspire:

Code: [Select]
...
N350G00Z0.2000
N360S16000M03
(Step 1 - 8th - Inside Holes)
()
N390G00X4.0365Y4.7133Z0.2000
...
 

AND

Code: [Select]
...
N90880G00Z0.2000
N90890S16000M03
(Step 2 - 8th - Slow Profile Cut)
()
N90920G00X0.8160Y92.2155Z0.2000
...

Any help with reading the following line after the M03 so I can use it in my code like this would be appreciated:

Code: [Select]
Set objMessage = CreateObject("CDO.Message")
objMessage.Subject = <<LINE IN G-CODE FILE AFTER LINE CONTAINING THE M03 THAT TRIGGERED THE MACRO GOES HERE>>
objMessage.From = """Me"" <me@my.com>"
objMessage.To = "******************xx@*********xx.com"        *******************Insert Your Email address
objMessage.TextBody = "This is some sample message text.." & vbCRLF & "It was sent using SMTP authentication."

Thanks,
Matt

2
Mach4 General Discussion / Mach4 Axis Calibration...
« on: May 13, 2016, 03:37:06 AM »
I saw some discussion about Mach4 not having the same calibration wizard to calibrate your axis steps that Mach3 has. Those discussions are a year old now, did that ever get implemented into Mach4?


3
I am having a problem that I have no clue how to troubleshoot. 1 out of 5 times when I flip the switch to turn on my machine the 20A breaker trips. The only load on that circuit is my PC (already running when I turn on the machine). I am running a Toroid PS-8N56R power supply which is 800w. My first guess is that the culprate is startup surge considering it is sporatic and only at start-up and if there was a short of some kind it would trip all the time but it does not make sense that an 800w power supply would trip a 20A breaker (the PC power supply is 350w).

Any thoughts on how to confirm I do not have a more serious issue and what kind of options do I have to resolve this?

Thanks,
Matt

4
General Mach Discussion / Dust Collector blowing fuses...
« on: April 28, 2016, 12:01:41 PM »
I purchased a dust collector from Harbor freight that works great when attached to the wall outlet, but when I attached it to an Opto22 relay to be controlled programmatically it blew the 30A fuse on the 120v side of the Opto22 that I had placed in-line. The specs for the dust collector show it as 20A and when plugged into my wall outlet which has a 20A breaker it never trips it....

Soo my guess is it had to do with startup surge or something like that that the fuse cannot handle but the breaker can. My question is if it would be okay to just remove my inline fuse and rely solely on the breaker for protection? Could my opto22 handle the startup surge without damage? (it is a 25A relay which is higher than the breaker) should I just try to get a slow burning fuse instead?

Just curious what my options are. Thanks.

Matt

5
I was having problems with the machine getting false positives saying the limit switch had been triggered in the middle it running, the diagnostic screen showed no switches enabled. After hours of troubleshooting, turning off inputs, etc. I found that two things were causing it:

1) if the ground from my PC to the C10 controller board was not connected to earth ground
2) if the shielding on my VFD cable was connected to the ground pin in the VFD

I do not understand why connecting the VFD shielding to the ground terminal on the VFD would cause these limit switch errors, does anyone have an idea? That shielding is not connected on the other side, there is no connections between the VFD and the rest of the system (it is ran stand alone) I just cant figure it out.

Thanks for any feedback. For now I just disconnected the VFD shielding to keep working.

6
General Mach Discussion / Please Help... Homing Switch Problem...
« on: April 23, 2016, 10:15:57 PM »
I have spent half the day stuck and am very frustrated. I searched the forums and google extensively and thought some people had the same problem as me but none of them had the same problem/solution once I read their post...

I just downloaded and installed Mach3 for my CNC Router and it jogs fine and all the limit switches work. I am using the parallel port with a C-10 board and no plugins. For each axis I have limit switches wired on each extreme of the axis and wired in series as N.C. back to the controller board on a single input pin for each axis. When testing as limit switches they work fine for all axis stopping the system when I trigger them.

The problem is when doing a homing routine from the diagnostic screen (Ref X or Ref All). The limit switches are set up as homing swtiches as well as limit in the input pins config. But when running the homing routine the only axis that registers the switch is the Z-Axis. If I try to home the X-Axis the motor keeps going even if I keep pushing the limit/home switch to get it to stop but it just keeps going. If I do not hit the e-stop it would cause damage going beyond the limit of the switch. I acknowledge when clicking the switch that all three LED's for that axis are lighting on the diagnostic screen so I know the switch is registering and configured correctly.

I have attached my XML file. will someone please help?

Matt

Pages: 1