Hello Guest it is April 24, 2024, 07:34:15 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 - tantan

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13
121
VB and the development of wizards / Re: code "G04 P2.0" problem
« on: April 25, 2008, 02:28:10 AM »
i am sorry but i do not understand fully what you mean with your latest reply (probably because i am dutch).

what i understand is that i should delete the While IsMoving() function. but can i use the G4 command to delay the activation or deactivation of outputs or is the G4 function not the right one to use for my case?

if i cannot use the G4 command to delay the activation or deactivation of output what function should i use. or do i have to solve this in by hardware?

thanks

antoine
the netherlands

122
VB and the development of wizards / Re: code "G04 P2.0" problem
« on: April 24, 2008, 02:36:31 PM »
thank you for your reply,

what i want with the "G4 p2.0" is that the output 5 stay high for 2 second and then it has to be deactivated. is that possible with the G4 code the way i used it in mach 3 (lathe)?


123
VB and the development of wizards / code "G04 P2.0" problem
« on: April 24, 2008, 12:36:25 PM »
hi again,

i have the next macro which runs perfect except for the [ code "G04 P2.0" ] part. i am sure the subroutine is executed but the output is not latched for 2 seconds. i hope someone can help me because it is an essential part of my machine. (i run mach3 2.63 version on windows xp).

'SetUserDRO(1200,GetSelectedTool())
'OldTool = GetOEMDRO (1200)
wantedtool = GetOEMDRO (1200) 'GetSelectedTool()
MaxToolNum = 8      'Max number of tools for the changer

If newtool = wantedtool Then
Message ("Selected Tool already loaded")
Exit Sub
End If

'While wantedtool > MaxToolNum
'Tool = Question ("Enter New Tool Number up to " & MaxToolNum)
'Wend

While wantedtool <> newtool

Call actualtool
Call rotateCW
     
Wend 

Call stop_and_lock_turret



'//// Subroutines /////////

Sub actualtool

   If isActive(Input1) And isactive(Input2) And isactive(Input3) And Not isactive(Input4) Then
      NewTool = 1
      End If
   If isActive(Input1) And isactive(Input2) And Not isactive(Input3) And Not isactive(Input4) Then
      NewTool = 2
      End If
   If isActive(Input1) And isactive(Input2) And Not isactive(Input3) And isactive(Input4) Then
      NewTool = 3
      End If
   If isActive(Input1) And Not isactive(Input2) And Not isactive(Input3) And isactive(Input4) Then
      NewTool = 4
      End If
   If isActive(Input1) And Not isactive(Input2) And isactive(Input3) And isactive(Input4) Then
      NewTool = 5
      End If
   If Not isActive(Input1) And Not isactive(Input2) And isactive(Input3) And isactive(Input4) Then
      NewTool = 6
      End If
   If Not isActive(Input1) And isactive(Input2) And isactive(Input3) And isactive(Input4) Then
      NewTool = 7
      End If
   If not isActive(Input1) And isactive(Input2) And isactive(Input3) And not isactive(Input4) Then
      NewTool = 8
      End If
     
      setcurrenttool(newtool)
     
End Sub


Sub rotateCW
   ActivateSignal(Output6)
      While IsMoving()
      Wend
     
End Sub

Sub stop_and_lock_turret

   DeActivateSignal(Output6)
      While IsMoving()
      Wend
   ActivateSignal(Output5) 
      Code "G4 P2"    'Wait for the tool to rotate onto ratchet stop
      While IsMoving()
      Wend
   DeActivateSignal(Output5)
      While IsMoving()
      Wend
     
End Sub   
   

thanks

antoine
the netherlands

124
VB and the development of wizards / Re: some VB questions
« on: April 20, 2008, 01:28:25 PM »
thank you,

just what i needed. i  :)

antoine

125
VB and the development of wizards / some VB questions
« on: April 20, 2008, 07:12:19 AM »
hi,

i just started with VB programming in Mach3 (version 2.63). in "general config" i switched "run marco pump" on.

but i have the following questions:

1. my macrocode runs but only if i start it manually. how can i let it run continuously when mach starts.
2. i want an extra button on a standard mach screen (lathe) to jump to my own developed screen. how can i edit de default mach screens.
3. i have a button and a button script on my own developed mach screen. but when i press the button (with my mouse) the VB buttonscript does not run?

thanks,

antoine
the netherlands

126
hi,

thanks for all these replies, they have been a great help to get started. but i have 3 questions about the VBcode:

1. how can i become the "GetOEMDRO (1200)". I cannot find this on my screens in MACH3 turning. is it possible to become this dro on a screen.
2. the Code "G4 P1.0" does not work at all. the line is executed but it does not delay? is it a configuration fault somewhere in mach?
2. my macro only runs if i start i manually, i thought it would run continuously.

thanks

antoine
the Netherlands

127
hi,

can anyone help me to become a postprocessor for alphacam (version 7) --> mach3 (turning).

thanks

antoine
the netherlands

128
hi,

can anyone help me to become an alphacam postprocessor for mach3 (turning)

thanks

antoine
the netherlands

129
LazyTurn / Re: LazyTurn
« on: March 02, 2008, 04:23:49 AM »
hi art,

thank you for your reply. i think i misunderstand the difference between toolpaths and profiles. what i mean (and that is what i really miss) is: importing a dxf file, generating toolpahts so that every time the chisel go's along the material 0.5 mm (for example) of material is taken away.

thanks

antoine
the netherlands

130
LazyTurn / Re: LazyTurn
« on: February 29, 2008, 06:59:26 AM »
:)

hi art,

thank you for working on lazyturn. i am a newbee with mach3 turn, and i was quite disappointed about lazycam for turning; actually i cannot use it for generating profiles (pro version).

am i right that if you implement "tools" i should be able to generate profiles?

thanks
tantan
the netherlands

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13