Hello Guest it is March 28, 2024, 05:59:45 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 - peskywinnets

Pages: 1 2 3 »
1
...are the LEDs the right brightness level or do they 'white out' your view of the stock? (I've read the some have had real problems getting the correct levels wrt leds & webcams)

Do you have the link to where you bought it from?

Edit: "Seek & ye shall find" as they say...

http://www.ebay.co.uk/itm/2M-Mini-USB-Borescope-Endoscope-Waterproof-Inspection-Snake-Tube-Video-Camera-/180834989844?pt=UK_Computing_Other_Computing_Networking&hash=item2a1a9af714

I see it has an LED brightness control onboard :-)

2
I see you edited, if you already have that code then all you do is put it into a notepad file and save as something like M123.m1s and place in your profiles macro folder. Then every time you call m123 from your code it will do that routine.
Hood

Thanks for that....so you are saying I can just insert the line into the gcode, for example...

G0 x10 y-20
m123           (i.e. call auto tool zero macro from within gcode file)
G0 x20 y-40

.....etc?




3
Thanks but no...that was vbscript (which I have already but needs me to manually touch off after each tool change).

I'm hoping to deploy such a solution when milling copper clad fr4 ...the clamp I use to hold the copper board is grounded (therefore so is the fr4 copper clad surface - well at least initially ie before too much isolation milling takes place!)  - so the engraving tool descends touches the copper clad surface, the 'probe pin' changes condition - mach3 then knows, zeros the Z dro & continues with the g-code. I'm pretty sure I saw some g-codes once that do this mach3 auto-zero hunting/zeroing but from within the g-code file itself.

4
I will (but didn't cos I reckoned it'd pull back plenty of the wrong info ...most stuff is related to vbscript & touch off plates)...I just seek the g-code to start mach3 hunting for zero from within the g-code file & then the g-code for zeroing the z axis.

5
I might be going mad, but I'm sure I saw some funky g-code (somewhere or other) where mach3 would read the g-code & start descending the z axis until the probe pin changed value & then set the Z axis to zero.

My wish is to incorporate such gcode into a machine op 'header' file in CAM software - when I generate the g-code each tool change would have the auto zero g-code incoprated into the main g-code output file. Therefore, when I change a tool, I just simply press run, the new tool will descend until it probes 0 then contnue on with the cycle (which saves the faff of using a manual touch/probe plate)

6
Thanks ...that's useful info.

Actually by rethiinking my approach I can avoid having to go with such a routine (or using the rotation wizard)

Mount the pcb chip breaker cutter (1.6mm dia)

Loosely clamp the pcb down

Make sure my first registration mark is 0,0

Align the webcam over the registration mark. (ie @ 0,0 as mentioned by gerry earlier)

Have the CNC drill the pcb hole and dowel pin hole all at once (I used to have to do this manually in two stages 1. with a drill press and the pcb .2. On the CNC machine for the dowel pin)

Pop a 1.6mm dowel pin through the pcb into the hole in the spoil material below

Now shuttle the webcam over to known cordinates (ie where my 2nd regsitartion mark is) ... physically move the pcb until it is aligned (it will pivot/rotate around the 0,0 pin/hole which I drilled earlier)...once aligned on camera, clamp the pcb down firmly.

Job is ready to run - this is sort of a halfway solution between what I was wanting to do, and what I'm doing now, but I think it might work out best in reality ( reckon about 1 minute to align)

7
Yes
There is no macro restart function with CR in Mach CB.

Have you tried the Set Rotation Wizard to align the board??

I think you asked about this before.

(;-) TP

Yes, you're right I queried about the rotation wizard earlier ....but that's not what I'm on about here, what I'm on about here is learining a little more about writing my own scripts & getting a tool tip view VB script script going down.

I guess I could use a dummy text entry....ie where Mach3 prompts a user for input text entry then just discard the entry?

8
This is first  stage 1 of an overall endgame...the endgame is to save a whole heap of time meddling about with indexing dowel pins so that my prior etched pcb is aligned accurately & can be depaneled (the inspiration was this video - http://www.youtube.com/watch?v=JJnenOsbCzU&feature=player_embedded - but he's using his own cnc software)

At the minute, here's what I'm doing wrt making pcbs...

Etch a pcb (with known index marks) - drill the index marks out with a 3mm drill (not easy due to human parallax error)
proceed to cnc machine.....load a drill file to drill 3mm holes at the known index marks.
Pop some dowel pins into the drill holes
Now place the pcb over the pins - board is now aligned (maybe - see above re parallax errors!)- pcb board 'outline' cutout can begin

For all it reads quick...it's time consuming!


where I want to get to....

Etch a pcb with known index marks (no need to drill them out)
proceed to cnc machine....clamp board down roughly (ie doesn't need to be accurately aligned)
Run macro - align webcam over 1st index mark (no parallax error)....cnc machine now knows say 0,0  (which your earlier code will do nicely for)

Ok, this is the bit I haven't mentioned but is step 2 (have to nail tha few simpler macros first ...so hence the softly softly approach to this)

Now we have 0,0 sorted ......move to another known coordinate with the webcam - and Mach3 the works out the angle of rotation.
pcb outline cutout can begin.

So I'm eliminating a few time intensive steps (drilling out the pcb, drilling some dowl pin holes, placing in dowel pins, etc) & potential for parallax errors by loosely clamping the pcb & then having a webcam & couple of webcam alignment macros do the legwork.

But like I say, I'm new to VB scripts (and G-Code come to that)...so my initial step is a tool tip view...where I can jump to where the tool was located & back again (with maybe some jogging about to align in between - hence wanting the 'wait until use presses CR' question which started off this thread)

9
I also want to use this same macro as essentially a 'tool tip' birds eye view utility....at any point during my CNC session (not just a 0,0 position), I can then run a macro & the webcam which will go to where the tool was .....once I've had a peek/confirmation & am happy, hit CR and the tool restores itself to those particular coords.

10
Thanks...I will certainly use that where the registration mark can be made to be 0.0, but what if the registration mark etched onto the the pcb is not 0,0?

How I envisage this working....

load g-code file
Press run....tool then moves to the first position - the registration mark (could be any coord...not necessarily 0,0)
Stop the cycle
run my macro...present coords get stored, webcam offset kicks in, webcam gets aligned by user ...user then hit cr to return, tool now gets placed where the webcam was, original coords get restored - continue the original run cycle.

Pages: 1 2 3 »