Hello Guest it is April 27, 2024, 11:41:22 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.


Messages - Bill_O

401
Mach4 General Discussion / Re: last line not executing
« on: March 06, 2019, 12:17:31 PM »
Craig,

I had no idea that the code was often different between a button and a macro.
I was so used to Mach3 being the same it never even crossed my mind.
Almost everything I will need to be doing at this time will be macros (M Code) so that is where I will need to focus.
I will look over your earlier information again and look at the videos.
Thanks again,
Bill

402
Mach4 General Discussion / Re: macro problem
« on: March 06, 2019, 09:50:30 AM »
still not functioning either when i push the button or type m22 in the mdi
i have attached them again.
once again i know i am missing something simple
i saved the m22 in the profiles macro folder as m22.mcs
do i need to do anything else?

403
Mach4 General Discussion / Re: last line not executing
« on: March 06, 2019, 09:35:39 AM »
I was looking at mc.AxisIsHoming
This appears to me this might be the best one to try using.
I just need a little help on the code.
Looking at the Mach4 Core API reference this is what i see.
int mInst = 0
BOOL homing = true
mc.mcAxisIsHoming(mInst, X_Axis, homing)
I think this is how it all needs to be but a few questions.
What is the "int" and why is it needed?
Why does the variable "mInst" need to be set to "0"?
What is the "BOOL" and why is it needed?
And the last and biggest how do I put this in a loop to keep looking until it is false.
I tried but I keep getting errors.

Bill

404
Mach4 General Discussion / pay for help
« on: March 06, 2019, 08:09:06 AM »
We make some machines that we need to change to using Mach4 running in the background from a program made using Visual Studio.
Currently we use a high end controller board with a custom program.
The manufacturer of the board on very little notice has informed us they will stop making the board on April 1st.
We are looking for anyone that knows Lua programing in Mach4 very well.
A knowledge of how Mach4 can be made to run in the background of another program is a huge plus.
This would need to be done at our facility in Plano, Texas.
We will pay for your time and travel expenses.
This is a time crunch for us so if at all possible we would like to get the help by the end of next week.
Please contact Bill at 1-800-310-2887

405
Mach4 General Discussion / Re: macro problem
« on: March 06, 2019, 07:52:59 AM »
jbuehn,
i did not put the cntl in it but i did find out how to make it not do the one i do not want.
if i type "mc.mcGetInstance" it only shows me the one with cntl and handle
if i type "mc.mcgetinstance" it brings up the one i want.
strange
bill

406
Mach4 General Discussion / Re: last line not executing
« on: March 06, 2019, 07:50:42 AM »
Craig,
right now it is in a button but it will need to be in a macro
Bill

407
Mach4 General Discussion / Re: last line not executing
« on: March 05, 2019, 04:08:01 PM »
smuprh and Craig,

thanks for the information and input.
the application that i am going to be using the software for is not a cnc machine like a mill or router
i will be needing to home the machine multiple times while in operation
i will start working on the things you have both suggested

thanks again,
bill

408
Mach4 General Discussion / Re: macro problem
« on: March 05, 2019, 04:03:51 PM »
when i try putting local inst = mc.mcGetInstance() the editor changes it to mc.mcCntlGetIntstanceHandle()

409
Mach4 General Discussion / Re: macro problem
« on: March 05, 2019, 01:43:13 PM »
jbuehn,

thanks

bill

410
Mach4 General Discussion / macro problem
« on: March 04, 2019, 04:57:44 PM »
I made a macro and saved it in the profile macros folder.
For some reason it is not working.
I also made a button that runs that m code.
It is not working either.
I actually think the problem is the macro because it will not run if i type m22 in the mdi either.
both are attached