Hello Guest it is April 29, 2024, 06:21:21 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 - Aeroshade

Pages: « 1 2 3 »
11
General Mach Discussion / Cutter Comp. isn't working
« on: August 04, 2011, 02:17:35 PM »
Hello all, I have read a TON of threads on this so please don't flame me to hard... I have read :P

OK this is what is happening, I have a .5 slot to cut using a .375 EM. I use BobCAM and I post it with cutter comp. with more then 1/2 the diam. lead in. Here is the program I'm running:

N03 G00 G40 G80 G90 G94
T06 M6
(3/8 END MILL)
M08
S3000 M03
G00 G54 X-.2 Y-4.0625
G43 H06 Z.1
G01 Z-.25 F50.
G41 D06 X0. F30.
X6.
G03 X6. Y-3.9375 I0. J.0625
G01 X0.
G40 X-.2
G00 Z6. M09
G53 X20 Y0
M30
%


I set my tool height and in Diameter I leave it at 0, since BobCAM programs center of tool. I make my cut and I need to make the slot a little bigger, so I go to tool offsets and put -.001 in Diam. wear. I run the program again but the cutter comp. doesn't take effect it just runs the same path again.


Any help would be great!!

Thanks,

Aero

12
General Mach Discussion / G00 not working right
« on: July 07, 2011, 03:41:29 PM »
Hello all, when I run a program and it comes to the first G00 it always runs it at the last feedrate instead of the rapid speed. Any idea why this would happen? I have searched around on the forums and didn't really find anything about it, and I didn't want to go thought 200 pages :P.


Any help would be great.

Thanks,

Aero

13
dspMC/IP Motion Controller / How to change the DRO for RPM?
« on: May 05, 2011, 05:37:23 PM »
I have a VFD with an encoder, and it has a 2 speed gear box (high/low). The problem I have is the RPM readout. I use a DSPMC from Vital Systems. In the plugin for the DSP it has a box for spindle encoder count. I have this set perfect for High gear, but when I switch to Low gear the count is off. It's only cosmetic, since the spindle spins at the speed it is commanded to, but is there a quick fix to fix this? Maybe with Brains?


Thanks,

Aero

14
Hello all. I wrote a Brain that when I press a button, real button not one on the screen, it triggers the tool unclamp OUTPUT and releases the tool from the spindle. It works good, but when I run my automatic tool changer with that Brain on, the M6 macro wont turn the OUTPUT on for the tool unclamp. When I have the Brain off it works fine.

Any suggestions?

Thanks,

Aero


15
VB and the development of wizards / Spindle speed
« on: April 19, 2011, 12:26:08 PM »
Hello all, I have this INFO in another post that is mixed with other questions, so I decided to start a fresh thread with just one question. I have set-up my M3 macro along with my SpindleSpeed macro to get my spindle and gear changer working. A little history, I have VFD and automatic gear changer for high gear and low gear that uses two OUTPUTS, I also have two INPUTS that come on when the gear is in high or low position. So this means I have two pulleys, pulley 1 = 0-900 RPM and pulley 2= 901-5000 RPM. I'm still trying to get the RPM tuned in, but that is something I'm sure I can get tuned. I had to put all my gear change code in the SpindleSpeed macro, along with changing the pulleys. I will post the two macros at the end of this post.

Everything is working great except one part. I MDI M03S100, the macros run and change to low gear, and spin the spindle to 100RPM. I then MDI M05 and the spindle stops. I then MDI M03S1000 and the macros run and change to high gear, and spin the spindle to 1000RPM. I MDI m05 and the spindle stops. Now comes the problem, I then MDI M03S100 again and the macros run, they change the gear to low, but instead of running the spindle at 100RPM it runs the spindle at full speed(10v). Since the macros set the pulley to #1 it runs the spindle at 900RPM instead of 100RPM. I then MDI M05 and the spindle stops. I then MDI M03S1000 and the spindle runs at full speed(10v), which in pulley #2 makes the spindle run at 5000RPM instead of 1000RPM. I can MDI M05 and the spindle turns off but, I have to shut Mach3 down and restart it to get it not to run at the max speed.

