Welcome, Guest. Please login or register.
Did you miss your activation email?
March 23, 2017, 01:17:11 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 118 119 120 121 122 »
71  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
72  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
73  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
74  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
75  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
76  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
77  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
78  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 14, 2015, 02:23:53 PM
Using the latest ESS plugin with 062 Mach version.

I don't have a problem with the Estop as it sends a command directly to the Serrvo emegency stop input. The servo then coasts to a stop. Like I said, I can send a signal over modbus to the servo emergency input on a Stop hit. Wonder if Mach allows to trigger a signal on a reset hit as well.

Dan
79  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 14, 2015, 09:09:39 AM
Jeff, it is the possibility of mechanical damage to the machine by hitting a wrong button in Mach which frightens me. I want my machine to be fool proof. Also, I still keep getting the "SmoothStepper ran out of data" message every now and then, and I am not sure about this, but I think it would also cause that sudden stop. Again, not sure about this one as I've just fitted the large chuck and with small one it really never made a difference how it stopped so don't recall.

Russ, it is a 2kW Delta servo. Don't have an external resistor. It has a 6:1 reduction transmission to the spindle, so the motor doesn't experience the full inertia of the load. Still easily tears an HTD-5M 15mm wide belt not even tripping an error.

Dan
80  Mach Discussion / General Mach Discussion / Re: AC Servo Spindle and ESS on: April 14, 2015, 05:53:13 AM
Thanks Hood.

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 118 119 120 121 122 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!