Hello Guest it is April 26, 2024, 11:37:44 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 - ZASto

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 »
151
General Mach Discussion / Re: Totally Lost with Offsets.
« on: July 11, 2020, 04:57:23 PM »
Instead crosshairs, you can use small vias for your board extremes in Y direction, find the screenset that has "laser zero" functionality, use some Tweakie's code for Local System Rotate (so you can fix your PCB in almost any rotated position), and a small endoscope camera like this one: https://www.aliexpress.com/item/32255881055.html?spm=a2g0o.productlist.0.0.355e6e5eOM1Cfb&algo_pvid=39d12563-0f6f-413f-8833-c5ebe7c18563&algo_expid=39d12563-0f6f-413f-8833-c5ebe7c18563-0&btsid=0ab6f83915945003200298906e170d&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

Code for Local System rotate according to buttona A, B and C (on another computer I made it a single button):
Code: [Select]
'Button A script;

Zmove = GetOEMDRO(1202)
Code "G0 G53 Z" &Zmove
While IsMoving()
Wend
Call SetOEMDRO(118,0) 'reset system rotate DRO
Code "(Locate Datum then click Button B)" 'message for status bar
Call SetOEMDRO(3,1) 'set slow jog rate to 1%
Call SetUserLed(1102,1) 'open Klaus's video window


'Button B script;
 
DoOEMButton (1008) 'zero X axis DRO
DoOEMButton (1009) 'zero Y axis DRO
Code "(Locate Reference then click Button C)" 'message for status bar


' Button C script
 
Sub Main()
  X1pos = GetOemDRO(800) 'read x axis DRO
  Y1pos = GetOemDRO(801) 'read y axis DRO
  If (Y1pos=0) Then GoTo Label1 'avoid divide by zero error
  b = Atn(X1pos/Y1pos)*(180/(4*Atn(1))) 'calculate angle
  b = b - (b*2) 'change sign (+/-)
  Code "G0 X0 Y0" 'move to datum
  While IsMoving () 'wait for task to be completed
  Wend
 ' Xmove = 70.850 'enter your camera offset here
  Xmove = GetOemDRO(1103)
'  Ymove = 1.070 'enter your camera offset here
Ymove = GetOemDRO(1104)
  Code "G91 G0 X" &Xmove & "Y" &Ymove 'make incremental move
  While IsMoving () 'wait while that happens
  Wend
  Code "G90" 'go back to absolute moves
  Call SetOemDRO(118,b) 'set system rotate DRO
Label1:
  DoOEMButton (1008) 'zero X axis DRO
  DoOEMButton (1009) 'zero Y axis DRO
  Call SetOemDRO(3,80) 'reset jog rate to 80%
  Code "(Process complete)" 'message for status bar
  Call SetUserLed(1103,1) 'close Klaus's video window
End Sub

Of course this assumes that you use KD's camera plugin

Camera ON script, and Camera Zero script according to second image:
Code: [Select]
'Camera button script;

Zmove = GetOEMDRO(1202) 'get Z tool change location (machine coordinates)
Call SetUserlED(1104,1) 'light up LED near camera button
Call SetOemDRO(118,0) ' reset system rotate DRO
Call SetOEMDRO(3,5) 'set slow jog rate to 5%
Call SetUserLed(1102,1) 'open Klaus's video window
Code "G0 G53 Z" &Zmove 'goto Z tool change height
While IsMoving()
Wend
Code "(Locate Datum then click CAMERA ZERO)" 'message for status bar

'Home button script;
 
Call SetOemDRO(3,80) 'reset jog rate to 80%
Xs=GetOemDRO(59) 'read Xscale DRO
Ys=GetOemDRO(60) 'read Yscale DRO
Xmove =GetUserDRO(1103) * 1/Xs 'enter your camera offset here
Ymove = GetUserDRO(1104) * 1/Ys 'enter your camera offset here
Code "G91 G0 X" &Xmove & "Y" &Ymove 'make incremental move
While IsMoving () 'wait while that happens
Wend
Code "G90" 'go back to absolute moves
DoOEMButton (1008) 'zero X axis DRO
DoOEMButton (1009) 'zero Y axis DRO
SetUserLED(1103,1) 'close Klause’s video window
SetUserLED(1104,0) 'Switch off LED near camera button
Code "(Homing to Datum Complete)" 'message for status bar

Hope this will help you

If needed, I can attach you screenshots of board made in KiCAD with vias and where I place auxiliary origin.

152
Ahmmm...
You already have optocouplers on the inputs of your BOB. Why would you put another ones?
Figure out the series resistor on the BOB and, if needed, adjust their values to your needs.
It's easy to calculate suitable resistor if you assume that the current through IR diode in optocoupler should be, nominally, 5mA.
Second, check thoroughly your wiring and connections to find "unknown origins" of excessive voltages. OR, place 4-pin DIP sockets on your BOB for optocouplers, for easy replacement when they fail.

153
General Mach Discussion / Re: default profile when opening Mach3
« on: July 08, 2020, 03:47:30 AM »
Check your Mach3 folder for "YourProfile.xml" file.
Try MachLoader, if your created profile is present, it should be visible in list of profiles.

154
Feature Requests / Re: steps per unit calulator NEEDS FIXING.
« on: July 06, 2020, 06:08:02 PM »
I don't see that wizzard in the list of Mach3 wizzards.

As for your headaches, from your first post, we can not give you a diagnose (maybe a partial one :D )

155
Show"N"Tell ( Your Machines) / Re: The Laser Project.
« on: July 05, 2020, 08:04:38 AM »
Will test one of these days with 2.5W blue laser (controlled with GRBL), and report back.

156
Show"N"Tell ( Your Machines) / Re: The Laser Project.
« on: July 05, 2020, 06:25:46 AM »
Interresting ;)

158
Mach4 General Discussion / Re: Counts per Unit Question
« on: June 06, 2020, 02:00:33 PM »
You can use even 999.5659 :)

159
General Mach Discussion / Re: Puzzled :(
« on: June 05, 2020, 06:16:13 PM »
Sorry Graham, forgot to mention PPort :)
For years, same computer running XP, same BOB, short wires from BOB to motor drivers, ...

Will have to investigate further (maybe just reinstalling Mach).

160
General Mach Discussion / Puzzled :(
« on: June 05, 2020, 11:15:49 AM »
Yesterday I started to machine paper phenolic 4mm thickness.
At first try I had drifting to the +X direction (unfortunately did not check x0y0 when that happened.
On second try, drifting was in +X and -Y direction.
On third page it can be seen that I changed machining strategy by first drilling holes inside vectors that had to be cleared from inside. Holes were spot on. inside contour, again, was incorrect.

Gave up for now, but I'm still puzzled because machine is GAINING steps (moving gantry, steppers, belts).

Any ideas?

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 »