I'm think that some DRO isn't being updated. I added a DRO to my screen to monitor, OEMDRO#817, and when I run through the above sequence I can see that the spindle speed I set is being set in OEMDRO 817.

If anyone has any idea why this might be happening please let me know.

Thanks,

Aero



M3 Macro:

SpinS = GetRPM()

 If SpinS < 901 Then
   Call LowGearON
   End If

 If SpinS > 900 Then
   Call HighGearON
   End If


Sub LowGearON

   While IsActive(OEMTRIG2) = False
      Sleep(10)
   Wend
  
   If IsActive(OEMTRIG2) Then
   Sleep(5000)
   Message "Spindle On"
   DeActivateSignal(OUTPUT2)'Spin Reverse
   ActivateSignal(OUTPUT1)'Spin Forward
   DoSpinCW()
   End If

End Sub


Sub HighGearON

   While IsActive(OEMTRIG1) = False
      Sleep(10)
   Wend
    
   If IsActive(OEMTRIG1) Then
   Sleep(5000)
   Message "Spindle On"
   DeActivateSignal(OUTPUT2)'Spin Reverse
   ActivateSignal(OUTPUT1)'Spin Forward
   DoSpinCW()
   End If

End Sub  




SpindleSpeed Macro:

Spin = GetRPM()

 If Spin < 901 Then
   SetPulley(1)
   Call LowGear
   End If

 If Spin > 900 Then
   SetPulley(2)
   Call HighGear
   End If


Sub LowGear
 
   DeActivateSignal(OUTPUT7)'HG=7 LG=8

   ActivateSignal(OUTPUT8)'Low Gear

   While IsActive(OEMTRIG2) = False'HG=1 LG=2
      Sleep(10)
   Wend
  
   If IsActive(OEMTRIG2) Then
   Message "Low gear input is active"
   End If
  
   Call SpinON

End Sub
 

Sub HighGear
 
   DeActivateSignal(OUTPUT8)'HG=7 LG=8

   ActivateSignal(OUTPUT7)'Low Gear

   While IsActive(OEMTRIG1) = False'HG=1 LG=2
      Sleep(10)
   Wend
    
   If IsActive(OEMTRIG1) Then
   Message "High gear input is active"
   End If
  
   Call SpinON

End Sub

Sub SpinON

   Sleep(5000)
   rpm = GetRPM()
   SetSpinSpeed( rpm )
  
End Sub




M5 Macro:

DoSpinStop()
DeactivateSignal(OUTPUT7)'High Gear OUTPUT
DeactivateSignal(OUTPUT8)'Low Gear OUTPUT
DeactivateSignal(OUTPUT1)'Spin CW OUTPUT
DeactivateSignal(OUTPUT2)'Spin CCW OUTPUT



16
VB and the development of wizards / M03 macro and changing pulleys
« on: March 01, 2011, 12:30:46 PM »
I'm having a problem getting my M3 macro to change pulleys for me. My machine has a high gear and low gear that is changed by outputs.

I have tried the "SetOemDRO(56,1)" to change the pulley and "SetPulley(1)", neither seem to work. When I issue an M3 and I check the "Settings" tab and I see that "Spindle Pulley" does not change. I also get the error "Too Fast for Pulley..Using Max.".

I have my pulleys set up like this:

Pulley 1 = 0min. 910 max.
Pulley 2 = 911min. 5000max.


This is what I have, maybe someone can tell me where I'm going wrong.


Spin = GetRPM()

If Spin < 911 Then
   SetOemDRO(56,1)
   Call LowGear
   End If
   

If Spin > 910 Then
   SetOemDRO(56,2)
   Call HighGear
   End If
   

Sub LowGear
   ActivateSignal(OUTPUT8)'Low Gear (OUTPUT)
   Sleep (50)
   
   Do Until IsActive(OEMTRIG2)'Low Gear Switch (INPUT)
   Loop
   
   If IsActive(OEMTRIG2) Then
   Call SpinSpindle
   End If
