Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 04:18:35 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Emco tool changer macro
Pages: 1   Go Down
Print
Author Topic: Emco tool changer macro  (Read 1067 times)
0 Members and 1 Guest are viewing this topic.
coopengco
Regular Member

Offline Offline

Posts: 1


View Profile
« on: March 27, 2008, 05:22:32 PM »

Does anyone know the location of a macro to control the emco turret simply through a relay. ie relay energised one way for set number of seconds then de-energised for set number of seconds then continue to machine.
Logged
Bengt
Active Member

Offline Offline

Posts: 16



View Profile WWW
« Reply #1 on: May 19, 2008, 09:36:56 AM »

I have also a request for a macro for the Emco Toolchanger.

This is what I have, 1(one) output and 1 (one) input free for this purpose (only one printerport possible in the box)

My code so far M6start.m1s
'ToolChange Macro For Emco PC Tun 50 tool changer 2008-05-19 Bengt
Sub Main()
OldTool = GetOEMDRO (1200) '?Tool #1 as turret is always left in this position ( T0101 as a last line in any program )??
tool = GetSelectedTool()
NewTool = tool
MaxToolNum = 6      'Max number off tools for the changer
If NewTool = OldTool Then
Exit Sub
End If
While NewTool > MaxToolNum
NewTool = Question ("Enter New Tool Number up to " & MaxToolNum)
Wend
Call SetUserDRO (1200,NewTool)
SetCurrentTool( NewTool )
Code "G28"
ActivateSignal(Output2) 'Turn On Turret motor
SystemWaitFor (OEMtrig7) 'Wait for signal

HOW is counting done?, I have one pulse for each tool

Call CheckTool

HOW is the new requested tool set?


While IsMoving()
Wend
 

DeActivateSignal(Output2) 'Turn Off tool turret
While IsMoving()
Wend
End Sub

Main     

Sub CheckTool
   count=(NewTool)
   If IsActive(OEMtrig7)  Then

?>>>> Fill in the blanks  Wink

        End If
End Sub
Logged

Cheers
Bengt
Bengt
Active Member

Offline Offline

Posts: 16



View Profile WWW
« Reply #2 on: May 22, 2008, 07:47:41 AM »

Now there is a solution to this 'problem'

http://www.machsupport.com/forum/index.php?topic=970.new

Please leave your comments as how this works for you

/edit
new download is available with a complete M6Start macro
« Last Edit: May 23, 2008, 12:24:58 PM by Bengt » Logged

Cheers
Bengt
Bengt
Active Member

Offline Offline

Posts: 16



View Profile WWW
« Reply #3 on: July 19, 2008, 01:53:03 PM »

 New file for the macro, some details added. Use link in above message....
Logged

Cheers
Bengt
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!