Hello Guest it is April 30, 2024, 01:11:28 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 - Bill_O

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
41
Mach4 General Discussion / Thanks
« on: March 14, 2019, 09:49:48 AM »
Just wanted to put a general thank you to everyone who has helped me recently.
I know I missed some specific thanks.
I am also sure I will be posting more questions in the near future while I try to get my head wrapped around the Lua.

Thanks again,
Bill

42
Mach4 General Discussion / protected dro's
« on: March 13, 2019, 03:46:55 PM »
How can I change the properties of the following dro's so I can write to them from a macro?
X Machine Position
X Fixture Offset
X Offset

Thanks,

Bill

43
Mach4 General Discussion / DRO Properties
« on: March 13, 2019, 11:22:51 AM »
Under DRO Properties and Editor there are 4 choices;
In Place
Keypad
Keypad Extended
Read Only

What exactly do each of those do?

44
Mach4 General Discussion / 2 simple lines
« on: March 11, 2019, 02:24:02 PM »
Why will the attached work as a button but not as a mcode?

45
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

46
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

47
Mach4 General Discussion / last line not executing
« on: February 28, 2019, 05:46:03 PM »
The last line of the attached mcs file is not happening.
I am sure it is a syntax error but I can not see it.

48
Mach4 General Discussion / changing value in CurrentX dro
« on: February 28, 2019, 12:13:30 PM »
I have tried several things to get a specific number in the CurrentX dro.
G92 works but it also is an offset which messes up some other things.

49
Mach4 General Discussion / write to a register
« on: February 27, 2019, 10:08:07 AM »
Ok.
Yesterday I had a script that would read a register then set another register.
I realized that is not what I needed and deleted it.
Now I need to read a dro then write the value to a register.
Of course it is not working so I am once again asking for help.
The script editor is telling me the problem is the last line.
Here is the code:

--read value from dro
local EncScale = scr.GetProperty('droEncScale', 'Value')
--set register handle
local hreg = mc.mcRegGetHandle(inst, 'iRegs0/EncScale')
--set register
local mc.mcRegSetValue(hreg,'EncScale')


BTW how to do this will be written down this time.

Thanks,
Bill

50
Mach4 General Discussion / code problem
« on: February 26, 2019, 10:32:45 AM »
The attached code is giving me a nil value on the first line.
What do I have wrong.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 »