Hello Guest it is September 27, 2021, 08:39:49 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 - mike^3

Pages: « 1 2 3 »
11

Hello

I am trying to creat 8 buttons on my screen so that I can click on one and it will goto the commanded tool.

 I have this code that works great in m6 macro for my tool changer, yet when I copy and past (only the top one for tool 1) into the button script, it wont work, gives me errors. Any help? I just want button 1, to goto tool one and use the first if statement in it.

 If GetSelectedTool() = GetCurrentTool() Then
 End
 End If
 
 If GetSelectedTool = 1 Then
  Code "G53 G0 A0"
 Code "G53 G0 A-5"
 Code"G92 A0"   
 While IsMoving()
 Wend
 End If
 
 If GetSelectedTool = 2 Then
  Code "G53 G0 A45"
 Code "G53 G0 A40"
 Code"G92 A45"
 While IsMoving()
 Wend
 End If
 
 If GetSelectedTool = 3 Then
  Code "G53 G0 A90"
 Code "G53 G0 A85"
 Code"G92 A90"
 While IsMoving()
 Wend
  End If
 
 If GetSelectedTool = 4 Then
  Code "G53 G0 A135"
 Code "G53 G0 A130"
 Code"G92 A135"
 While IsMoving()
 Wend
  End If
 
 If GetSelectedTool = 5 Then
  Code "G53 G0 A180"
 Code "G53 G0 A175"
 Code"G92 A180"
 While IsMoving()
 Wend
  End If
 
 If GetSelectedTool = 6 Then
  Code "G53 G0 A225"
 Code "G53 G0 A220"
 Code"G92 A225"
 While IsMoving()
 Wend
  End If 
 
 If GetSelectedTool = 7 Then
  Code "G53 G0 A270"
 Code "G53 G0 A265"
 Code"G92 A270"
 While IsMoving()
 Wend
  End If
 
 If GetSelectedTool = 8 Then
  Code "G53 G0 A315"
 Code "G53 G0 A310"
 Code"G92 A315"
 While IsMoving()
 Wend
  End If   

END

12
General Mach Discussion / DRO Question! :D
« on: June 30, 2015, 08:52:08 PM »
Hi, If I am running a VB script to change tools, what do I put in to update the tool number dro to the selected tool?

I can get the tool changer to work but I put a DRO on the screen, OEM code 824, what code do I insert before the end to update the tool number?


 If GetSelectedTool() = GetCurrentTool() Then
End 
 End If     

 If GetSelectedTool = 1 Then 
 ActivateSignal(OutPut2) 
 Sleep 500   
 Code "G53 G0 A0" 
 Code "G53 G0 A-5"  W
 hile IsMoving() 
 Wend
 DeActivateSignal(OutPut2)
 End If 

THANK YOU!!!!!!

13
Mach Screens / Mach 3 lathe with tool changer, problem
« on: June 29, 2015, 01:56:15 PM »
hello everyone, I have Mach 3 lathe, and I am trying to run the tool changer as the A axis, yet I can't get it to work in mach 3 lathe, I can get it to work in mach 3 mill fine.

When I try to job the A axis in mach 3 lathe nothing happens, but if I try to job it kn mach 3 mI'll it's jobs fine.

Am I missing something?

I have the ports and pins the same, a axis is enabled it mach 3 lathe, I do not have a dro set up in the screen, or a tool change number set up yet but will work on that once it moves properly,

Any help would be appreciated!!

14
General Mach Discussion / CNC plasma setup help :)
« on: May 18, 2015, 02:59:27 PM »
 :D

Hello everyone! :)

I am having some issues setting up my cnc plasma cutter.

1) I use sheetcam and post process it with mach 3. The challenge is how do I set up the auto tool touch off for each pierce and start? For example start program, goto where z- to start cut would be, go down z- till input 1 is closed (or receives 5v, its a limit switch). then lift off plate when input 1 is open (no longer triggered) reset DRO z to 0, and then continue with the gcode (i am assuming the piercing hieght will be used from the gcode that i set within sheetcam).

2) I have a proma thc coming in soon. how do I set the parameters in mach3 to use this effectively?

Thank you so much everyone!

15
Hello everyone! ??? ??? ???

I just picked up a cnc plasma cutter that needs a new control, but I have one question about the THC. I am very familiar with wiring and can easily wire the rest of the machine.

The Torch Height Contol has a 24vdc motor for moving the z axis up and down, it is not a stepper motor. Can I use this with mach 3 for the THC? I am not sure how to set up the configurations either.

Any help would be greatly appreciated!

16
VB and the development of wizards / CNC KNEE MILL ATC HELP!
« on: February 07, 2015, 08:21:52 AM »
  ;D

Hello, I am retrofitting a cnc knee mill with a tool changer that has some kind of switched logic, can anyone help me figure it out?

It is basically like a rotary encoder with logic from the switched that indicate tool position, there are 24 tools...

here is a small video I made https://www.youtube.com/watch?v=OsBAYHpI6es

thanks for any help!

17
Mach Screens / How to make a popup when a button is selected?
« on: March 22, 2014, 04:41:08 PM »
Hello,

Can anyone help me make an onscreen button pop up a message? Once you hit OK then the box will disappear?

I just need the VB script to say "Make sure Turret UP button is pressed before homing turret!"

Thank you!

Mike

18
 Huh

Hello Everyone!

I am an need of a button to home my tool changer to a limit switch.

The steps are as follows:

1. Activate output 1 (lift turret)
2. Run A axis until it sees the home switch,
3. Do the double touch off for setting home.
4. Change the A position DRO to 0
5. Change the current tool DRO to tool 1 or "1"
6. Deactivate output 1 (drop turret)

This is a custom home macro for when and if the tool turret ever misses steps, or misaligns...Having this will allow the operator to easily reset the turret to tool one incase a crash during tool change, or a mechanical hiccup.

I REALLY APPRECIATE ANY HELP! I will be posting the completed screen sets to the forum.

P.S. this is for an 8 position servo/stepper driven cnc lathe with an air valve that lifts, and servo/stepper that indexes to a degree (tool position) then locks and continues the program...

Thanks

Mike Wink

19
Mach Screens / Help with custom home button macro! :)
« on: March 22, 2014, 03:33:07 PM »
 ???

Hello Everyone!

I am an need of a button to home my tool changer to a limit switch.

The steps are as follows:

1. Activate output 1 (lift turret)
2. Run A axis until it sees the home switch,
3. Do the double touch off for setting home.
4. Change the A position DRO to 0
5. Change the current tool DRO to tool 1 or "1"
6. Deactivate output 1 (drop turret)

This is a custom home macro for when and if the tool turret ever misses steps, or misaligns...Having this will allow the operator to easily reset the turret to tool one incase a crash during tool change, or a mechanical hiccup.

I REALLY APPRECIATE ANY HELP! I will be posting the completed screen sets to the forum.

P.S. this is for an 8 position servo/stepper driven cnc lathe with an air valve that lifts, and servo/stepper that indexes to a degree (tool position) then locks and continues the program...

Thanks

Mike ;)

20
Mach Screens / G-Code tool change buttons?
« on: March 22, 2014, 12:00:19 PM »
 ???

Hello everyone, can anyone provide me an example of how I can set up buttons on one of my screens that will execute the tool change commands t0101, t0202, t0303, etc etc. for a lathe?

I have the buttons on the screen but don't know how to link them to the mdi line for gcode commands.

I would like to click TOOL 1 button on the screen, and it would execute the gcode/mdi command t0101

TOOL 2 button = t0202 command etc

Any Help?

I really appreciate it ;)

Thank you,

Mike

Pages: « 1 2 3 »