Hello Guest it is April 25, 2024, 05:08:25 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.


Messages - riporeno

Pages: 1 2 3 4 5 »
1
VB and the development of wizards / Re: macro for homing
« on: March 03, 2015, 03:06:58 PM »
hi
I implemented the macro cycle reset.
It works very well.
I put a relay 'which disables the signal of the limits and diverts the signal on another input so that when you open the swith, the axis back and look for the zero index.
To avoid putting the relay could compile a command to disable the limits?
then I enable them to macro
in this way would avoid using an output.
thank you
regards

moreno

https://www.youtube.com/watch?v=J_UZcuZjX68

2
VB and the development of wizards / Re: macro for homing
« on: February 21, 2015, 01:57:27 PM »
hi Thomas
everything works perfectly.
I thank you very much for helping me.
congratulations, you are very smart.
Now I write all the code for the three axes.
regards
moreno

3
VB and the development of wizards / Re: macro for homing
« on: February 21, 2015, 02:19:58 AM »
h iTthomas
I tried to enter the values it says syntax error
you can give me an example how to insert the number? example 166 ...


Get/SetParam()

"VelocitiesX" = X MaxVel from motor tuning page


thanks regards

4
VB and the development of wizards / Re: macro for homing
« on: February 19, 2015, 04:33:36 PM »
hi thomas
perfect .. that's what I was looking for.
now I'm off to work.
Tomorrow when I try to write this code in the macro.
then I'll let you know if I can.
thanks again for the help.
regards

moreno

5
VB and the development of wizards / Re: macro for homing
« on: February 18, 2015, 03:12:47 PM »
hi Thomas ..
 ok I understand.
however, as I said above with home I can see the index of zero encoder.
Use a simple photocoupler.
The percentage of feed in the parameters is set 1%
my max speed is 5000 mm / m 'so it would be 50mm / m'.
I intend to bring the feed to 10000mm / m '.
in this case the feed would be 100mm / m 'then too high.
why was wondering if it was possible to set the speed with a macro.
If you say you have a Vb macro slow reading of the signal I'll try to find a hardware solution that manages the signal input ..in order to prolong the time of the signal.
thanks for your cooperation

6
VB and the development of wizards / Re: macro for homing
« on: February 17, 2015, 04:29:49 PM »
hi TPS
sorry but I do not understand what you mean
  I have two different input
before zeroing I enable a relay that signal out of limits.
arrival on the micro that indicates the first input.
I go back up to find zero index encoder. on the second input.
thank you
regads

7
VB and the development of wizards / Re: macro for homing
« on: February 16, 2015, 03:35:53 PM »
hi TPS
hello
the first fast movement is done in g code faster until the arrival on the micro
then executes the homing to minimum speed (1% of max speed) ..but is still too high.
as you say it would be good.
G1F move ... until it finds the second reference.
How do I say to stop the signal (Home) and then reset the axis and make green LED reset occurred?
All this without calling DoButton (23). 22 etc. etc.
sorry but I can not fill in the macro.
what I wrote is the set of some macro joined together.
would be great.
thank you
greetings

8
VB and the development of wizards / Re: macro for homing
« on: February 13, 2015, 08:23:15 AM »
thank you very much for your cooperation
I'm doing tests these days

how can I disable
the signal of the axis limits with the macro language.?

also you can change the feed value set maximum motor tuning in?
(with macro language)
thank you
regards

9
VB and the development of wizards / Re: macro for homing
« on: February 10, 2015, 02:47:23 PM »
hello
I solved this way.
the axis moves at high speed until you find the first signal of the limit switch
when found reverses slowing the feed
Now launch the home and tries zero encoder.
works fine.
pulse time 2 ms
mach sees it and I'm doing the tests using a simple interface card with parallel pc.


   
   Sub Main ()
   
'Dichiaro le variabili per i contatori dei cicli "For...Next"

   Dim z,y,x
   
'Dichiaro le due velocità di spostamento    
   
   FeedVeloce = 1000   'Speed approaching ... research first switch.
   FeedHoming = 20      'Search speed switches Home
   
'Imposed on the parameter of the speed of Homing for X, Y, Z
   
   SetParam ("ZRefPer", FeedHoming)
   SetParam ("YRefPer", FeedHoming)
   SetParam ("XRefPer", FeedHoming)

'Call the subprogram for the Home Z
   
   GoTo HomeZ

   HomeZ:

'Z I lift fast for a distance definitely superior to its stroke
   
      Code "G0 Z999999 F" & FeedVeloce
   

'Start of cycle for the search of the first switch
   
      For z = 1 To 600
      

'If the first switch is activated ...
      
      If IsActive(INPUT1) Then
      

'Without approaching fast, wait half a second and I start homing
      
      DoOEMButton(1003)
      Sleep 500
      DoButton(24)
      
'I look forward to concluding the homing of Z and call the subroutine for the homing of Y ...
      
      While IsMoving()                      
      Wend
      GoTo HomeY
      

'... Or, if the first switch is off, repeat the cycle "For ... Next"
      
      Else
      Sleep 100
      End If
      Next z

'ripeto per gli assi Y e X

      HomeY:

      Code "G0 Y-999999 F" & FeedVeloce
      For y = 1 To 600
      If IsActive(INPUT2) Then
      DoOEMButton(1003)
      Sleep 500
      DoButton(23)
      While IsMoving()                      
      Wend
      GoTo HomeX
      Else
      Sleep 500
      End If
      Next y


      HomeX:

      Code "G0 X-999999 F" & FeedVeloce
      For x = 1 To 600
      If IsActive(INPUT3) Then
      DoOEMButton(1003)
      Sleep 500
      DoButton(22)
      While IsMoving()                      
      Wend
      GoTo Fine
      Else
      Sleep 100
      End If
      Next x

      Fine:
      Code "(Homing eseguito)"
   
   
   End Sub

       

10
VB and the development of wizards / Re: macro for homing
« on: February 08, 2015, 01:28:20 PM »
Mach3 off limits if the zero is carried home
on the same input with the same signal
in my case I have to manage two signals because I have an encoder with zero mark that will give me the precision.
this procedure
  reach the first sign of the limit that will reverse the movement of the axis.
  until coming back will be released from this signal
2) at this point goes up when they hear the signal encoder.
If I used only the encoder signal would not have the reference limit (limit axis)
then the zero signal encoder would be made at the first turn of the screw at any point of the stroke.
I do not know if I explained.
hi

Pages: 1 2 3 4 5 »