Hello Guest it is April 26, 2024, 05:01:06 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

771
Mach4 General Discussion / Re: wxLua functions
« on: April 01, 2017, 05:12:11 PM »
Okay,
Simple enough.  Since I've never done this, I'm assuming that, for example a button, the code under MyButton1 (or whatever) is where I would add the functionality for that button?

772
Mach4 General Discussion / Re: wxLua functions
« on: April 01, 2017, 04:53:53 PM »
DTG,
Thanks!  That allowed me to open it in the wizards. 
If you don't mind, can you tell me how, or point me in the right direction, to editing the wxFormBuilder functions, My Dad has always used BorlandC++ to make programs, we can edit the background code right from Borland and then open the project from there.  This wxFormBuilder won't let me edit the Lua Code from the Lua Tab.  How do I edit the code to utilize the buttons and text boxes etc...?
-Chad

773
Mach4 General Discussion / Re: wxLua functions
« on: April 01, 2017, 04:28:08 PM »
I'm trying to build a simple button to generate some gcode from wxFormBuilder so I can make a turning wizard.  I can't seem to figure this out.  I have figured out how to use wxFormBuilder to add buttons.  Making a frame, a box sizer, and adding a button.  I generate the lua code but then I don't know how to open this form.  Can anyone help?

774
Mach4 General Discussion / Re: User defined DROs in MACH4
« on: March 31, 2017, 10:57:08 AM »
Hey Hyojung,
To setup LEDs and DROs you will use the Screen Editor and add whatever you like to your screen.  The attached picture will show how to Get and Set a screen DRO.  The lua script uses the "Name" field to find the screen property.  In the example picture, I have a button that will increment the Plung Feedrate DRO by 1.  So it gets the current value and adds one to it and then updates the DRO. 
I Have a macro that uses the LEDs, but I will have to find it.  From what I remember, you use the same "Get" and "Set" command, only it will be looking for a 1 or 0. 
Hope this helps.

775
Mach4 General Discussion / Re: How does G31 Behave?
« on: March 23, 2017, 08:56:56 AM »
I should have posted on here sooner.  I found my problem.
I'm using the Hicon Integra motion controller.  I was running my Probe input through the Click PLC I'm using for I/O.  I switched it over to a Hicon input and now it works wonderfully.

776
Mach4 General Discussion / Re: Optional Stop Output
« on: March 08, 2017, 12:05:29 PM »
Steve, thanks for that explanation.  Really insightful.  I do love Mach 4, and I'm excited to see what people can do with it in the future.  In my experience, there is a lot more setting up on Mach 4 than Mach 3 but the end result is sooo much better.  Thanks for all the work you guys do!!

777
Mach4 General Discussion / Re: Optional Stop Output
« on: March 07, 2017, 11:42:11 PM »
Steve, that's getting pretty deep.  I love the flexibility of Mach4.  I like what you have suggested, it will keep me from having to put a custom macro in.  Luckily, I've already making use of the GcodeRunning state and modifying the cycle start code as well, so I've got a good place to put this code already. 
I did still put this in the feature request, I think the versatility of this type of output would be great to have to make use of.
Thanks again for the Input Steve, you've got some great ideas!!

778
Mach4 General Discussion / Re: Mach 4 Feature Request
« on: March 07, 2017, 04:58:27 PM »
I started a thread about this, I think it would be a useful feature.  The Optional Stop Output in the Config.  This output gets the handle of the M01 State, whether it is enabled or disabled, it is not an output while the Pause is in affect like I thought it would be.  If there was another output that came on during a Pause due to the M0 or M01 that we could use to turn on indicators, that would be handy.

779
Mach4 General Discussion / Re: Optional Stop Output
« on: March 07, 2017, 01:09:49 PM »
Rhtuttle,
I didn't k ow there was waitOnCycleStart.   I had thought about making a macro.  No real valid reason, it would just really be handy if there was a pause in affect output.  I think I'm going to out it on the feature request.   
Thanks for all the input and suggestions!

780
Mach4 General Discussion / Re: Optional Stop Output
« on: March 07, 2017, 12:22:40 PM »
Daz,  the M1 works just fine, I'm trying to get an output to turn on our light/buzzer during the M1 pause to let the operator know it's paused so they can go check the past and hit cycle start to finish the program.  The optional stop output in Mach config only gets the handle on M1 being enabled or not.
I'm wanting a signal saying that it is in a paused state due to M1 or M0.  Is this possible or should it be a feature request?