Hello Guest it is April 18, 2024, 07:04:22 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 - Cbyrdtopper

801
Mach4 General Discussion / MDI Problems
« on: February 14, 2017, 04:35:01 PM »
I'm not sure what I've done.  My MDI boxes won't work properly.  I put code into them and it puts Mach in a RUN MDI State forever.  It doesn't do any of the code, it just acts like its doing something and won't stop.  Running G Code works fine, just nothing in the MDI.  Any Ideas?  I don't remember what to attach for the profile.  Can someone let me know.

802
Mach4 General Discussion / Re: Backing up a Screen Set
« on: February 13, 2017, 05:30:17 PM »
DTG,
I asked my Dad what you meant by it.  Command Prompt.  He got it open no problem.

803
Mach4 General Discussion / Re: Backing up a Screen Set
« on: February 13, 2017, 05:19:42 PM »
DTG,
what do you mean run from the command line? 
I can't open my profile now because I put something in my PLC Script that is not allowing the gui to load.

804
Mach4 General Discussion / Re: Send Email
« on: January 24, 2017, 12:00:26 PM »
I gave my smtp.send {  a port of '465' and instead of getting a message box saying "authentication not supported" it thinks for about 5 seconds and then gives me a message box that said "closed".  Any ideas why that would have changed?

805
Mach4 General Discussion / Re: Send Email
« on: January 24, 2017, 10:47:18 AM »
I was running Steve's example in the editor this morning, I modified this line **"local smtp = require('/socket.smtp')"** to this **local smtp = require(cpath .. "/Modules/socket/smpt.lua")**  and it didn't keep asking me for the SMPT file.  It gave me an error, but the error was this: 

Got a socket error trying to read. Address '10.1.10.31'. Port 60769.
Got a socket error trying to read. Address '10.1.10.31'. Port 60769.

That address (10.1.10.31.) is my computer's address, it is what we have set at our shop so we can have a network for specialized programs across our admin computers in the shop.  I realize it is more network related than Mach, but could this be a potential problem that is carrying over to your example, Chaoticone?

806
Mach4 General Discussion / Re: Send Email
« on: January 24, 2017, 08:48:26 AM »
When I run the debugger and step through the macro, it continually asks me to select the smpt.lua file.  I guess this means I can't step through the macro. 

I decided to just run the macro instead, this seems to do better, it runs through and doesn't give me any erros on Steve's example, but it didn't send an email.   

When I run Chaoticone's example, I get a message box that says "authentication not supported."

807
Mach4 General Discussion / Send Email
« on: January 23, 2017, 11:29:43 PM »
I'm wanting to send an email once my machine is finished running.  I'm referencing this thread where Steve posted an example.

http://www.machsupport.com/forum/index.php/topic,32001.msg222766.html#msg222766

I get to this line "local smtp = require("/socket.smtp")" and it pops up a window to open up another file.  

Also, anyone know the gmail server I need to use.  Where I've read online, Gmail doesn't use port 25.

The following link says the port needs to be 587 for ssl
https://www.lifewire.com/what-are-the-gmail-smtp-settings-1170854


Any ideas on how to get this to work?

808
Mach4 General Discussion / Re: 24 Position Side Mount Tool Change Macro
« on: January 23, 2017, 03:44:50 PM »
Thanks Steve! I had no idea that was even an option in the Tool Table. 
I know this is probably bad programming, but I don't use the "rc" on anything.  Can you tell me what it is and what it is used for?  Or point me to a forum that talks about it?

This will make it much easier to code!! Thanks!

809
Mach4 General Discussion / 24 Position Side Mount Tool Change Macro
« on: January 23, 2017, 12:02:11 PM »
We've got a Hurco with an arm tool changer.  I want to change the tool and put up the current tool in one operation, to do this we need to keep track of each tool's "carousel position"  

We're doing this on an Johnford VMC using Mach3, that M6 macro is very long and is running multiple tests; it has to go through each tool with an "if" statement to figure out which tool is requested so it will move to the correct carousel position; and then again to change the previous tool's carousel position to the current carousel position.  

I was curious to know if there was a way to shorten up this macro.  Attached is a crude version of my Mach4 Macro.  I'm going to attempt to use a PLC to run the tool change so it will send and receive registers via modbus to know which position to go to and, when finished, which position it is at to change the current tool's carousel position.  I'm using registers  to keep track of the Tool's Carousel Positions and the Current Carousel position.  

Any insight would be greatly appreciated!

810
HiCON Motion Controller / Re: Charge pump
« on: January 16, 2017, 10:53:48 PM »
I am about to use my first Hicon Controller.  I have always used the Ethernet Smooth Stepper.  I've only used the Charge Pump 1 time on a machine and it worked very well.  On this new VMC we are retrofitting, I would like to have a charge pump for my relay outputs. 
Here is why.... We use a Physical Maintained switch to cut the common power to the relays, when Mach gets closed for any reason, it turns all of the outputs on. 
If I shut down Mach with the HiCON, will all of the outputs turn on?