End Sub

Sub HighGear
   ActivateSignal(OUTPUT7)'High Gear (OUTPUT)
   Sleep (50)
   
   Do Until IsActive(OEMTRIG1)'High Gear Switch (INPUT)
   Loop
   
   If IsActive(OEMTRIG1) Then
   Call SpinSpindle
   End If
End Sub


Sub SpinSpindle

   DoSpinCW()

End Sub

Exit Sub


Any help would be great


Thanks,

Aero

17
Brains Development / Need help with my BRAIN!!! :)
« on: February 28, 2011, 12:03:52 PM »
Hello all, I'm having a problem getting my brain to work, lol.

I have a Galil motion card with a daughter card for more I/O's. The way the Galil plugin for Mach3 works is that it maps the extra I/O's through USER LED's.

Below is the original post I posted in the Galil part of this forum.

I have wired the inputs for my axis select switch, on my handwheel, to my daughter card and mapped them through the Galil plugin to LED 1014,1015 and 1016. I go to the brain editor and add 1014, 1015 and 1016. I save the file and view it to make sure they are triggering, and they are. I then go back to the Brain editor and add a lube and "Compare Immediate" "Equal To 0" to all of the LED's. I then select all the lobes and add a "Multi Input Lobe" and select "AND". I then terminate the "And" with "ButtonPress" and select "259 - MPG1 X control". I save and then go to the Brain viewer and rotate the switch. I find that I can see the input changing states but the compare's do not change states. This causes the "AND" lobe not to fire the trigger. Is there something I'm missing?

I can take some SS of my Brain if anyone wants to see it.

Any help would be great!!!!

Thanks,

Aero

18
Galil / DMC-2162 with a daughter card for I/O's
« on: February 28, 2011, 10:56:05 AM »
Hello all, I'm having a problem getting brains to work. I have wired the inputs for my axis select switch, on my handwheel, to my daughter card and mapped them through the Galil plugin to LED 1014,1015 and 1016. I go to the brain editor and add 1014, 1015 and 1016. I save the file and view it to make sure they are triggering, and they are. I then go back to the Brain editor and add a lube and "Compare Immediate" "Equal To 0" to all of the LED's. I then select all the lobes and add a "Multi Input Lobe" and select "AND". I then terminate the "And" with "ButtonPress" and select "259 - MPG1 X control". I save and then go to the Brain viewer and rotate the switch. I find that I can see the input changing states but the compare's do not change states. This causes the "AND" lobe not to fire the trigger. Is there something I'm missing?

I can take some SS of my Brain if anyone wants to see it.

Thanks,

Aero

19
I'm writing my tool changer macro and I need a little help. I need to make my tool magazine move and stop when it triggers a position switch. This is what I have so far (Note this is to make the mag go CCW):


If IsActive(OUTPUT5) = True Then
    DeactivateSignal(OUTPUT5) 'Mag CW
End If
   
ActivateSignal(OUTPUT6) ' Mag CCW

While IsActive(OEMTRIG12) = False Then
    Sleep 10
Wend

DeactivateSignal(OUTPUT6)


Note:
OUTPUT5 = Mag CW
OUTPUT6 = Mag CCW
OEMTRIG12 = Pocket position switch

When I run this the mag just keeps spinning.

Any help would be great!!

Thanks,

Aero

20
VB and the development of wizards / Issue and EStop in a macro
« on: February 10, 2011, 12:52:22 PM »
How do I issue an estop in a macro? I'm working with my tool changer and I need to setup some safety lines of code.

I thought I could make a Brain that when I activate an unused output (output20) that it would trigger an estop. Then I put:

ActivateSignal(OUTPUT20)

in a test macro (M99.m1s). When I type M99 in MDI I get an error saying:

Return Called with no Sub in effect...looping

What does this mean? I looked at M5.m1s and all it has in it is:

DoSpinStop()

This macro seems to work, why wont mine?

Thanks,

Aero

Pages: « 1 2 3 »