HI
during long week-end i have fix\add
1-) move from old pm360 machine to a newer 460 machine whit ATC ,add the cognex camera to machines
and build 5 controller card so now all my machine have the new controller (ya i buy 2 more machine few week back)
2-) ADD auto tool changer support ,for now we will only handle first 5 bit ,bit #6 pose problem whit negative coordinate
3-) bootloader in firm and software
4-) fix cut-tape feeder operation on software
5-) handle part rotation in 1.7 deg increment , this still need mechanical calibration
6-) begin to work whit machinist for make my own nozzle ,CAD draying was done waiting for first prototype
7-) cognex vision system integration in software
ok for vision software was ready but still have lot of work to put on optic side
i have problem whit lighting ,mirror reflection and gosh image ,uniform focus ,etc etc
will need front surface mirror and box for control illumination and
probably help for some one that better that me in optic ,so if you may help me not be shy
on image above RED circle was the machine bit position ,green cross was calculate part center
and text on top was data send trough rs232 to pc software
in this case "X:300.666 Y:410.057 T:-3.830 S:44.391"
on PC side it do ...
X = ((X - 240) / 21) and Y = ((Y - 320) / 21) "21" was scale value for pixel to mm
T = rotation in degree
S = score < 40 vision result was considered as void
this will convert in +/- value based on center position
in this example part was X=300.6 - 240 = 60.6 \\ Y= 410.0 - 320 = 90.0 pixel off center
whit -3.8 degre rotation scale value will be ~21
x=60.6 / 21 = 2.88mm
y=90.0 / 20 = 4.28mm
problem was that this was a still image take whit perfect illumination and focus on stopped machine
but on a working machine it hard to make it reliable and handle variable lighting condition
Best regard