Hello Guest it is April 26, 2024, 09:08:00 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 - robertspark

431
General Mach Discussion / Re: Keyboard M-function?
« on: November 23, 2015, 08:04:31 PM »
Updated zip folder attached...

basically I've updated the screenset and I've added another macro (M1050) which will toggle output 5 on and off when you click the screenbutton or "G" key (note you can do this when the machine is running or not, as long as the eStop / Reset is cleared [probably something to watch]).  It does not have to be uppercase or lower case, just tap the "g" / "G" key, no Atl+code.... presume that is what you wanted (I could change this to ATL+G if you wanted a level of "safety" (multikey press) just let me know.

(all the other stuff is unchanged .... you won't need to update your images as they are the same, but included in the file to keep them as a pack).

So....
suggest you rename your current working "1024.set" .... to something like "1024-0ld2.set", that way you can go back to what you know works should I have messed up (think you have a previous working one from when we changed it last time).

Then copy the "1024.set" in the zipped folder into your Mach3 directory.

And add the" M1050.m1s" macro to your profile macros folder (same as you did with the M1000) and everything should work right.


If you're curious (or anyone else) I used the IsOutputActive to check the current state of output 5, and then if it was active used DeactivateSignal or if it was not ActivateSignal commands to toggle Output 5..... I could have just as well used DoOEMButton(236) to turn output 5 off and DoOEMButton(235) to turn output5 on having checked the state of output 5 using GetLED(78) with the same If statement.... same solution.

432
General Mach Discussion / Re: Keyboard M-function?
« on: November 23, 2015, 01:34:54 PM »
You can edit the screen using the screen editor I posted earlier.... But the background will need to be edited using a jpg (picture editing software...)

If you post what you want I'll see what I can do (screenshot / sketch ... Which output do you want to toggle, do you want a hotkey

433
General Mach Discussion / Re: VB Script
« on: November 18, 2015, 01:47:23 PM »
No problem, happy to help, and I'm by far still learning myself.


434
General Mach Discussion / Re: VB Script
« on: November 17, 2015, 11:44:09 PM »
... In hindsight....

You could adjust the code to read as G00 X200 Y200 (edit the 200 as you desire) and it would speed up the code, given the machine movement would be interpolated from the home position to the coordinated x and Y ref position if that is what you desired.

You could also add in the zz too ..... As long as there is no object in the way... To crash into

And you could add in an automated zeroing of the dros ... If that is what you desired....
Just add to the last line:
DoOemButton (1007)


If you go to operator>>>edit button script, and click on the flashing refall button, you can replace the script with that above and it would save you a screen edit.

435
General Mach Discussion / Re: VB Script
« on: November 17, 2015, 10:32:11 PM »
The mach3 VB Script Manuals are here:
http://www.machsupport.com/wp-content/uploads/2013/02/VBScript_Commands.pdf
http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf
https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCAQFjAAahUKEwiSwpLW_JjJAhWCXBQKHRmMBRI&url=https%3A%2F%2Fwww.machsupport.com%2Fforum%2Findex.php%3Faction%3Ddlattach%3Btopic%3D19482.0%3Battach%3D27839&usg=AFQjCNGJn1E7RpKyfyjY7STvwaxPFsA6ng&sig2=jRpIT8aMkgyYbOGQq5oDnw&bvm=bv.107763241,d.d24&cad=rja


I'd suggest setting up an M-code... say M1000 (anything greater than 1000 up to I think it's ~2400)

Then using a screen editor to add a button that will run the M-code and you can programme in a keyboard button press / hotkey that will run.
I use MachScreen: http://www.kd-dietz.com/klausphp/pages/eng/machscreen/description/ms_description.html


Something such as the following should work.... (just copy and paste it into the vb script editor and save it as M1000.m1s):
copied from here (sort of / updated): https://www.machsupport.com/forum/index.php?topic=19565.0

Code: [Select]
DoOEMButton(1024) ' Ref Z axis  (note presume that home is at the top away from the table!)
DoOEMButton(1022) ' Ref X axis
DoOEMButton(1023) ' Ref Y axis
' DoOEMButton(1025) ' Ref A axis (remove the first " ' " to uncomment out / use this axis ref command)
' DoOEMButton(1026) ' Ref B axis (remove the first " ' " to uncomment out / use this axis ref command)
' DoOEMButton(1027) ' Ref C axis (remove the first " ' " to uncomment out / use this axis ref command)

While IsMoving()
Wend

code("G00 X200")  'change the "200" to whatever number you desire
While IsMoving()
Wend

code("G00 Y200") 'change the "200" to whatever number you desire
While IsMoving()
Wend

code("G00 Z50") 'change the "50" to whatever number you desire
While IsMoving()
Wend

' uncomment out the first " ' " to activate the axis movement if you need them.

' code("G00 A200") 'change the "200" to whatever number you desire
' While IsMoving()
' Wend
' code("G00 B200") 'change the "200" to whatever number you desire
' While IsMoving()
' Wend
' code("G00 C200") 'change the "200" to whatever number you desire
' While IsMoving()
' Wend


'

436
General Mach Discussion / Re: Mapping the path for M11 / M10 commands
« on: November 17, 2015, 02:26:01 PM »
Yeah, I thought I responded to this one a while ago (yesterday?)

Rob

437
General Mach Discussion / Re: External RESET buton, HOME button
« on: November 17, 2015, 01:30:51 PM »
How are you controlling your milling machine?

Parrallel port or external motion controller?

Do you have any spare (2 number required) input pins that these switches / buttons could be wired to?

Alternatively... you could install a second printer port ..... or you could build / install a second keyboard (or a keyboard emulator) which you then would program (very easily) to emulate the keyboard hotkeys.

I need to understand your setup a little.

Rob U.E.  (sorry... sarcasm... unpaid engineer) ;)

