Welcome, Guest. Please login or register.
Did you miss your activation email?
February 06, 2016, 06:26:28 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 »
21  Mach Discussion / Mach4 General Discussion / Re: Mach4 Executing Gcode from LUA on: May 25, 2015, 08:06:36 AM
Is the bug report thread being monitored by Steve?

Dan
22  Mach Discussion / Mach4 General Discussion / Mach4 Executing Gcode from LUA on: May 25, 2015, 05:37:04 AM
Trying to execute Gcode from LUA. This script works fine:

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\n")


However, with the below function, the numbers in the DROs do not continuously update, but only when the final destination is reached.

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecuteWait(inst, "G0 X10 Y10\n")


When trying to execute two line of Gcode, like below, the DROs again don't update continously, but only when the final point is reached.

local inst = mc.mcGetInstance()
mc.mcCntlGcodeExecute(inst, "G0 X10 Y10\n")
mc.mcCntlGcodeExecute(inst, "G0 X5 Y5\n")


What is the correct way to programm in order for the DROs to continuously update?

Dan



23  Mach Discussion / Mach4 General Discussion / Re: Mach4 How to Change #Variable value from LUA on: May 25, 2015, 03:38:37 AM
OK, this worked:

local inst = mc.mcGetInstance()
local param = 1 -- variable #1
local val = 12
mc.mcCntlSetPoundVar(inst, param, val)
24  Mach Discussion / Mach4 General Discussion / Re: Mach4 How to Change #Variable value from LUA on: May 25, 2015, 03:08:59 AM
Scott, can you be more specific? Or is this documented anywhere?

Daniel, hardly understood a word of what you said.

Dan
25  Mach Discussion / Mach4 General Discussion / Mach4 How to Change #Variable value from LUA on: May 24, 2015, 02:00:24 PM
Trying to set a #Variable value by a script in a button. As per the Mach4 Scripting Manual, I have created this function in the ScreenLoad Script:

function WriteRegister(regname, regvalue)
  local inst = mc.mcGetInstance()
  local hreg = mc.mcRegGetHandle(inst, string.format("#Variables/%s", regname))
  mc.mcRegSetValueString(hreg, tostring(regvalue))
end

And in the buttin script I have this:

WriteRegister("#1", 15)

However, clicking the button doesn't change the value of #1 to 15. Following the example above, tried change iRegs0 and Sim0 register values and it worked fine, but not with #Variables. How should it be done?

Dan
26  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 22, 2015, 10:55:45 AM
Hi Steve,

How did you programm the drives to decelerate in case of a pulse train suddenly stopping? As I recall you were using Mitsubishi drives and as far as I know the Delta drives I am using are a Taiwanese copy of the Mitsubishi.

Editing the buttons is an option, but it's still done in software, while I would prefer doing this at the controller level or the drive itself. There still is the Reset button in Mach3 that would cause the same, and also if the ESS runs out of data (which happens to me every ones in a while), so this is something for the controller to take care of, that is if I want to make it as safe as possible.

Dan
27  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 15, 2015, 01:32:49 PM
With the USB SS, Greg somehow made it work properly. A custom screen is a possible workaround (pressing the reset button would still result in the same), but a fundamental solution would be solving it at the controller - at no occasion it should allow for a sudden stop of the pulse train stop to the spindle. Even when it recognizes a sharp interrupt in the pulse train, it should take over and safely decelerate, regardless of Mach3 state.

Dan
28  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 15, 2015, 08:44:23 AM
Yes, I am aware of this Hood. In the kind of work I do, I rarely reverse the spindle just like that. So usually there will be an M5. But it does happen seldom. It's a good idea to have a  macrto take care of this. Thanks.

Dan
29  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 15, 2015, 06:31:17 AM
Right Hood. And as Terry said hitting a stop on a machine should not harm it. There is a problem with the ESS and everything else are just workarounds.

Dan
30  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 15, 2015, 01:37:14 AM
Jeff, I neglected to mention that hitting the Estop also cuts power to all drives.

Dan
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!