Int ern at i onal  Journ al of Ele ctrical  an d  Co mput er  En gin eeri ng   (IJ E C E)   Vo l.   8 , No .   6 Decem ber   201 8 , p p.   5484 ~ 4789   IS S N: 20 88 - 8708 DOI: 10 .11 591/ ijece . v8 i 6 . pp 5484 - 54 94          5484       Journ al h om e page http: // ia es core .c om/ journa ls /i ndex. ph p/IJECE   Autom ation of D MPS   Man ufacturin g by  U sing L abView    and  PL C       F. F areez a 1 C hunch Ra m b ab u 2 ,  S. Kri sh naveni 3 , Abel  Ch erne t Ka biso 4   1,3 Educ a ti ona &   Resea r ch  Inst it u te ,   Indi a   2 , 4 Arba  Minch   Univer sit y ,   E thi op ia       Art ic le  In f o     ABSTR A CT   Art ic le  history:   Re cei ved   A pr   7 , 2 01 8   Re vised  Ju l   2 3 ,  201 8   Accepte Aug   2 , 2 01 8       Thi Paper   is  to  ena ble   th Si emens  (Program m abl Logi C ontrol CP 313 - 5A  to  comm unic at wi th  t he  La VIEW   and  to  cont ro t he  proc ess  ac cur acy   b y   image  proc essing.   The   comm unic a ti on  be twee C PU   313 - 5A  and  La VIEW   is  via   OP ( OLE  for  Proce ss   C ontrol ).   Proce ss   Acc ura c y   is   ac hi eve with  the   use  of  La bvie Im age   P roc essing  and  Gra y   Sca l e   m at chi ng  Pattern .   Acc ura c y   in  the   gra y   sc al m atching  will   pure l y   depe nd  o n   the   ca l ibration  o the  c amera   wi th  respe ct  to  the  cor responding   i m age .   Th e   digi tal  output   f rom   the   la bview   is  comm unic at ed  to  PLC  v i Et he rne t   Protocol   for  the   industri al   pro ce s cont rol.   W it t he  use  of  La bview   t he  dea d   ti m while   using   the   norm al   image  vision  m odul in  PLC  c an  be   m ini m iz ed .   La bvi ew  uses  th gra y   s cale   m atching  te chn ique  which  is  m ore   a cc ura te  tha n   the   norm al i m ag vision   m odule   used  in  PLC .     Ke yw or d:   Cam era   Ether net   Lab View   PLC   Pr oc ess  c ontrol   Copyright   ©   201 8   Instit ut o f Ad vanc ed   Engi n ee r ing  and  S cienc e   Al l   rights re serv ed .   Corres pond in Aut h or :   F.  Fa reeza   Associ at e Profe sso r   Dr .  M. G. R.  Ed ucati on al  &  Re search  Insti tute   Chen nai,  India.   Em a il far eeza f ay az@gm ai l.c om       1.   INTROD U CTION   To  m echan iz the  DMP ble nd i ng  sta ti on   f or   acc om plishing   bette e xact ness  in   the  pro cess  with  t he  util iz at ion   of  Lab view  Im age  Ac qu isi ti on  m od ule  an P LC.  Ma chi ne  visio is  wi de  te rm Nu m erous  sci entifi spe c ulati on s pictu re  sec ur i ng,  pi ct ur handlin a nd  e xam in at ion ,   an so  on  f ram the  entire  m achine  visio world In  thi m ann er,   to  c har act erize   m a chine   visio is  tr oubles om e   assig nm ent,  if   these   things  are   c onsidere d.   Page s   an pa ges  c ould  be   com po s ed  on  these   di sti nctive  s ubj e ct s.  Co ns e qu e ntly the   pr i nciple cent r al iz at ion  o t his p ost ulati on  a r chive was to  buil up a  basic m achine v isi on  ap plica ti on u ti li zi ng   pro gr am m ing   prom ptly   accessib le   in   the  m ark et T he  pr oduct  util iz ed  as  par of  th is  pro posal   pa per  w a s   Lab - V IE W.   I any  case,  t he   essenti al   nece ssit ie to  com pr e he nd   m achine  visio f r a m ewo r a re  ta lked   about in  the  expect ed  a reas  in  the  up c om ing   sect ion s .       2.   LIT ERATUR E SU RV E Y   It  is  repor te t hat  m ere  ph ysi cal   exam inati o an La borat or s ham bling   repor is  no he lpf ul  in  the   Pr oc ess  A ccu r acy .   The  re aso be hind  it   wa the  at m os ph e ric  co nd it io ns   especial ly   the  tem per at ur a nd  the   m oister co nten m ay  aff ect  th e Process  accu racy .   Anjali  Seta (2014 )   discu ssed   about  the  var i ou a dvanta ge on   La bv ie w - PLC  base pro cess  con t ro l   for  sm al s ta ti with   digi ta inp uts  via   Modb us   c omm un ic at ion   Protoc ol  [ 1].  F orsy th  et   al   ( 2009 )   con t rib uted  m et ho w he re  m easur of  Im age  Colo in  gray   scal patte r w hich  is  m ore  accurate  than   Colo r   m at ching   Tec hniq ue  by  Com par is on  with  a   ref e ren ce   im a ge  [ 2].  Pa pa dopoulos,   et   al   (20 08),   desc ribed  a   novel  ap proac to  autom at ion   industrial   process  by  the  I m age  m at ching   Tech nique  w it the  us of   s epar at e   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Autom ation of  DMP M anuf ac turin g by  Usin g L abVie w a nd P LC   ( F. F are eza )   5485   i m age  acqu isi t ion   m odule  [ 3] Siem ens  In dustria A uto m at ion ( 2008)  e xp la ine t he  operati on  of  the   CPU   315 -   S eries  ty pe  of   Progra m m able  con tr ollers  [ 4] N N.   Ba r soum et   al   (2 01 1)   e xpla ins  rem ote  con t ro app li cat io ns  ov er a  wide  area  wh ic is com mo nly use in in du st ries these  days. Ethe rn et   m od ule w as u s ed  f or  achievin rem ote  co ntro [ 5].   Nargalk ar   Ak s hay,  et   al   (2 00 5)   is   to  ena ble  the  Alle Bradl PLC  (P r ogram m abl Lo gic  C on tr ol)   SLC - 500  t c omm un ic ate  with  t he  La V IE W.   T he  c omm un ic at ion   betwe e SLC - 500   an d   Lab VI E W   is  vi OP (O LE  f or   P ro ces Cont ro l).  Dev el opm ent  of   OP usi ng   RS  Lin ux   OP C     Ser ver OP C   is  an  indus try   sta nd ar pro vid es  real   tim e   plu g - a nd - play   so ftw are  te ch no l ogy  fo r     process  c on t rol   and   fact or a uto m at ion   [6 ] .   Fairchil d,  M.  ( 2005)  p r opos e ne feat ure  of   C olo m atch i ng   Tech nique  by  Com par ison wi th a  ref e ren ce  im age [7]       3.   DIM ET HO X I P ROP ONI C AC I D   DMPS  ( Dim eth oxic   Propo nic   aci d)   is  m ixed  gr ad ually   unde co ntro ll ed  te m per at ur with   Edib le   Oil   (S un flo wer)  f or  bette qual it y.  For  this  proc ess  12   T on  of  Edib le   Oil - Sun flo wer   is  ta ke f or   batc h,   in  it s   12K of  S unflow e oil  co nce ntrated   with   120  G ram o D MPS  s olu ti on  i m ixed  gr a du al ly   un de c ontrolle tem per at ur e F or   t he  pr e par at ion   of  DMP con ce ntrate S unflo wer  oil  12kg  of  oil  is  ta ken  in  vessel   (sm all   ta nk)  an it   wa m ai ntained  at   650  with  th us of  heate coils  then  DM PS  So l utio is  do s ed  gr a dual ly   to  it  with  the  us of  do si ng   pu m p.   Durin this  pr ocess  the  c olou of   t he  sunfl ower  oil  in  the  ta nk   gets  cha nged  due   the  c on ce ntrati on  of  DMP S.  Wh e the  C ol our  of  the   D MPS  Co nce ntr at ed  S unflo we Oil  gets  c ha ng e t Li m colou th ca m era  will   s ense  it   and   se nds  the  sig nals  to  Lab  view.   T he   com m and   from   the  la view  will   be  c omm un ic a te to  P LC - Si m ens  CPU  31 5 - wh ic gove rn s   the  whole   process   with  t he  us of   la dder   lo gic   pro gr am m ed  in it .   Fo t he  pre parat ion   of    DMP co ncen t rated   Sunf lo we oil   12kg  of  oil  is  ta ken   in  ve ssel  (sm all  ta nk)  an it  w a m ai ntained  at  6 50 C w it t he  u se of   heate r  co il s then   DMPS  S olu ti on is d ose d gr a dual ly  to  it  with  the   us of  dosin pum the  co ntr ol  of    the  dosi ng  pu m p,   Ag it at or  a nd  dosi ng  pum is  gove rn e by  the   PLC  Om ro n - Cpm 2a. Tem per at ur co ntr ol  of   the  vessel  is  con t ro ll ed  l oc al ly   with  the  us of    te m pe ratur e   con t ro ll er  with   signa ls  f ro m   tem per at ur e   tr ansm itter  co nnect ed  with   RT D - P T1 00.T he  sta tus  sig nal  of  the   tem per at ur e   co ntr oller  is  giv e to   the   PLC   Om ro n - C pm 2a  f or  t he  c ontr ol  of  the   process .   T he  Bl oc di agr am   is sh own  i Fi gure  1   As  the   co nce ntrati on   of  DMP increa ses  the   colo of   t he  s unfl ow e Oil  ch ang e to  li m c olor  w hic is  sense with  the  us of   cam era  an the  im age  is  proce sse in  la bvie a nd   t he  sta tus  si gn al   is  s har e t PLC   for  f ur the act ion   via  O PC  serv e of  la bv i ew  w hich  is  r ecei ved   by  PL via  OP cl i ent.   The  proce ss  is   dep ic te d o n Fi gure  2 .           Figure  1. Bl oc k Diag ram         Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &   C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   4781   -   4789   5486       Fig ure  2 .   Proce ss D ia gr am       3.1.   Process  Seq ue nce   a.   Pu s bu tt on  O N - ):  A gitat or ,   Do si ng  P um and  Heater   ge ts  powe red   he at er  us es   sepa rate  tem per at ure   con t ro ll er l oop uses  tem per at ur e  Co ntr oller   b.   Cam era Starts  sensing a nd  w hen it  r eac hes  t he req uire c ol our  it   passes  t he  sig nal to plc   via La b view   c.   Wh e Im age  a nd  te m per at ur e   sat isfie c ondi ti on   a gitat or  a nd  dosi ng  pum st op s   a nd  th outl et   act uator  sta rts drop ping       3.2.   Te chniques  U sed   a.   PLC  Siem ens  CPU  315 - A us es Lad de L og i c Pro gr am m ing   with    b.   Step - L ogic  L abV ie w Uses  Gr a phic al  p r og ram m ing   c.   PLC - La bV ie w C omm un ic at io is  with t he us e of La bV ie w OPC  Se r ver an d Om ro C X - On e  Se rv e r       4.   COMPO NEN TS OF  M ACHINE  VISIO S YS TE M   m achine  visi on   syst em   ty pi cal ly   con sist of   m achine  vision   softwa re  ( m achine  visio too ls)  an a   ca m era  (im age   acqu isi ti on  de vice).  B ut  m any  oth er  t hings n eed  t be  co nsi der e f or  m achine v isi on  s yst e m .   Each  of   t he  c om po nen ts  has  i ts  own  si gn i ficance.  So   none   of   t he  c om po ne nts  can   be   iso la te or  seg re ga te d.   The  im po rta nt  com po ne nts are  d isc us se in   br ie f  in  t he foll ow i ng sub - sect ion s .     4.1.   Ill uminat i on   Illum inati on   re fer to  t he  li ght  s ource that   are  avail able  arou nd   t he  ob je ct   being   a nal yz ed.   It  is   sign ific a nt  that   the  obj ect (s unde a naly sis  be   cl early   visibl to  the   im age  acqu isi ti on  devi ce.  It  e ns ures  that  m uch   of   the  in form ation   is  re ta ined  in  the  a cqu i red   im age,  and   no   m uch   im age   processi ng   nee ds   to  be   done;   thu s  m aking  th e m achine v isi on appli cat ion  si m pler  to  de ve lop .   Illum inati ng   obj ect (s)   does  not  m ean  avail abili ty   of   hu ge  a m ou nt  of  li ght  around  t he  ob j ect it   ref er the  li gh ts  to  be   adjusted  in  pro per  w ay Pro per   il lum inati o involve the  rig ht  intensit and   c orrect  dir ect io of   li gh t It  shou l be  do ne  in  way  that  sh ad ow   form at ion   is  checke an m axi mu m   con trast can  be   achieve d from  the r e gion  of in te rest of the  ob j ect (s ).   (Mo -   vim ed   cust om  i m aging   so l utio ns , 2 007 ) .   The  li gh sou r ces  m ay  be  fluoresce nt  li gh ts  or   LE li ghts  or   halo ge li gh ts,  et c.  LE li gh ts  are  m or e   pr e ferred   ove r   the  oth er   ty pe of  li ght  sources because   of  their   lo ng  li fe  an le ss  energy  c on s um pt ion .   Dep e ndin g upo the  ar rangem ent of li ghts, il l um inati o can   be direct   or  i nd irect .   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Autom ation of  DMP M anuf ac turin g by  Usin g L abVie w a nd P LC   ( F. F are eza )   5487     4.2.   Ima ge acquisi tion   Im age  acqu isi ti on   is  t he  m os i m po rtant  pa rt  in  m achin visio syst e m It  inv ol ves  captu rin a i m age  of   t he  obj ect   t be  a naly zed  with   the  help  of  cam era.  Dif fer e nt  ty pe of  cam eras  can  be  us ed   f or  i m age  a cqu isi ti on;  th ey   can  incl ud e   an  ordina ry  m ob il ca m era ty pical   di gital   ca m era,  or  even  web ca m But  ca m eras  that  are  ta il or e s pe ci al ly   fo in dustria us are  a lso  avail able.   Dep e ndin on   the  sens or  te ch no l ogy   us e d,   dif fer e nt  ca m eras can be  classi fied  i nto   two  cat e gories  as foll ows:     CM OS  cam eras     CC cam eras   “The  se nsors  c ou l be  m at rix  sens or or  li ne   sens or s A i m age  sensor  conve rts  an  opti cal   i m age   into  an  el ect ronic  sig nal . ”  C hoos i ng   m achine  visio ca m era  can  be  a   diff ic ult  ta sk .   Howe ver,  res olu ti on,   sensiti vity an ty pe   of  cam era - m on oc hro m or   col or ,   s hould  be  c ons idere wh e buyi ng  on e (ALLIE D   Visio Tec hnologies  GMBH,  2006 ) .   Als o,   t he  i nterf ac the  cam era  us es  f or   c omm un ic at ion   shou l be   consi der e d. T he  av ai la ble i nterf aces  inclu de USB , E the rn et ,  Fire wire,  et c.     4.3.   CCD  c amer as   CC (C ha r ge - c ouple De vice)  cam era  us es  the  CC D   sens or   te c hnol og y.  T he  m ain   feat ur es  of  these  se nsors   (and  he nce  ca m eras)   a re  li ste as   f o ll ows  (V isi on   Syst em Oy ,   2012 ) The   m os co m m on  ca m era  sens or I n - c om ing   c h ar ges   are   sto red  E qu i valent   to  film of   tr aditi on al   film   ca m eras.   Co nsi st  of  pix el with a  ty pical  size o f 1 0µm  x  10µm .   a.   These a re  both  colo a nd m on ochr om e.   b.   These a re lig ht - sensiti ve  d i ode senso rs.     c.   Each  pix el   has   a m ic ro - le ns  fo f oc us in t he  l igh t i nt t he  se ns or s urface .   d.   Disad va ntage of  these  sens or s is the  possibil it y of   ov e e xpos ure           Fig ure  3 .   CC D  Cam era       4.4.   Depth  of f ie ld   Dep t of   Fiel (DOF is  the  m easur e o the  di sta nce  betwee the  nea rest  and   the  fa rthe st  obj ect in  a   scene t hat can   be  ca ptured   by  the cam era an d b e acce pta bly sharp i the  im age.     4.5.   Constr ucti on   of t he  stat i on   The  syst em   co ns ist of   cy li nders sens ors,  m oto as  the  ph ysi cal   com po ne nts.  As  the  PLC  us e in   the  sta ti on   re quires  a dd it io na sign al   m od ul es  for  the  I/O  (in pu ts  a nd   ou tpu ts)  de vices,   sign al   m od ule fro m   Be ckhoff  ( w w w.beck hof f. c om was  us e d.     4.6.   Sy s tem c omm unica tion   The  P LC  wa s   interface t the  com pu te r   us in S MP I   ada pter.   The   bu s   co uple r,  L C310 wa s   netw orke with  the  PLC  us i ng   PR OF IBU cable.  Also   OP com m un ic at ion   was  do ne  us in the  s a m S7   MPI  a dap te r.   diag ram m at i re pr ese ntati on  of   c omm un ic at ion   am ong  t he  syst em   co m pone nts  is  s hown  in   Figure  4.             Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &   C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   4781   -   4789   5488   Figure  4 .   Com m un ic at ion s a m on STE 7,   Lab VI E a nd  CPU31 5 - 2DP  and LC3 100   4.7.   STE 7pro fes siona l   STEP  PRO FESS ION AL  (S TE in  s hort)  is   aut om at ion   softwa re  f r om   Sie m ens  Ind us try   ( w ww.siem ens. com ).   It  is  us ed  f or   progra m m ing   si m atic   PLC  sta ti on s.   Figure  s hows  the  syst em   m ang e r   window   of sim at ic   STEP  7,   w her e  a cr e at ed pape r wit s om e b lock s is al so  s how n.           Figure  5 .   S cree ns hot  of sim ati c m anag er (ST EP  7)       STEP prov i de pro visio to   co de  the   pro gram   us ing   se ve diff e re nt  la ngua ges.   So m of  them   are   FBD  ( Functi on  Bl oc Dia gra m ),   LD   (La dder  Diag ram ),   and   SCL  ( Stat e m ent  List ),   et c.Th us e can   fr eel y   choose  the  la ngua ge.   STE P7   aut om ation  program   m ay  con ta in  f unct ion (F Cs) f unct ion   blo c ks   ( FBs) ,   orga nizat ion   bl ock (O Bs ),   s equ e nce  functi on al   c har ts  (SFC s),   et c.  B ut,   ever S TEP pro gr am   m us t   have   OB1 beca us it   is  the  m ai fu nctio n.   Detai ls  about  the  ST EP7   program are  not  cov e re in  this  thesis The  la nguag e  used   for  the  au t om ation   of the  syst em  d escribed  i n t his work  was   FBD.           Figure  6 .   FBD   cod e s in   STE 7   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Autom ation of  DMP M anuf ac turin g by  Usin g L abVie w a nd P LC   ( F. F are eza )   5489   4.8.   CPU3 15 - 2DP   CPU31 5 - 2DP  belo ngs   to   Si m at ic 30 gro up  of  PLC   co nt ro ll ers It  co nsi sts  of  di ff e rent   ind ic at ors,   a   pro gr am   m ani pu la ti on  key,  and   m e m or card   slot.  It  has  serial - c onnecti on  ports on of  them   is  f or   interfaci ng   between  S TEP a nd  the PLC  wh ereas the o t her   is fo c onnecti ng   to   distrib ut ed  m od ule . F igure  7   sh ows  CPU 31 5 -   2DP.           Figure  7 .   CPU 315 - 2DP       4.9.   Ha rdw are c onfigur at i on   Hardwa re  co nf igurat ion   ( H W needs  to  be  done  be f or a ny  program   ca be  do wn l oa ded   int the   PLC.  In   the  ha rdwar c onfig ur at io n,   the  ty pe  of   powe su pply the  CPU  m od el   (su ch   as  CPU3 15 - 2DP) th e   sign al  m odules and (o r)   oth e r dist rib uted  m od ules  bei ng   use d need  to be s pecified  so that  the s of t war e a nd t he   hard war e ca i nter - c onnect . Fi gure  s hows  the  hard war e c onfi gurati on do ne fo this  p a pe r.           Figure  8 A e xam ple H ar dware c onfig ur at i on for si m atic PLC           Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &   C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   4781   -   4789   5490   5.   RESU LT S  AND DI SCUS S ION           F igure   9 .   LAB VI E f on pa nel           Figure  10 .   S te p   7 L ad der an S i m ulati on   M odule         Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Autom ation of  DMP M anuf ac turin g by  Usin g L abVie w a nd P LC   ( F. F are eza )   5491       Figure  1 1 .   Sele ct ing   boundi ng box to c reate a  boun ding  box       The  outp ut  te r m inal  fr om   the   U nbundle  by  Nam VI   was  on ce   agai wir ed  to   A rr ay - to -   Cl us te VI,   whose  outp ut  te rm inal  was  al so   on ce  a gain   wire to  a no t he U nbun dle  by   Nam VI .Th i tim i was  e nlar ged   to  get  outp ut   te r m inals.  Th first  outp ut  t erm inal  was  assigne t ‘B oundin B ox   [ 0] >x’ the  sec ond  t o   ‘Boundin B ox  [1 ] >y ’;  the   t hir to ‘Bou nd i ng  Bo [ 2]>x’ ;   an t he  four t to‘B oundin Box  [ 3]>y ’  as   sh ow in Figu re   11 .           Figure  1 2 .   Assi gn i ng x -   a nd y -   axes  to  t he boundin g b ox     Each  of  the   outp uts  was  t he c onnecte to   the  i nput  te r m inals  of  ‘B uild  Array’   V I T he  outp ut  te rm inal  of   t his  V wa al so  wire to   an -   oth e A rr ay - to - Cl us te VI one  thi ng  to  be   note is  t hat  al the  Evaluation Warning : The document was created with Spire.PDF for Python.
                          IS S N :   2088 - 8708   In t J  Elec  &   C om En g,   V ol.  8 , N o.   6 Dece m ber  2 01 8   :   4781   -   4789   5492   cl us te rs’   siz ne eds  to  be  c ha ng e to  4;  it   can  be  do ne  by  ri gh t - cl ic king  th Ar ray - to - Cl ust er  VI   a nd   sel ect ing   ‘Cluster  Size ’ f ro m  the contex m enu  as  sho wn in Fi gure  12 .           Figure  1 3 . C ha ng i ng the cl us t er s iz e           Figure  1 4 .   PL C Lad der &  Sim ula ti on  Mo dule     The  outp ut  te r m inal  fr om   that  final  Array - to - Cl us te VI   was  co nnect ed   to  the  ‘Rect ang le ’  input   te rm inal  of   the   ‘I MA Ov e rl ay   Re ct ang le   VI Als o,   the  i nput  te rm inal  ‘I m age’   of   t his  VI   was  wired   t the   Evaluation Warning : The document was created with Spire.PDF for Python.