seriously I can walk you through what you'll need to do an learn a little a long the way (you don't need screenbuilder [yet])


438
General Mach Discussion / Re: Mapping the path for M11 / M10 commands
« on: November 17, 2015, 01:22:55 PM »
With regards to the ESS, M11Px and M10Px .... the "x" part makes no difference....

they (the ESS) only has one output that is able to respond to M10 / M11 commands

And as Tweakie says... that is setup in the ESS Configuration Screen (about 1/2 way down the Right hand side).

You basically set the Output that you wish toggled when the M10 (off) and M11 (on) commands are seen in g-code.

So in your case ... on the ESS Congig Screen you would enter Output "3".

And every time an M11 / M10 code is seen it will instantly trigger / toggle output 3...

I use the command with torch height control and plasma cutting..... for me it is an easy way to toggle THC without hesitation via an M-code when I want to from within sheetcam.... for example when cutting curves of a certain radius of cutting circles etc.  Normally if I'm cutting straight lines and the torch height controller is providing a "THC OK" signal my motion controller (ESS) will move the torch up and down whenever a "THCUp" or "THCDn" command is received (as I'm using a motion controller).... bu feeding the "THCOK" feed through a relay before the input pin.... I can break the "THCOn" signal on demand when I'm cutting corners without the machine slowing down / hesitating to execute THC m-codes....

It is a hack... but it works well!

Rob

439
Sorry, I have an ESS unfortunately (for my sins), I looked at hicon (but it was a little out of my hobby range)... I am also more into x/Y tables than lathes.

Probably should have gone cismo at times... Just adding all the modules can be expensive (I'm a hobby tinkerer).

I'd suggest you get a login and have a look at the warp9 forum as the lathe threading thread is fairly high up on the list (1st or second page).

There is also kflop (just another site to check)

Not sure if pdmx can do what you want Steve is quite active on here.

Rob

440
The threading will probably solve any synchronisation issues....