Ladder Drive - To start IoT for manufacturing.

Ladder Drive - To start IoT for manufacturing.

Introduce Ladder Drive Gem which is made by me, to use it as IoT for manufacturing.
This is a presentation material at the RubyWorld Conference 2019.

https://2019.rubyworld-conf.org/ja/program/#a-4

製造業のIoTを始めるためのLadder Driveと題してRubyWorld Conference 2019で発表した時の資料です。
私の作ったLadder Drive Gemの紹介です。

Ea4f647d2ebc49e087fb84739194b19c?s=128

Katsuyoshi Ito

November 07, 2019
Tweet

Transcript

  1. ༗ݶձࣾҏ౻ιϑτσβΠϯ ੡଄ۀͷ*P5Λ࢝ΊΔ ͨΊͷ-BEEFS%SJWF ʙ7JSUVBM1-$͔Β*P5ϋϒ΁ͷ׆༻ʙ ༗ݶձࣾҏ౻ιϑτσβΠϯ ҏ౻উྑ 3VCZ8PSME$POGFSFODF ೥݄೔

  2. ༗ݶձࣾҏ౻ιϑτσβΠϯ ໨࣍ wࣗݾ঺հ w੡଄ۀʹ͍ͭͯ w-BEEFS%SJWFʹ͍ͭͯ

  3. ༗ݶձࣾҏ౻ιϑτσβΠϯ ࣗݾ঺հ w ळాݝେઋࢢ w ՖՐɺ͖͋ͨ͜·ͪɺࢬ౾ w ळాߴઐଔ w ҹ࡮ػ੡଄ձࣾۈ຿

    w ଌఆ૷ஔͳͲͷ։ൃձࣾۈ຿ w ෕਌ͷݐઃձࣾʹ৽ઃιϑτ෦໳͕ w ༗ݶձࣾҏ౻ιϑτσβΠϯʹ w ੡଄ઃඋͷιϑτ͕ϝΠϯ w J04ΞϓϦ w "LJUBN w "LJUB3VCZ.FFUJOH w J6OJU5FTU w J3VCZ,BJHJ ίϛϡχςΟ ܦྺ ϓϩμΫτ
  4. ༗ݶձࣾҏ౻ιϑτσβΠϯ ੡଄ۀ

  5. ༗ݶձࣾҏ౻ιϑτσβΠϯ ੡଄ۀͱҰޱʹ͍ͬͯ΋ ৯ྉ඼ ણҡ ໦ࡐ Ո۩ ύϧϓɾࢴ ҹ࡮ Խֶ ੴ༉

    ϓϥενοΫ ΰϜ ֵ ༼ۀ మ߯ ඇۚଐ ۚଐ ͸Μ༻ػց ੜ࢈༻ػց ۀ຿༻ػց ిࢠ෦඼ ిؾػց ৘ใ௨৴ػց ༌ૹ༻ػց ͦͷଞ
  6. ༗ݶձࣾҏ౻ιϑτσβΠϯ ੡଄ۀͷϓϩάϥϜ

  7. ༗ݶձࣾҏ౻ιϑτσβΠϯ 1-$ ϓϩάϥϚϒϧϩδοΫίϯτϩʔϥ͸ɺϦϨʔճ࿏ͷ୅ସ૷ஔͱͯ͠։ൃ͞ Ε੍ͨޚ૷ஔͰ͋Δɻ޻৔ͳͲͷࣗಈػցͷ੍ޚʹ࢖ΘΕΔ΄͔ɺΤϨϕʔ λʔɺࣗಈυΞɺϘΠϥʔɺςʔϚύʔΫͷ֤छΞτϥΫγϣϯʢ༡۩ʣͳͲɺ ਎ۙͳػցͷ੍ޚʹ΋࢖༻͞Ε͍ͯΔɻ IUUQTKBXJLJQFEJBPSHXJLJϓϩάϥϚϒϧϩδοΫίϯτϩʔϥΑΓ 1-$ຊମ $16 ֦ுϞδϡʔϧ

  8. ༗ݶձࣾҏ౻ιϑτσβΠϯ ϦϨʔճ࿏ͱ1-$ ϦϨʔճ࿏ 9 9 : : : : Ͳͷ༷ʹ઀ଓ͢Δ͔͸ϥμʔਤͰදݱ

    ϥμʔਤΛ࡞Δͷ͕ϓϩάϥϛϯά : 9 : ɾ9 @ 1-$ *0 Ϟ δ ϡ c ϧ 9 9 : 1-$ εΠον΍ϥϯϓΛ*0 Ϟδϡʔϧʹͭͳ͙ Լͷ࿦ཧࣜͱ౳Ձ 0OϘλϯͰ఺౮ 0⒎ϘλϯͰফ౮
  9. ༗ݶձࣾҏ౻ιϑτσβΠϯ σόΠε w εΠον΍ϥϯϓͳͲ͸σόΠε ͱͯ͠දݱ͞ΕΔ w σόΠε w 9ೖྗ εΠονɺηϯαʔ

     w :ग़ྗ ϞʔλʔɺγϦϯμʔ  w .಺෦ίΠϧ
 λονύωϧͷೖग़ྗɺঢ়ଶ  w %σʔλ
 Χ΢ϯτɺηϯαʔ஋ͳͲ 9σόΠε 9 9 9 9 ʜ 9' : .σόΠε %σόΠε : : : : ʜ :' . . . . ʜ .' %             w ಺෦Ͱ͸ϝϞϦͱͯ͠දݱ w #JUσόΠε w 803%σόΠε
  10. ༗ݶձࣾҏ౻ιϑτσβΠϯ σόΠε৘ใͷऔಘ • ૷ஔ಺ͷ༷ʑͳ৘ใΛ஌Δ͜ͱ͕ग़དྷΔ • ӡసঢ়گɺҟৗͷൃੜɺԹ౓ɺੜ࢈਺ɺetc… • ௨৴ͰσόΠε৘ใΛಘΒΕΔ • ௨৴Ϟδϡʔϧ(CPU಺ଂ΋͋Γ)

    • γϦΞϧɺEthernet • ϓϩτίϧ࣮૷ͰϓϩάϥϜϨεɻઃఆ͸ඞཁ • ར༻ྫ • λονύωϧɺσʔλϩΨʔɺ্ҐγεςϜͳͲ λονύωϧ σʔλϩΨʔ JS#PBSE J1BEΛλονύ ωϧͱͯ͠࢖༻Ͱ ͖ΔΞϓϦ
  11. ༗ݶձࣾҏ౻ιϑτσβΠϯ -BEEFS%SJWF IUUQTHJUIVCDPNJUPTPGUEFTJHOMBEEFS@ESJWF

  12. ༗ݶձࣾҏ౻ιϑτσβΠϯ -BEEFS%SJWF w (FNύοέʔδ w 1-$ͱͷ௨৴ػೳ w 7JSUVBM1-$ w ΤϛϡϨʔλʔ

    w σόΠεσʔλۭؒ w 1$΍3BTQCFSSZ1J౳Ͱಈ࡞ w ݩʑ͸1-$ϝʔΧʔຖʹ͕ࠩ͋Γڞ௨ ԽͰ͖ͳ͍ͷͰ1-$಺ʹ7JSUVBM1-$ Λ࡞Γڞ௨Խ͠Α͏ͱ࣮ͨ͠ݧతͳऔ Γ૊Έͩͬͨ w *P5ϋϒͱͯ͠׆༻͠Α͏
  13. ༗ݶձࣾҏ౻ιϑτσβΠϯ *P5ϋϒͱͯ͠ͷ׆༻

  14. ༗ݶձࣾҏ౻ιϑτσβΠϯ *P5੡଄૷ஔ͔Β৘ใΛूΊΔ w 7JSUVBM1-$͸σόΠεͷσʔλۭؒΛ࣋ͭ w ڞ༗ۭؒͱͯ͠ w ෳ਺ͷ1-$ͷ৘ใΛϚοϐϯά w ௨৴Ͱ΍ΓऔΓ͢Δ

    w ෳ਺ͷ1-$͕ϦϯΫ͢Δ΍Γํͱͯ͠Α͘࢖ΘΕ͍ͯΔ GSPN1-$" UP1-$" 7JSUVBM1-$
 ΤϛϡϨʔλʔ σʔλۭؒ UP7JSUVBM1-$ GSPN7JSUVBM1-$ 1-$$ UP7JSUVBM1-$ GSPN7JSUVBM1-$ 1-$# GSPN1-$# UP1-$# UP7JSUVBM1-$ GSPN7JSUVBM1-$ 1-$" GSPN1-$$ UP1-$$
  15. ༗ݶձࣾҏ౻ιϑτσβΠϯ ΤϛϡϨʔλʔͷ֦ு w ΤϛϡϨʔλʔͷ֦ுํ๏ w جຊ͸1-$ w ϓϥάΠϯͰ֦ு w σʔλۭؒ΁ͷಡΈॻ͖

    w ઃఆϑΝΠϧ :".-  w ༗ޮແޮ w σʔλۭؒͷԿॲʹ w ௨৴ํࣜ w FUD ϥμʔॲཧ ϓϥάΠϯ" ϓϥάΠϯ# ϓϥάΠϯYY   
  16. ༗ݶձࣾҏ౻ιϑτσβΠϯ QMD@NBQQFS@QMVHJOSC DPOpHQMVHJOTQMD@NBQQFSZNM EFTDSJQUJPO1-$" QSPUPDPMND@QSPUPDPM IPTUMPDBMIPTU QPSU JOUFSWBM NBQQJOH SFBE

    QMD.. ME. XSJUF QMD.. ME. GSPN1-$" UP1-$" 7JSUVBM1-$
 ΤϛϡϨʔλʔ σʔλۭؒ UP7JSUVBM1-$ GSPN7JSUVBM1-$ 1-$"
  17. ༗ݶձࣾҏ౻ιϑτσβΠϯ ूΊͨ৘ใ͸Ͳ͜΁ʁ w Ϋϥ΢υଆ͕ωοΫʹͳΔ෦෼ w ࣗ෼Ͱ࡞ΕΕ͹ྑ͍͕ w 3VCZͩͬͨΒ3VCZPO3BJMT΍4JOBUSBͰ w 1-$ٕज़ऀ͸஌ࣝΛ͍࣋ͬͯͳ͍

    w γεςϜ։ൃΛґཔ w ࠷ॳ͸Ͳͷσʔλ͕༗ޮ͔ख୳Γ w ແବʹͳΔ͔΋஌Εͳ͍ w ଟֹͷ։ൃඅ͔͚ΒΕͳ͍ w 8FCαʔϏεΛར༻ w Ұൠతʹར༻͞Ε͍ͯΔ8FCαʔϏεΛ͏·͘׆༻
  18. ༗ݶձࣾҏ౻ιϑτσβΠϯ *P5Ͱظ଴͞ΕΔ͜ͱ w ҟৗͳͲͷ௨஌ w ݟ͑ΔԽ w Քಇঢ়گɺՔಇ཰ w ୡ੒཰

    w Ϧιʔεͷ࢖༻ྔ ిྗɺΤΞʔɺFUDʜ  w ඼࣭ w τϨʔαϏϦςΟ
  19. ༗ݶձࣾҏ౻ιϑτσβΠϯ 8FCαʔϏεΛར༻

  20. ༗ݶձࣾҏ౻ιϑτσβΠϯ ҟৗͳͲͷ௨஌ w *'555Λ׆༻ w JGUUU@QMVHJOSC DPOpHQMVHJOTJGUUUZNM XFC@IPPL@LFZ &/7<*'555@8&#@)00,@,&:> FWFOUT

    OBNFOPUJGZ@BMFSU USJHHFS EFWJDF. UZQFSBJTF QBSBNT WBMVFԹ౓ҟৗ IUUQTJGUUUDPN ΞϓϨοτ 8FC)PPL*'555ΞϓϦ
  21. ༗ݶձࣾҏ౻ιϑτσβΠϯ ݟ͑ΔԽ w άϥϑදࣔ w "NCJFOUΛ׆༻ w BNCJFOU@QMVHJOSC DPOpHQMVHJOTBNCJFOUZNM DIBOOFMT

    DIBOOFM@JE XSJUF@LFZ &/7<".#*&/5@83*5&@,&:> USJHHFS UZQFJOUFSWBM JOUFSWBM EFWJDFT E EFWJDF% IUUQTBNCJEBUBJP
  22. ༗ݶձࣾҏ౻ιϑτσβΠϯ ݟ͑ΔԽ w ঢ়گදࣔ w 5SFMMPΛ׆༻ w USFMMP@QMVHJOSC DPOpHQMVHJOTUSFMMPZNM DPOTVNFS@LFZ

    &/7<53&--0@$0/46.&3@,&:> DPOTVNFS@TFDSFU &/7<53&--0@$0/46.&3@4&$3&5> PBVUI@UPLFO &/7<53&--0@0"65)@50,&/> FWFOUT USJHHFS EFWJDF. UZQFSBJTF CPBSE@OBNF*3#%&.053&--0 MJTU@OBNFӡసத DBSE@OBNF੡଄૷ஔ" USJHHFS EFWJDF. UZQFGBMM CPBSE@OBNF*3#%&.053&--0 MJTU@OBNFఀࢭத DBSE@OBNF੡଄૷ஔ" IUUQTUSFMMPDPN
  23. ༗ݶձࣾҏ౻ιϑτσβΠϯ ඼࣭ w τϨʔαϏϦςΟ w 4MBDLΛ׆༻ w TMBDL@QMVHJOSC EFWJDF@DPNNFOUT .෦ࡐ٧·Γҟৗ

    FWFOUT XFCIPPL@VSM&/7<4-"$,@8&#)00,@63-> USJHHFS UZQFSBJTF@BOE@GBMM GPSNBU SBJTF੡଄૷ஔ"Ͱ@@EFWJDF@DPNNFOU@@͕ൃੜ͠·ͨ͠ɻ @@UJNF@@  GBMM੡଄૷ஔ"Ͱ@@EFWJDF@DPNNFOU@@͕ղআ͞Ε·ͨ͠ɻ @@UJNF@@  EFWJDFT. IUUQTTMBDLDPN
  24. ༗ݶձࣾҏ౻ιϑτσβΠϯ ؔ܎ਤ ઃఆϑΝΠϧ -BEEFS%SJWF Ϋϥ΢υαʔϏε JS#PBSE ͦͷଞͷ ৘ใ ͚ͩ͜͜ͰࡁΉ ෳ਺ͷ1-$͔Β

    ৘ใऩू σʔλۭؒ ϓϥάΠϯ
  25. ༗ݶձࣾҏ౻ιϑτσβΠϯ ·ͱΊ w7JSUVBM1-$Λ࡞ͬͨ w*P5ʹ࢖͑ͦ͏ wϓϥάΠϯػೳ wڞ༗ϝϞϦʹσʔλΛू໿ w1-$ؔ܎ͳͯ͘΋͍͍ wηϯαʔ͔Βͷ஋ͳͲ w8FCαʔϏε΁ͷσʔλૹ৴ wઃఆϑΝΠϧมߋͰΧελϚΠζͰ͖Δ

    wࠓޙ wରԠϓϩτίϧͷछྨ૿΍͢ wϧʔϧͷચ࿅
  26. ༗ݶձࣾҏ౻ιϑτσβΠϯ ͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