In t J  Elec  &  C om En g     IS S N: 20 88 - 8708       Autom ation of  DMP M anuf ac turin g by  Usin g L abVie w a nd P LC   ( F. F are eza )   5493   ‘I m age  ou t’  outpu te rm inal  o the  visio assist ant.  Finall y,  the  ou t pu te r m inal  fr om   the  Ov erlay   Re ct ang l e   VI   was  w ire d t the  in pu t t e r m inal of  t he ‘I m age D is play ’ VI.     5.1.   Metho of   Inte rfa ci n g   5.1.1.   Configuri n P LC   Dri ver   Her we  c hoos RS - 232  DF1  dev ic es   an cl i ck  on  A dd  Ne w.   Ne xt  we  na m the  PLC  a nd  the sta rt  the con fig ur at i on in  C onfig ur e RS - 232  DF1  dev ic es .     5.1.2.   Creatin g New  O PC   To pic    Creat new   OP T op ic   a nd  save  it   f or   further   us e.  All  the  in pu ts  a nd   ou t pu ts  th at   ar avail able  in   the PLC  will  be avail able  unde to pic  wh ic h we  hav e  create d       6.   CONCL US I O N   Fr om   the  pa pe pe rfo rm ed,   it   was  obvi ous  that  m achine  visio te ch nolo gy  an NI   Visio to ols   tog et he can  be   us ed  for  sor ti ng   ob j ect in   factor pro du ct io li ne.   I was  confirm ed  that  out  of  m any   m achine  visio too ls,  th patt ern - m at ching   a lgorit hm   cou ld   be  ap plied  for   the  obj ect   s or t ing   pur po se A lso,  it  was  cl ear   that  sim ple  web c a m   cou ld   be   us ed  for  perform i ng  m achine  vis ion s   ta sk s Be c ause,   web ca m   was   us e f or  patte r m at ching ,   it   is  not  f or  s ur e   that  it   can  be   use for  dif fer e nt  m achine  vis ion   a ppli cat ions.  But ,   if  the  a ppli cat i on  is  in de pend ent  of  dif fer e nt   i m age  proces sing   ta s ks,  it   m igh be  possi ble  to  us e   we bc a m s   instea d of ot he in dustria l ca m eras.   The  patte r m at ching   was  do ne  at   diff er ent  tim es  of   the  day;   ever tim t he  sco re  ge nerat ed  by  the  visio assist ant  n ee ded ad just m ent f or  the  correct  patte rn m at ching. T his s hows  t hat p at te rn  m at ching is  base on   direct  c orre la ti on   m a trix  al gorithm The  scor ge ner at e f or   t he  im ag tem plate   was  900.   If   t he  sco re  wa s   increase ov e 900,  no ne  of  t he   obj ect m at c hed  the p at te rn;   belo 90 pa tt ern m at ched ,   but  if  the scor was   belo certai s cor ( f or   exam ple  850),  the  obj ect wh ic te nd   to  be  of   the   sa m patte rn   al so   m at ched I that  case, the  aim  o f patt ern  m at ching   fail ed.   Althou gh  patte rn   m at ching   is   no a ff ect e by   li gh ti ng,  it   was  see th at   sh a dow  f orm ation   of   so m e   oth e obj ect over  the  a naly zed  obj ect   hi nd e r ed  to  m a tc the  patte rn   sto re in  the  patte r tem plate So t say   that  patte rn   m a tc hin is  in depend e nt  of  li gh t ing   m igh be  so m ewh at   unre al ist ic It  m igh be  sai that  pa tt ern  m at chi ng   not  aff ect ed  by  li ghti ng   directl y,  but  there  m igh be  so m oth er  ind irect   cause  relat ing   to  li ght  that  aff ect pat -   te r m at ching .   It  was  al s c onfirm ed  that  P LC  co uld   be  i nteg rated  with   Lab VI E usi ng   OP c omm un ic at ion   protoc ol;  com m un ic at ion   wa ena ble us in NI  O PC  Se r ver s   in   this  t he sis.  T he  i ntegrat ion   of  sim at i PLC   was  il lustrate in  this  thesis   but  al m os al th PLCs  ca be   integrate with   Lab VI E us i ng  N OP se r ver s;  pro vid e the re  is an  OP dri ve f or the  PLC.   In   t his  thesis   docum ent  it   was   po ssible  t pr e sent  only   sim ple  patte r rec ogniti on  te ch ni qu e   f or  the   obj ect   sorti ng.   Although  the  obj ect ive  of  sorti ng   ob j ect   usi ng   m achine  vision   too was  m et i was  reali zed  that  geo m et ric  m at ching   to ol  would  be  m or e   robust  for  s or t ing   obj ect s.  T he   obj ect us ed  in  the  pa pe w ere  al si m il ar;  def ining  only   one  pa ram et er  cou ld   be  e nough  in  s uch  co ndit ion  to  get  the  res ult.  But  t he  case   would  no be  t he  sam al ways.  T he  obj ect m ay   hav diff e re nt  s hap e an siz es;   in  suc ca se s,  it   is  not  en ough  t m at ch  o nly  th patte rn  of  th obj ect Me as ur i ng   distance betwee tw po i nts,  m easur in diam et ers,   et c .   cou l d be a dd e d t the  appli cat ion  t m ake it m or e p ower f ul and e rror - f ree.   The  m ai idea  was  to  interfac LabVIE W   a nd  PLC  for  m or eff ect ive  an eff ic ie nt  proc e ss  con tr ol.  This  pa per   of  interfaci ng   tw m os t   po we rful  te chnolo gies  r uling   the  in dus trie le ad  to  m any  new   feat ures  li ke   acqu i rin data  at   faster  rate,  c on t ro ll in the   process   accu ra te ly prov i ding   Mult i - Taski ng  operati ons,   Re m ot e   con t ro ll in an seve ral   oth e featu res.   Use co rr ect ly m ulti   thread in offer nu m erous  be nef it inc lud in m or eff ic ie nt  CPU  us e,   bett er  syst em   reli a bili ty and  im p rove perform ance  on  m ulti pr oces sor  c om pu te rs .   Using  L ab VIE W,   we   can   sta rt  to day  to   m a xim iz perfor m ance  on  m ulti   thread e op erati ng  syst em an m ul ti pr ocess or  com pu te rs  w it ho ut  i ncr easi ng  ei ther  y our  de velo pm ent  tim or   the  com plexity   of  your   app li cat io n.   B ecause  t he  m ulti   thread in te chnolo gy  of  Lab VI E is   im ple m ented  tr ans par e ntly no  e xtr a   pro gr am m ing  i s r e qu i red  to ta ke full a dv a nta ge of  m ulti  thr eadin te c hnol og ie s .       ACKN OWLE DGE MENTS   We,  a utho rs  of  this  pap e w ould  li ke   to   sho our  gr at it ud to  our  fam ily f rien ds   a nd  c ollea gu e for   sh ari ng their  pea rls of  wisdo m  w it us   during the c ourse  of this  resea rch  pap e r.       Evaluation Warning : The document was created with Spire.PDF for Python.