Hello Guest it is April 27, 2024, 12:56:56 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 - Bill_O

71
Mach4 General Discussion / Re: Run From Here
« on: November 14, 2022, 08:20:22 AM »
Joe,

I know about the button.
It is a pain if you don't do it correct.
That is what I would like to work on.
I have no problem writing the rest of the LUA I just need to know how to do the "Run From Here" in code.

72
Mach4 General Discussion / Run From Here
« on: November 11, 2022, 01:39:55 PM »
I am wanting to make this a little easier for my customers.
The old M3 was a little easier and i want to make this even easier than that, only 1 click of the mouse.
Is there any way to do "Run From Here" in a script?
Is it mc.mcRunFromHere(inst)?
or RunFromHere()?
or?

Thanks,
Bill

73
Mach4 General Discussion / Re: Lua script: Pause for operator to jog?
« on: November 11, 2022, 01:13:51 PM »
Here is how I would do it.

Check to see if the table or tool setter has been done.
Push a button to do the table.
Set a register for the value from machine home.
Set a register that that operation has been done.
Pop up message window telling them to do the other operation.
When they click OK it exits the macro.
Jog to the position you need and push a different button to do tool set operation.
Check if the table has been done.
If not pop up message window telling them to do it first and exit the macro.
Set a register for the value from machine home.
Set the done register for the table back to not done.
Do your math and tool offset for the tool number.



74
Mach4 General Discussion / Re: Lua script: Pause for operator to jog?
« on: November 09, 2022, 04:29:01 PM »
No answer from me but I would like to know how to do this also.

75
Mach4 General Discussion / Re: delay and timer in signal script #mach 4
« on: November 03, 2022, 05:29:27 PM »
Should have read that a little better.

if (ISigFDBK == 0)then
   mc.mcSignalSetState(hsignal,1)
   wx.wxMilliSleep(5000)
   mc.mcSignalSetState(hsignal,0)
end

76
Mach4 General Discussion / Re: delay and timer in signal script #mach 4
« on: November 03, 2022, 01:08:11 PM »
wx.wxMilliSleep(3000)
That is a 3 second delay

77
Mach4 General Discussion / Re: Mach4 scaling using M51
« on: November 01, 2022, 09:32:52 AM »
Here is the code.
I use a lot over variables and some registers but you might be able to follow it.

78
Mach4 General Discussion / Re: Mach4 scaling using M51
« on: November 01, 2022, 07:52:40 AM »
It finds some dots printed on material and adjusts the scaling for x and y and compensates for rotation.
Lot of math.

79
Mach4 General Discussion / Re: Mach4 scaling using M51
« on: October 26, 2022, 10:18:30 AM »
You will have to do some coding.
It does appear much harder than it is once you have started.
Here is a link for a document I made as I was learning how to do it.
It should help you.
https://www.machsupport.com/forum/index.php?action=dlattach;topic=43260.0;attach=54239

80
Mach4 General Discussion / Re: Mach4 scaling using M51
« on: October 26, 2022, 09:52:28 AM »
Like in my code i showed you i  set a variable and then set the scaling to that variable.
A value of 1 is 100%