7沼津工業高等専門学校研究報告
第 53 号，2019 年 1 月࣐࢖ࢥࣥࢆ⏝࠸ࡓ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚࡢᏛ⩦ࡢヨࡳ୕㇂♸୍ᮁ 㸪୰⃝᪂࿃ 㸪እᅬ⋹ኸ 㸪す⏤Ꮨኸ 
Learning Activities of Relay Sequence Control by Using MicrocomputerYuuichiroh Mitani*1, Shingo Nakazawa*2, Reo Hokazono*1, Yukio Nishi*3
This relay sequence control class was opened in the later term of 2018. The objective of this classis to learn about basic ways to construct sequence control circuits and make progress in group
work training. It is a common way to learn relay sequence control by using PLC (ProgrammableLogic Controller) but that will require many PLCs and software licenses for all of the groups. It
means that a large amount of expenses would be necessary to have such a way to learn the relay
sequence control. Moreover, since many cables would be needed to connect between the PLC andthe control circuit, it obviously takes a lot of work and time to prepare and use in the class. In
this study, a new way to learn relay sequence control without PLC but by using microcomputeris proposed. It is very low cost and students can learn relay sequence control without having torequire usage of the software and troublesome cable connecting handwork. Students can learn
the basic skills by only using a breadboard, relay, microcomputer, and some commonly usedelectronic components, such as register, capacitor, transistor, LED (Light Emitting Diode), andso on. Other components that would further interest and motivate the class are photoelectric
sensor, motor, and electric buzzer which are also introduced as input or output devices, to get
the best use of the relay sequence control technique. The strong selling point of this study is thatstudents can prepare all of the learning equipment by themselves because the total costs are lessthan only four thousand yen. The software to develop the program for the microcomputer is free.
It can be expected that the class can open up to be interested in not only the relay sequencecontrol but also electric circuits for the students of this class.
Key Words:

Relay sequence control, Problem-based learning, Group work, Microcomputer, Breadboard䠍䠊⥴ゝᡃࡀᅜࡢ⏕⏘ᖺ㱋ேཱྀࡣῶᑡࡢ୍㏵ࢆࡓ࡝ࡗ࡚࠾ࡾ㸪ᾏእ࡟ປാຊࢆồࡵࡊࡿࢆᚓ࡞࠸᫬௦࡟࡞ࡗࡓ㸬ࡑࢀ࡟క࠸⏕⏘ไᚚᶵჾ࡟㛵ࡍࡿᑓ㛛▱㆑ࡔࡅ࡛ࡣ࡞ࡃ㸪ࢢ࣮ࣝࣉ࣮࣡ࢡࢆ
㏻ࡌ࡚ࢥ࣑ࣗࢽࢣ࣮ࢩࣙࣥ⬟ຊࡶྥୖࡉࡏࡿ஦ࢆ≺ࡗ࡚࠸ࡿ㸬ẖᖺ⤊஢ᚋ࡟࢔ࣥࢣ࣮ࢺࢆྲྀࡗ࡚࠾ࡾ㸪㧗࠸ᩍ⫱ຠᯝࡀ☜ㄆࡉࢀ࡚࠸ࡿ[1] [2] [3]㸬⌧ሙ࡛ࡣ㸪ࣟ࣎ࢵࢺ࡞࡝ࡢᑟධ࡟ࡼࡿ⮬ື໬ࡀ㐍ࡳ㸪ᕤሙෆ἟ὠ㧗ᑓᶵᲔᕤᏛ⛉࡟࠾࠸࡚ࡶ㸪2013 ᖺᗘࡼࡾ 5 ᖺḟࡢࡢ⏕⏘ᶵჾࡢไᚚ࡟⏝࠸ࡿ PLC (Programmable Logic㑅ᢥ⛉┠ࠕ࣓࢝ࢺࣟࢽࢡࢫࠖ࡟࡚࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᩍController) ࡣ௒ᚋࡲࡍࡲࡍ฼⏝ྎᩘࡀቑຍࡋ㸪㧗㏿࣭㧗ᶵ⬟⫱ࢆ㛤ጞࡋࡓ㸬2014 ᖺᗘ࡟ࡣ㸪඲ 2 ᖺ⏕ᑐ㇟ࡢ࣑ࢽ◊✲࡟࠾໬ࡋ࡚࠸ࡃ࡜ᛮࢃࢀࡿ㸬࠸࡚㸪
ࠕPLC ࢆ⏝࠸ࡓไᚚࢩࢫࢸ࣒ࡢᵓ⠏ࠖ࡜࠸࠺ࢱ࢖ࢺࣝ㧗ᑓᶵᵓࡣ࣒࢜ࣟࣥᰴᘧ఍♫㸦௨ୗ㸪࣒࢜ࣟࣥ࡜⛠ࡍ㸧࡜࡛ PLC ࢆ⮬୺ⓗ࡟Ꮫࡪᩍ⫱άືࢆጞࡵࡓ㸬࣑ࢽ◊✲࡜ࡣ㸪἟㐃ᦠࡋ㸪2011 ᖺᗘࡼࡾ඲ᅜ㧗ᑓ⏕ࢆᑐ㇟࡜ࡋࡓࠕไᚚᢏ⾡ᩍὠ㧗ᑓ࡟ᡤᒓࡍࡿ඲ᩍဨࡀ㸪Ꮫ⛉࡟㛵ಀ࡞ࡃ 3 ྡࡢᏛ⏕࡟ᑐ⫱࢟ࣕࣥࣉࠖࢆ㛤ጞࡋࡓ㸬ࡇࢀࡣ㸪᪂ᆺࡢ PLC ࢆࡣࡌࡵ࡜ࡍࡋ㸪⊂⮬ࡢࢸ࣮࣐࡟㛵ࡋ࡚⮬୺ⓗ࡟Ꮫ⩦ࡍࡿࢫࢱ࢖ࣝࡢ⛉┠ࡿ㧗ᶵ⬟࡞ไᚚᶵჾࢆ」ᩘά⏝ࡋ㸪Ꮫ⏕ࡀ࣐ࢽࣗ࢔ࣝࡸཧ⪃࡛࠶ࡿ㸬
ࠕPLC ࢆ⏝࠸ࡓไᚚࢩࢫࢸ࣒ࡢᵓ⠏ࠖ࡟㓄ᒓࡀỴࡲ᭩ࢆ⏝࠸࡚Ꮫ⩦ࡋ࡞ࡀࡽ୚࠼ࡽࢀࡓㄢ㢟ࢆゎỴࡍࡿ㸪PBL

ࡗࡓ 3 ྡࡢᏛ⏕ࡣ㸪ࡲࡎ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚࡢᇶ♏ࢆᏛ(Problem Based Learning) ᙧᘧࡢᩍ⫱άື࡛࠶ࡿ㸬㧗ᑓࡢ⩦ࡋ㸪ࡑࡢᚋ PLC ࢆࡣࡌࡵ࡜ࡍࡿไᚚᶵჾࡢ౑࠸᪉ࢆ⮬୺ኟᏘఇᴗᮇ㛫ࢆ฼⏝ࡋ㸪␗࡞ࡿ㧗ᑓࡢᏛ⏕ྠኈࡀࢢ࣮ࣝࣉࢆᏛ⩦ࡍࡿ㸬ࡑࡋ࡚ࡑࢀࡽࡢ▱㆑ࢆά⏝ࡋ㸪⮬⏤࡞Ⓨ᝿࡛ไᚚసࡗ࡚࠾ࡼࡑ 1 㐌㛫㸪᫨ኪࢆၥࢃࡎㄢ㢟ゎỴ࡟ྲྀࡾ⤌ࡴ㸬ࢩࢫࢸ࣒ࢆ㸪ࣁ࣮ࢻ࢙࢘࢔࣭ࢯࣇࢺ࢙࢘࢔ඹ࡟〇సࡋ࡚㸪࣑2018 ᖺᗘࡲ࡛ࡢ 8 ᖺ㛫⥅⥆ࡋ࡚ᐇ᪋ࡋ࡚࠾ࡾ㸪ཧຍᏛ⏕ࡢ㸪ࢽ◊✲ࡢⓎ⾲఍࡟࡚ࡑࡢࢹࣔࣥࢫࢺ࣮ࣞࢩࣙࣥ࠾ࡼࡧㄝ᫂ࢆ⾜ࡗࡓ㸬2018 ᖺᗘࡲ࡛ 5 ᖺ㛫⥅⥆ࡋ࡚ྠࡌࢱ࢖ࢺ࡛ࣝᐇ᪋

*1 ᶵᲔᕤᏛ⛉ Department of 0HFKDQLFDO(QJLQHHULQJࡋࡓ⤖ᯝ㸪ཧຍࡋࡓᏛ⏕ࡣ౛እ࡞ࡃ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚ

*2 ᢏ⾡ᐊ Technical Support Division࡟⯆࿡ࢆᣢࡕ㸪࡞࠿࡟ࡣᑗ᮶㸪PLC ࢆ⏝࠸ࡿᴗົ࡟ᦠࢃࡾࡓ

*3 ࣒࢜ࣟࣥᰴᘧ఍♫ 2PURQ&RUSRUDWLRQ࠸࡜ᕼᮃࡍࡿᏛ⏕ࡶ⌧ࢀࡓ[4]㸬

8

沼津工業高等専門学校研究報告

第 53 号ࡲࡓ㸪ྠ 2014 ᖺᗘ㸪἟ὠ㧗ᑓ࡟࡚⛅࡟ᐇ᪋ࡉࢀࡿࠕ୰Ꮫ

࠿ࡽ 11 㐌࡛㸪Ꮫࢇࡔࡇ࡜ࢆࡶ࡜࡟㸪ྛࢢ࣮ࣝࣉ࡛⊂⮬ࡢไᚚ⏕ࡢࡓࡵࡢయ㦂ᤵᴗࠖ࡟࠾࠸࡚㸪PLC ࡸ࣮ࣜࣞࢆά⏝ࡋࡓࠕ⏕ᅇ㊰ࢆ〇స㸪᭱⤊㐌࡛࠶ࡿ➨ 12 㐌࡟ࡑࡢⓎ⾲఍ࢆᐇ᪋ࡍࡿ㸬⏘ࢩࢫࢸ࣒࡟⏝࠸ࡽࢀࡿไᚚᢏ⾡ࢆయ㦂ࡋࡼ࠺ࠖ࡜࠸࠺ࢱ࢖ᤵᴗ࡛⏝࠸ࡿ㟁Ꮚࣃ࣮ࢶ➼ࡣ㸪ࡑࡢ㒔ᗘᩍဨᐊ࠿ࡽᩍᐊ࡬㐠ࢺࣝࡢయ㦂ᤵᴗࢆ㛤ጞࡋࡓ㸬ᐃဨ 20 ྡ࡛ 2018 ᖺᗘࡲ࡛ 5 ᖺ

ࡧ㎸ࢇ࡛ᤵᴗࢆᐇ᪋ࡋࡓ㸬㛫⥅⥆ࡋ࡚ᐇ᪋ࡋ࡚࠾ࡾ㸪᥎⸀ධᏛ࡛ࡣ㸪ᮏయ㦂ᤵᴗࢆཷࡅࡓࡇ࡜ࡀࡁࡗ࠿ࡅ࡛ᮏᰯࢆᚿᮃࡋࡓཷ㦂⏕ࡀ⌧ࢀࡓ㸬⩣ 2015ᖺᗘ࠿ࡽࡣ㸪㧗ᑓ⚍࡟࠾ࡅࡿࠕ࣑ࢽయ㦂ᤵᴗࠖ㸪2018 ᖺᗘ࡟ࡣ㸪୍᪥య㦂ධᏛࡢࠕኟࡢయ㦂ᤵᴗࠖ࡟࠾࠸࡚ࡶྠᵝࡢయ㦂ᤵᴗࢆ㛤ጞࡋ㸪࠸ࡎࢀࡶཧຍࡋࡓ୰Ꮫ⏕ࡸಖㆤ⪅࠿ࡽࡶ㸪࡜࡚ࡶ⯆࿡῝࠸ᤵᴗ࡛࠶ࡗࡓ࡜ࡢឤ᝿ࡀᐤࡏࡽࢀࡓ[5] [6]㸬ࡉࡽ࡟ 2017 ᖺᗘ࡟ࡣ㸪ྠ୍ࡢไᚚᶵჾࢆά⏝ࡋ㸪5 ᖺḟࡢ๓ᮇ⛉┠ࠕࢩࢫࢸ࣒ไᚚᕤᏛᇶ♏ࠖ࡟࠾࠸࡚㸪PLC ࢆ⏝࠸ࡓDC ࣮ࣔࢱࡢ PID ไᚚჾࡢタィ࡜ᐇ⿦࠾ࡼࡧᐇ㦂ࢆ㸪࢔ࢡࢸ࢕ࣈ࣮ࣛࢽࣥࢢᙧᘧ࡛㛤ጞࡋࡓ㸬୺యⓗ࡟ᏛࢇࡔᏛ⏕ࡣ㸪
PLC ࡢά⏝᪉ἲࡀ☜ᐇ࡟⩦ᚓ࡛ࡁࡓ࡜࠸࠺ᐇឤࡀᚓࡽࢀࡓࡼ࠺࡛࠶ࡿ[7]㸬௨ୖࡢᐇ⦼࠿ࡽ㸪࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚࡣ♫఍࡟࠾࠸࡚ᚲ㡲ࡢไᚚᢏ⾡࡜࡞ࡗ࡚࠸ࡿࡔࡅ࡛ࡣ࡞ࡃ㸪Ꮫ⏕࡟࡜ࡗ࡚ࡶ⮬୺ⓗ࡟Ꮫ⩦ࡋࡸࡍࡃ㨩ຊⓗ࡞ᢏ⾡࠶ࡿ࡜ゝ࠼ࡿ㸬ࡑࡇ࡛2018 ᖺᗘࡢᚋᮇࡼࡾ㸪ᶵᲔᕤᏛ⛉ 1 ᖺ⏕ࢆᑐ㇟࡜ࡋ࡚㸪ࠕᕤᏛᇶ♏ IIࠖ࡟࠾࠸࡚㸪࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᩍ⫱ࢆ㛤ጞࡋࡓ㸬ࡓࡔࡋㅖ஦᝟ࡼࡾ㸪἟ὠ㧗ᑓࡀಖ᭷ࡍࡿከᩘࡢࢥࣥࣆ࣮ࣗࢱࡀ౑⏝࡛ࡁࡿᩍᐊࢆ฼⏝ࡍࡿࡇ࡜ࡀᅔ㞴࡞ࡓࡵ㸪ㅮ⩏ࢆ⾜ࡗ࡚࠸ࡿ࣮࣒࣮࣒࡛࣍ࣝࡢᐇ᪋࡜࡞ࡗࡓ㸬ࡍ࡞ࢃࡕ㸪ࣉࣟࢢ࣑ࣛࣥࢢࢆせࡍࡿ PLC ࡀ฼⏝࡛ࡁ࡞࠸㸬ࡑࡇ࡛㸪࣐࢖ࢡࣟࢥࣥࣆ࣮ࣗࢱ࡟ PLC ࡜ྠᵝࡢࢱ࢖࣐ࡸ࢝࢘ࣥࢱࡢᶵ⬟ࢆᣢࡓࡏ㸪PLC ࡢ௦⏝࡜ࡋࡓ㸬ࡲࡓ㸪9㹔ࡢ஝㟁ụࢆ⏝࠸ࡿࡇ࡜࡛㟁※ࢥࣥࢭࣥࢺࢆ୙せ࡜ࡋࡓ㸬ࡇࢀࡽࡢᕤኵ࡟ࡼࡾ㸪┬ࢫ

[➨ 1 㐌]ࢢ࣮ࣝࣉศࡅ㸪౑⏝ᶵჾࡢ㓄௜ࢩ࣮ࢣࣥࢫไᚚࡢᴫせ㸦ㅮ⩏㸧12 㐌ࡢᐇ᪋ෆᐜࡢ⤂௓౑⏝ᶵჾࡢྡ⛠࣭ᙺ๭ࣈࣞࢵࢻ࣮࣎ࢻࡢ౑࠸᪉㸪㟁Ꮚࣃ࣮ࢶࡢ㓄⥺᪉ἲࢱࢡࢺࢫ࢖ࢵࢳ࡜ LED ࢆ⏝࠸ࡓ AND࣭OR ᅇ㊰[➨ 2 㐌]࣮ࣜࣞࢆ⏝࠸ࡓ a ᥋Ⅼ㸪b ᥋Ⅼ࣮ࣜࣞ࡟ࡼࡿ㸪ࣈࢨ࣮ࡸ࣮ࣔࢱࡢ㥑ືᛂ⏝ၥ㢟㸸ࢥ࢖ࣥࣃ࣮࢟ࣥࢢᅇ㊰ࡢసᡂ⮬ᕫಖᣢᅇ㊰㸦ࢭࢵࢺ࣭ࣜࢭࢵࢺඃඛ㸧[➨ 3 㐌]ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡢཎ⌮ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡢࢫ࢖ࢵࢳ࡜ࡋ࡚ࡢ฼⏝ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧ࡟ࡼࡿ࣮ࣔࢱࡢ㉳ື[➨ 4 㐌]࣐࢖ࢥࣥࡢᴫせࢱ࢖࣐࣭࢝࢘ࣥࢱᅇ㊰࣐࢖ࢥࣥ࡟ࡼࡿࢱ࢖࣐࣭࢝࢘ࣥࢱ

ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡢ᳨▱ᅇᩘࡢ࢝࢘ࣥࢺᅇ㊰[➨ 5㹼7 㐌]࣮࣌ࢫ࣭పࢥࢫࢺࡢᩍᮦ࡜ࡍࡿࡇ࡜ࡀ࡛ࡁ㸪ᬑẁࡢᤵᴗ࡛⏝࠸࡚࠸ࡿᏛ⏕⏝ᮘࡢࢫ࣮࣌ࢫࢆ⏝࠸ࡓ㸪஧ே୍⤌ࡢࢢ࣮ࣝࣉ
࣮࣡ࢡࡀྍ⬟࡜࡞ࡗࡓ㸬ᮏሗ࡛ࡣ㸪ᤵᴗ࡛⏝࠸ࡿไᚚᩍᮦ࡟
ࡘ࠸࡚⤂௓ࡋ㸪ࡇࡇ࡛ᥦ᱌ࡍࡿᩍᮦࡢ᭷ຠᛶ࡟ࡘ࠸᳨࡚ウࡍࡿࡇ࡜ࢆ┠ⓗ࡜ࡍࡿ㸬ᮏᤵᴗࢆᐇ᪋ࡍࡿࠕᕤᏛᇶ♏ IIࠖࡣ㏻ᖺ⛉┠࡛࠶ࡾ㸪2017ᖺᗘ࠿ࡽࡣ㸪పᏛᖺ࠿ࡽᑓ㛛ᩍ⫱ࢆᐇ᪋ࡍࡿ࡭ࡁ࡛࠶ࡿ࡜࠸
࠺ྜពࡀ࡞ࡉࢀ㸪ᚋᮇࡢ 15 ᅇࡣྛᏛ⛉࡛ࡢᐇ᪋࡟ኚ᭦ࡉࢀ
ࡓ㸬ࡑࡇ࡛㸪᭱ึࡢ 3 ᅇศࡣ࢚ࢿࣝࢠ࣮㛵ಀࡢㅮ⩏ࡸࢫࢱ࣮ࣜࣥࢢ࢚ࣥࢪࣥࡢᶍᆺࢆ⏝࠸ࡓᐇ⩦ࡀᐇ᪋ࡉࢀ㸪ṧࡾ 12 ᅇࡀ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚࡢᤵᴗ࡟඘࡚ࡽࢀࡿࡇ࡜࡜࡞ࡗࡓ㸬௨ୗ࡟㸪12 ᅇࡢᤵᴗࡢ୺࡞ෆᐜ࠾ࡼࡧᐇ᪋᪉ἲࢆ⤂௓ࡍࡿ㸬➨ 1 㐌࠿ࡽ 4 㐌ࡲ࡛ࡣ㸪ᇶ♏ⓗ࡞▱㆑ࡢ⩦ᚓ㸪➨ 5 㐌࠿ࡽ
7 㐌࡟㸪୚࠼ࡽࢀࡓㄢ㢟ࢆ㐩ᡂࡍࡿᅇ㊰ࡢసᡂ⦎⩦㸪➨ 8 㐌(1)࣮ࣔࢱࡢṇ㏫㌿ᅇ㊰(2)࢖ࣥࢱࣟࢵࢡᅇ㊰(3)⮬ືࢩࣕࢵࢱ࣮௜࣮࢞ࣞࢪ

(4)┬࢚ࢿ࢚ࢫ࣮࢝ࣞࢱ

[➨ 8 㐌]㻞䠊ᤵᴗᵓᡂᖺᗘࡲ࡛ࡣ඲Ꮫ⛉ྠ୍ࡢෆᐜࢆᐇ᪋ࡋ࡚࠸ࡓ㸬ࡋ࠿ࡋ 2018ㄢ㢟ᅇ㊰ࡢసᡂ⮬సไᚚᅇ㊰ࡢ᳨ウ(1)᝿ᐃࡍࡿࢩ࣮ࢣࣥࢫไᚚࡢ⪃᱌

(2)

ᅇ㊰ᅗసᡂ

(3)

㓄⥺ᅗసᡂ

[➨ 9㹼11 㐌]⮬సไᚚᅇ㊰ࡢసᡂ࠾ࡼࡧືసࢸࢫࢺ

[➨ 12 㐌]⮬సไᚚᅇ㊰ࡢⓎ⾲఍࠾ࡼࡧホ౯㻟䠊౑⏝ᶵჾ䛸ᵓᡂ௨ୗ࡟㸪ྛ⌜࡟㓄௜ࡋࡓ㟁Ꮚࣃ࣮ࢶ➼ࡢࣜࢫࢺࢆ♧ࡍ㸬
PSoC ࣐࢖ࢥࣥࡢᐃ᱁㟁ᅽࡀ 5V ࡢࡓࡵ㸪㟁Ꮚࣃ࣮ࢶࡣ 5V ௙マイコンを用いたリレー・シーケンス制御の学習の試み

9ᵝ࡛㑅ᐃࡋࡓ㸬ࡲࡓ DC ࣮ࣔࢱࡣ㸪༢ 3 ஝㟁ụࢆ⏝࠸ࡓู㟁※࡟ࡼࡾ㥑ືࡋࡓ㸬DC ࣮ࣔࢱࡸࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧ㸪༢
3 㟁ụࢯࢣࢵࢺࡣ㸪ࡑࢀࡽࡢࢣ࣮ࣈࣝࢆࣈࣞࢵࢻ࣮࣎ࢻ࡟᥋
⥆ࡋࡸࡍࡃࡍࡿࡓࡵ࡟Წ➃Ꮚࢆᅽ╔ࡋ㸪➃Ꮚྎ࡟ᤄධࡋ࡚౑
⏝ࡋࡓ㸬ྜィ㔠㢠ࡣ㸪1 ࢭࢵࢺ⣙ 4 ༓෇࡛࠶ࡿ㸬࡞࠾㸪ࣃ࣮ࢶࡀᨾ㞀ࡸ◚ᦆ㸪ࡲࡓࡣ⮬సᅇ㊰సᡂ᫬࡟㒊ရࡀ୙㊊ࡍࡿሙྜ࡟ഛ࠼㸪ணഛࡢࣃ࣮ࢶࢆู࡟‽ഛࡋࡓ㸬⾲ 1 ౑⏝≀ရࣜࢫࢺ
No.
1
2
3
4
5
6
7
8
910
111213
14
15
16
1718
19
2021

ရྡ
ࣈࣞࢵࢻ࣮࣎ࢻ
PSoC ࣐࢖ࢥࣥ
࣮ࣜࣞ㟁Ꮚࣈࢨ࣮ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧ
DC ࣮ࣔࢱLEDࢱࢡࢺࢫ࢖ࢵࢳ
ᅛᐃ᢬ᢠ
9V ஝㟁ụ9V ஝㟁ụ⏝ࢫࢼࢵࣉ
1.5V ༢ 3 ஝㟁ụ༢ 3 ஝㟁ụ࣎ࢵࢡࢫ㟁ゎࢥࣥࢹࣥࢧ✚ᒙࢭ࣑ࣛࢵࢡࢥࣥࢹࣥࢧࢲ࢖࣮࢜ࢻ
3 ➃Ꮚࣞࢠ࣮ࣗࣞࢱ
ࢪࣕࣥࣃ⥺࣐࢖ࢼࢫࢻࣛ࢖ࣂࣆࣥࢭࢵࢺ➃Ꮚྎಶᩘ

1121111616
20
11111
121100112

ᅗ 2 2 ⌜ศࡢࣃ࣮ࢶ
1 kg ࡛࠶ࡿ㸬1 ಶࡢࣃ࣮ࢶ࣎ࢵࢡࢫ࡟ࡣ 2 ⌜ศࡢࣃ࣮ࢶ㢮ࡀධࡗ࡚࠸ࡿ㸬4 ேࡢᮘࢆྜࢃࡏ࡚ 1 ࡘࡢᓥࢆసࡾ㸪2 ࡘࡢ⌜ࡀඹྠ࡛ 1 ࡘࡢࢶ࣮ࣝ࣎ࢵࢡࢫࢆ౑⏝ࡍࡿ㸬㸬䝬䜲䝁䞁䜢⏝䛔䛯䝍䜲䝬䞉䜹䜴䞁䝍ࡇࡇ࡛ࡣ PLC ࡢ௦ࢃࡾ࡟㸪PSoC ࣐࢖ࢥࣥࢆ⏝࠸࡚ࢱ࢖࣐
ࡸ࢝࢘ࣥࢱࢆ฼⏝ࡋࡓࢩ࣮ࢣࣥࢫไᚚᅇ㊰ࢆᵓ⠏ࡍࡿ㸬ࡓࡔࡋ㸪ᑗ᮶ⓗ࡟Ꮫ⏕ࡀ PLC ࡟ࡼࡿࢩ࣮ࢣࣥࢫไᚚࢆᏛ⩦ࡍࡿ㝿㸪㐪࿴ឤ࡞ࡃᢅ࠼ࡿࡼ࠺࡟ᕤኵࡍࡿ㸬ࡘࡲࡾ㸪࣐࢖ࢥࣥ࡟
ࡣ PLC ࡀᣢࡘࢱ࢖࣐ࡸ࢝࢘ࣥࢱ࡟㏆࠸ᶵ⬟ࢆᣢࡓࡏࡓ㸬౛࠼ࡤࢱ࢖࣐ࡣ㸪࣐࢖ࢥࣥࡢỴࡵࡽࢀࡓධຊ࣏࣮ࢺࡀ high(5V)࡛ಖᣢࡋ⥆ࡅࡿ࡜ィ᫬ࡋ㸪タᐃ᫬㛫࡟㐩ࡍࡿ࡜ࢱ࢖࣐ࡣィ᫬ࢆ೵Ṇ㸪ィ᫬⤊஢ࢆ♧ࡍ࣏࣮ࢺࡀ high ࡟࡞ࡿ㸬ࢱ࢖࣐ࡢධຊ࣏࣮ࢺࡀࢃࡎ࠿࡞᫬㛫࡛ࡶ low ࡟࡞ࡿ࡜㸪ィ᫬୰࡛ࡶࢱ࢖࣐ࡣ೵Ṇࡋ࡚ࣜࢭࢵࢺࡋ㸪ィ᫬⤊஢ࡢ࣏࣮ࢺࡶ low ࡟࡞ࡿ㸬࡞࠾㸪ࡇࡇ࡛タᐃ࡛ࡁࡿࢱ࢖࣐ࡢ᫬㛫ࡣ⛊༢఩࡛࠶ࡿ㸬࢝࢘ࣥࢱࡣ㸪࣐࢖ࢥࣥࡢධຊ࣏࣮ࢺࡀ high ࡟࡞ࡿᗘ࡟࢝࢘ࣥࢺࡋ㸪タᐃᅇᩘ࡟㐩ࡍࡿ࡜࢝࢘ࣥࢺࡣ೵Ṇ㸪࢝࢘ࣥࢺ⤊஢ࢆ♧ࡍ࣏࣮ࢺࡀ high ࡟࡞ࡿ㸬࣐࢖ࢥࣥࡢࣜࢭࢵࢺධຊ➃Ꮚࡀ high ࡟࡞ࡗࡓ࡜ࡁ㸪࢝࢘ࣥࢱࡣタᐃᅇᩘ࡟㐩ࡋ࡚࡞ࡃ࡚ࡶࣜࢭࢵࢺࡋ㸪࢝࢘ࣥࢺ⤊஢ࡢฟຊಙྕࡶ low ࡜࡞ࡿ㸬࡞࠾㸪ࢱ࢖࣐㸪࢝࢘ࣥࢱඹ࡟ࢱࢡࢺࢫ࢖ࢵࢳࢆ⏝࠸࡚タᐃࡋ㸪᭱኱ 3 ࣅࢵࢺ㸪ࡘࡲࡾ 1㹼7 ࡢ㛫࡛タᐃྍ⬟࡛࠶ࡿ㸬ࡲࡓ㸪タᐃ್࠾ࡼࡧィ᫬᫬㛫㸪࢝࢘ࣥࢺᩘࡣࡍ࡭࡚ LED ࡛ 3ࣅࢵࢺ⾲♧࡛ࡁࡿ㸬ࡇࡇ࡛⏝࠸ࡓ࣐࢖ࢥࣥࡣ㸪ධฟຊ࣏࣮ࢺࢆ㒔ྜࡢⰋ࠸఩⨨࡟タᐃྍ⬟࡞ PSoC (Programmableᅗ 1 ࣃ࣮ࢶ࣎ࢵࢡࢫ

System-on-Chip) ࣐࢖ࢥࣥࢆ⏝࠸ࡓ㸬ᆺᘧࡣ CY8C2744324PXI ࡛࠶ࡾ㸪8 ࣅࢵࢺ㸪᭱㧗ࢡࣟࢵࢡ࿘Ἴᩘ 24 MHz㸪ࣉࣟࢢ࣒࣓ࣛࣔࣜ 16 KB ࡛࠶ࡿ㸬ࣉࣟࢢ࣒ࣛࡢ᫬㛫⟶⌮ࡣ

ᅗ 1 ࡟㸪⌜ࡢᩘࡔࡅ‽ഛࡋࡓࣃ࣮ࢶ࣎ࢵࢡࢫࢆ㸪ᅗ 2 ࡟㸪Timer ࣔࢪ࣮ࣗࣝࢆ฼⏝ࡋ㸪ࢧࣥࣉࣜࣥࢢࢱ࢖࣒ࡣ 10 msec

ࡑࡢ୰㌟ࢆ♧ࡍ㸬ࣃ࣮ࢶ࣎ࢵࢡࢫࡢࢧ࢖ࢬࡣ㸪22029060

࡟タᐃࡋࡓ㸬ࢱࢡࢺࢫ࢖ࢵࢳࢆ౑⏝ࡍࡿ㝿ࡢࢳࣕࢱࣜࣥࢢ࡟

mm㸪౑⏝ࡍࡿࡍ࡭࡚ࡢࣃ࣮ࢶࢆ୰࡬ධࢀࡓ㝿ࡢ㔜ࡉࡣ㸪⣙ࡘ࠸࡚ࡣ㸪ࢯࣇࢺ࢙࢘࢔࡟࡚ᑐ⟇ࢆ᪋ࡋࡓ㸬

10

沼津工業高等専門学校研究報告

第 53 号

ࢺ t-in ࡀ high ࡟࡞ࡗ࡚࠸ࡿ㛫ࡢࡳࢱ࢖࣐ࡣィ᫬ືసࢆ⾜㸬సᡂ䛧䛯ᅇ㊰䛚䜘䜃ືస࠺㸬ࡲࡓ㸪ィ᫬ࡀ⤊஢ࡋࡓࡽ࣏࣮ࢺ t-out ࡀ high ࡟࡞ࡿ㸬t-in ࡢධຊࡀ low ࡟࡞ࡿ࡜㸪ࢱ࢖࣐ࡀࣜࢭࢵࢺࡉࢀ㸪ྠ᫬࡟㸳㸬㸯 ᇶ♏ᅇ㊰ࡲࡎ㸪ࢩ࣮ࢣࣥࢫไᚚࢆᵓᡂࡍࡿࡓࡵࡢ㸪ᇶ♏ⓗ࡞ᅇ㊰࠾ࡼࡧࡑࡢືసࢆ௨ୗ࡟♧ࡍ㸬ᤵᴗ࡛ࡣ㸪ࡇࢀࡽࡢᅇ㊰ࡣᚲಟㄢ㢟࡜ࡋ࡚୎ᑀ࡟ᣦᑟࡍࡿ㸬Ꮫ⏕ࡣ㸪ࡇࡇ࡟♧ࡍᇶ♏ᅇ㊰ࢆ⤌ࡳྜࢃࡏࡿࡇ࡜࡛㸪㸳㸬㸰⠇ࡢᛂ⏝ㄢ㢟࡟ᣮᡓࡋ㸪ࢩ࣮ࢣࣥࢫไᚚ࡟㛵ࡍࡿ⌮ゎࢆ῝ࡵࡿ㸬t-out ࡀ low ࡟࡞ࡿ㸬3) ࣐࢖ࢥࣥ࡟ࡼࡿ࢝࢘ࣥࢱᅇ㊰ࢱ࢖࣐ྠᵝ㸪2 ಶࡢࢱࢡࢺࢫ࢖ࢵࢳ࡟ࡼࡾ㸪࢝࢘ࣥࢱࡢタᐃ࣭⤊஢ࡢษࡾ᭰࠼㸪タᐃ್ࡢධຊࢆ⾜࠺㸬࢝࢘ࣥࢱࡢタᐃ್࠾ࡼࡧ࢝࢘ࣥࢺ್ࡣ㸪3 ಶࡢ LED ࢆ⏝࠸࡚ 2 㐍ᩘ⾲♧ࡍ1) 㟁※ᅇ㊰ࡿࡇ࡜࡛ᢕᥱ࡛ࡁࡿࡼ࠺࡟ࡋࡓ㸬ᅗ 5 ࡟ᅇ㊰ࢆ♧ࡍ㸬㟁※㟁ᅽࡢᐃ᱁ࡀ 5V ࡢ PSoC ࣐࢖ࢥࣥࢆ㥑ືࡍࡿࡓࡵタᐃ㛤ጞ࣭⤊஢ࢫ࢖ࢵࢳ SW1 ࢆ 1 ᅇᢲࡋ࡚タᐃࢆ㛤ጞ࡟㸪9V ஝㟁ụࢆ౑⏝ࡍࡿ㸬᪂᪥ᮏ↓⥺ࡢ୕➃Ꮚࣞࢠ࣮ࣗࣞࡍࡿ࡜㸪ୗ୍᱆ࡢ LED1 ࡀⅬⅉࡍࡿ㸬ࡍ࡞ࢃࡕࢹࣇ࢛ࣝࢺ

ࢱ NJM7805FA ࢆ⏝࠸࡚ 9V ࢆ 5V ࡟ኚ᥮ࡍࡿ㸬㟁ὶࡣ 1A

࡛ࡣ 1 ᅇࡀタᐃࡉࢀ࡚࠸ࡿ㸬タᐃ್ධຊ⏝ࢫ࢖ࢵࢳ SW2 ࢆ⛬ᗘ࡞ࡽၥ㢟࡞ࡃྲྀࡾฟࡏࡿ㸬ᅗ 3 ࡟㟁※ᅇ㊰ࢆ♧ࡍ㸬ධฟ1 ᅇᢲࡍẖ࡟タᐃ್ࡀ 1 ࡎࡘຍ⟬ࡉࢀ㸪7 ᅇࡲ࡛タᐃྍ⬟࡛ຊ➃Ꮚ࡟ࡑࢀࡒࢀ㟁ᅽࡢᏳᐃ໬ࡢࡓࡵ࡟㸪0.1 PF ✚ᒙࢭࣛ࠶ࡿ㸬෌ᗘࢫ࢖ࢵࢳ SW1 ࢆᢲࡋ࡚タᐃࢆ⤊஢ࡋࡓᚋ㸪࣑࢝࢘ࢵࢡࢥࣥࢹࣥࢧ࠾ࡼࡧ㸪10 PF ࡢ㟁ゎࢥࣥࢹࣥࢧࢆ᥋⥆ࡋࣥࢺධຊ࣏࣮ࢺ C-in ࡀ high ࡟࡞ࡿᗘ࡟࢝࢘ࣥࢺືసࢆ⾜ࡓ㸬㟁※౪⤥᫬࡟ࡣ LED ࢆⅬⅉࡉࡏࡓ㸬࠸㸪࢝࢘ࣥࢺ್ࡀタᐃ್࡟㐩ࡋࡓࡽ࢝࢘ࣥࢱࡣ೵Ṇ㸪C-outࡀ high ࡟࡞ࡿ㸬ࣜࢭࢵࢺಙྕධຊ࣏࣮ࢺ reset ࡀ high ࡟࡞ࡿ࡜㸪࠸ࡘ࡛ࡶ࢝࢘ࣥࢱࡣࣜࢭࢵࢺࡋ㸪C-out ࡣ low ࡟࡞INGND
OUT7805

ࡿ㸬
OUT+5V

9V
BATTERY

R
0.1μF

10μF

15k+5VSW1SW2

LED
P0_7

VDD

P0_5P0_3ᅗ 3 㟁※ᅇ㊰

P0_1c-out
RR15K2) ࣐࢖ࢥࣥ࡟ࡼࡿࢱ࢖࣐ᅇ㊰2 ಶࡢࢱࢡࢺࢫ࢖ࢵࢳ࡟ࡼࡾ㸪ࢱ࢖࣐ࡢタᐃ㛤ጞ࣭⤊஢ࡢษࡾ᭰࠼㸪タᐃ್ࡢධຊࢆ⾜࠺㸬ࢱ࢖࣐ࡢタᐃ್࠾ࡼࡧィ᫬୰ࡢ᫬㛫ࡣ㸪3 ಶࡢ LED ࢆ⏝࠸࡚ 2 㐍ᩘ⾲♧ࡍࡿࡇ࡜࡛ᢕᥱ࡛ࡁࡿࡼ࠺࡟ࡋࡓ㸬ᅗ 4 ࡟ࢱ࢖࣐ᅇ㊰ࢆ♧ࡍ㸬タᐃ㛤ጞ࣭⤊஢ࢫ࢖ࢵࢳ SW1 ࢆ 1 ᅇᢲࡋ࡚タᐃࢆ㛤ጞࡍࡿ࡜㸪ୗ୍᱆ࡢ LED1 ࡀⅬⅉࡍࡿ㸬ࡍ࡞ࢃࡕࢹࣇ࢛ࣝࢺ
࡛ࡣ 1 ⛊ࡀタᐃࡉࢀ࡚࠸ࡿ㸬タᐃ್ධຊ⏝ࢫ࢖ࢵࢳ SW2 ࢆ1 ᅇᢲࡍẖ࡟タᐃ್ࡀ 1 ࡎࡘຍ⟬ࡉࢀ㸪7 ⛊ࡲ࡛タᐃྍ⬟࡛࠶ࡿ㸬ࢫ࢖ࢵࢳ SW1 ࢆ෌ᗘᢲࡋࡓᚋ㸪ࢱ࢖࣐ಙྕධຊ࣏࣮

LED1

R
15K

LED2

P2_7
P2_5
P2_3c-in

15K

P2_1

resetVssPSoC

LED3ᅗ 5 ࣐࢖ࢥࣥ࡟ࡼࡿ࢝࢘ࣥࢱᅇ㊰4) ࣐࢖ࢥࣥ࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰ᅗ 6 ࡟㸪࣐࢖ࢥࣥ࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰ࢆ♧ࡍ㸬ࡇࡇ࡛⏝࠸ࡓ࣮ࣜࣞࡣ㸪࣒࢜ࣟࣥࡢᙧ G5V-2 ࡛࠶ࡾ㸪ࢥ࢖ࣝࡢᐃ᱁ࡀ DC5V㸪40 mA ࡛࠶ࡿ㸬୍᪉ PSoC ࣐࢖ࢥࣥࡢ࣏࣮ࢺ࠿ࡽࡢࢯ࣮ࢫ㟁ὶࡣ 10 mA ࡞ࡢ࡛㸪࣐࢖ࢥࣥ࠿ࡽࡢಙྕ
࡟ࡼࡾ┤᥋࣮ࣜࣞࢆ㥑ືࡍࡿࡇ࡜ࡣ࡛ࡁ࡞࠸㸬ࡑࡇ࡛㸪TOSHIBA ࡢࢺࣛࣥࢪࢫࢱ 2SC1815 ࢆ௓ࡋ࡚㸪࣐࢖ࢥࣥ࡟
ࡼࡾ࣮ࣜࣞࢆ㥑ືࡍࡿ㸬ࡓࡔࡋ㸪࣮ࣜࣞࡀ off ࡟࡞ࡿ㝿࡟ࢥ

+5V

VDD

SW1࢖ࣝ࡟⏕ࡌࡿ㏫㉳㟁ຊ㸦ࢧ࣮ࢪ㟁ᅽ㸧࠿ࡽࢺࣛࣥࢪࢫࢱࢆಖ

SW2

P0_6
P0_4
P0_2

R15K

R15K

R+5V

1t-outP2_215Kt-in

Vss

PSoC

LED3

LED2LED1PSoC

ᅗ 4 ࣐࢖ࢥࣥ࡟ࡼࡿࢱ࢖࣐ᅇ㊰

RELAY

13119P2_4

16P2_6

468P0_0

R15kᅗ 6 ࣐࢖ࢥࣥ࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰

11

マイコンを用いたリレー・シーケンス制御の学習の試みㆤࡍࡿࡓࡵ࡟㸪Semiconductor ࡢỗ⏝ᑠಙྕ㧗㏿ࢫ࢖ࢵࢳ+5Vࣥࢢ࣭ࢲ࢖࣮࢜ࢻ 1N4148㸦ᐃ᱁ 100V㸪200 mA㸧ࢆ⏝࠸

+5V

SW

SW

RELAY
15k

13119

13
11916

R16RELAY5) ࢭࣥࢧ࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰

468

14681ࡓ㸬R15k

ᅗ 7 ࡟㸪࣒࢜ࣟࣥࡢࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧ㸦EE-SX951W㸧࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰ࢆ♧ࡍ㸬ࢭࣥࢧࡢගࡀ㐽ගࡉࢀ

LEDࡿ࡜㯮ࡢ➃Ꮚࡀ high ࡟࡞ࡿ㸬ࡑࡢಙྕࢆ฼⏝ࡋ࡚ୖグ 4) ࡜LED

ᅗ 9 ⮬ᕫಖᣢᅇ㊰ྠ୍ࡢࢺࣛࣥࢪࢫࢱࢆ⏝࠸㸪࣮ࣜࣞࢆ㥑ືࡍࡿ㸬

RELAY

131191ภ

15k

16R468࣮ࢆ౑ࡗࡓ㓄⥺ࡣពእ࡟㞴ࡋࡃ㸪ࡑࢀࡺ࠼㠃ⓑࡃឤࡌࡿࡇ࡜+5Vహࡀ࡛ࡁࡿ㸬ᅗ 10 ࡟ࡣ㸪off ࢫ࢖ࢵࢳ௜⮬ᕫಖᣢᅇ㊰ࢆ♧ࡍ㸬SW1 ࢆᢲࡍࡇ࡜࡛ LED ࡀⅬⅉ㸪SW1 ࡀ off ࡟࡞ࡗ࡚ࡶⅬⅉࡋ⥆ࡅ㸪ஒSW2 ࡀᢲࡉࢀࡿ࡜ᾘⅉࡍࡿ㸬(a)ࡣࢭࢵࢺඃඛ㸪(b)ࡣࣜࢭࢵ

Photomicrosensor

ᅗ 7 ࢭࣥࢧ࡟ࡼࡿ࣮ࣜࣞࡢ㥑ືᅇ㊰ࢺඃඛᅇ㊰࡛࠶ࡾ㸪SW1 ࡜ SW2 ࢆྠ᫬࡟ᢲࡍ࡜㸪(a)ࡣ㸪LED ࡀⅬⅉ㸪(b)ࡣᾘⅉࡍࡿ㸬㸳㸬㸰 ㄢ㢟ᅇ㊰ḟ࡟㸪ᇶ♏ᅇ㊰ࢆᛂ⏝ࡋࡓㄢ㢟ᅇ㊰ࡢ౛ࢆ♧ࡍ㸬1)㹼3) ࡣ+5V+5Vඃඛㄢ㢟࡜ࡋ㸪Ꮫ⏕඲ဨࡀ⤌ࡵࡿࡇ࡜ࢆࡵࡊࡍ㸬4) ࠾ࡼࡧ 5)

SW1SW2SW1SW2

13
11916

ᅗ 8 ࡟㸪ࢥ࢖ࣥࣃ࣮࢟ࣥࢢᅇ㊰ࡢ౛ࢆ♧ࡍ㸬ࢥ࢖ࣥࣃ࣮࢟

468

1131191311916

RELAY2164
68

1

468

RELAY1RELAY215k

13
119R

RELAY1161) ࢥ࢖ࣥࣃ࣮࢟ࣥࢢᅇ㊰

468

11ࡣᛂ⏝ㄢ㢟࡜ࡋ࡚㸪㐍ᤖ≧ἣ࡟ᛂࡌ࡚ྲྀࡾ⤌ࡴㄢ㢟࡜ࡋࡓ㸬

LED

R15k

LED

ࣥࢢᅇ㊰ࡣ㸪࣒࢜ࣟࣥࡀᐇ᪋ࡍࡿ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᢏ
⾡࡟㛵ࡍࡿࢭ࣑ࢼ࡟࠾࠸࡚㸪ᚲࡎྲྀࡾୖࡆࡽࢀࡿᅇ㊰࡛࠶ࡾ㸪㔜せ࡞ᴫᛕࡢ୍ࡘ࡛࠶ࡿㄽ⌮ᅇ㊰ࢆ⌮ゎࡍࡿࡓࡵ࡟⏝࠸ࡽࢀ(a) ࢭࢵࢺඃඛ(b) ࣜࢭࢵࢺඃඛ

ᅗ 10 off ࢫ࢖ࢵࢳ௜⮬ᕫಖᣢᅇ㊰ࡿ㸬ࢥ࢖ࣥࣃ࣮࢟ࣥࢢᅇ㊰࡛ࡣ㸪㸱ྎࡢ㥔㌴ࢫ࣮࣌ࢫ࡟ࡑࢀࡒ
ࢀ㌴ࡢ᭷↓ࢆ᳨▱ࡍࡿࢭࣥࢧࡀタ⨨ࡉࢀ࡚࠸ࡿ࡜᝿ᐃࡋ㸪✵3) ࣮ࣔࢱṇ㏫㌿ᅇ㊰㸦࢖ࣥࢱࣟࢵࢡ௜㸧㌴ࢫ࣮࣌ࢫࡀ㸯ࡘ࡛ࡶ࠶ࢀࡤ㟷ࣛࣥࣉ㸪‶㌴ࡢ᫬ࡣ㉥ࣛࣥࣉ

ᅗ 11 ࡟㸪࣮ࣜࣞࢆ⏝࠸ࡓ࣮ࣔࢱṇ㏫㌿ᅇ㊰ࢆ♧ࡍ㸬SW1

ࢆⅬⅉࡉࡏࡿ࡜࠸࠺ไᚚࢆ᝿ᐃࡋ࡚࠸ࡿ㸬ࡇࡇ࡛ࡣ㸪㸱ࡘࡢࢆᢲࡍ࡜ṇ㌿㸪SW2 ࢆᢲࡍ࡜㏫㌿ࡍࡿ㸬ᅗ 12 ࡟ࡣᅗ 11 ࡟ࢭࣥࢧࡢ௦ࢃࡾ࡟ࢫ࢖ࢵࢳ SW1㹼SW3 ࢆ㸪㟷ࣛࣥࣉ࡜ࡋ࡚

ຍ࠼࡚㸪஧ࡘࡢࢫ࢖ࢵࢳࡀඹ࡟ᢲࡉࢀ࡚࣮ࣔࢱࡢṇ㏫㌿ࡀྠ

LED-GRN㸪㉥ࣛࣥࣉ࡜ࡋ࡚ LED-RED ࢆ⏝࠸ࡓ㸬

᫬࡟ on ࡟࡞ࡿࡢࢆ㜵Ṇࡍࡿ㸪࢖ࣥࢱࣟࢵࢡᅇ㊰ࢆ♧ࡍ㸬ࡇࡢᅇ㊰ࡣ㸪୍᪉ࡢࢫ࢖ࢵࢳࡀᢲࡉࢀࡓ㝿㸪ࡶ࠺୍᪉ࡢࢫ࢖ࢵ

SW1

+5V
16

1

13119468

SW2SW3ࢳࢆ↓ຠ࡜ࡍࡿࡼ࠺࡟ᵓᡂࡉࢀ࡚࠸ࡿ㸬࣮ࣜࣞࢆᏛࡪࡓࡵࡢ
౛࡜ࡋ࡚㸪㠀ᖖ࡟᭷ຠ࡞ᅇ㊰࡛࠶ࡿ㸬

R
15k

RELAY
R
15k

LED-GRN

LED-RED+5V
SW1SW2

RELAY2

M2) ⮬ᕫಖᣢᅇ㊰RELAY1ᅗ 8 ࢥ࢖ࣥࣃ࣮࢟ࣥࢢᅇ㊰ᅗ 9 ࡟㸪2 ✀㢮ࡢ⮬ᕫಖᣢᅇ㊰ࢆ♧ࡍ㸬࡝ࡕࡽࡶ SW ࢆᢲࡍࡇ࡜࡛ LED ࡀⅬⅉࡋ㸪SW ࡀ off ࡟࡞ࡗ࡚ࡶⅬⅉࡋ⥆ࡅࡿ㸬࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚ࡟࠾ࡅࡿ᭱ࡶ㔜せ࡞ᅇ㊰ࡢ୍ࡘ࡛࠶ࡿࡀ㸪PLC ࢆ⏝࠸ࡓࣛࢲ࣮ࣉࣟࢢ࣒ࣛ࡜ẚ㍑ࡋ࡚㸪ࣜࣞ

ᅗ 11 ࣮ࣔࢱṇ㏫㌿ᅇ㊰

1.5V

12

沼津工業高等専門学校研究報告

第 53 号

մ 3 ⛊㛫ࢭࣥࢧ࡟཯ᛂࡀ࡞ࡅࢀࡤ㸪࣮ࣔࢱࡣ೵Ṇࡋ㸪LED2
ࡶᾘⅉࡍࡿ㸬

+5V
SW15) ⮬ືࢩࣕࢵࢱ࣮௜࣮࢞ࣞࢪᅇ㊰ᅗ 14 ࡟㸪⮬ືࢩࣕࢵࢱ࣮௜࣮࢞ࣞࢪᅇ㊰ࢆ♧ࡍ㸬ࡇࡢᅇ㊰RELAY4



RELAY3

SW2ࡣ㸪௨ୗࡢ᮲௳ࢆ‶ࡓࡍࡼ࠺࡟ືసࡍࡿ࣮࢞ࣞࢪࢆ᝿ᐃࡋࡓ

࣮࢞ࣞࢪ࡬㥔㌴ࡍࡿ㌴ࡀ࣮࢞ࣞࢪ๓࡟೵㌴ࡋ㸪೵㌴ࡋࡓ㌴RELAY2MRELAY1ㄢ㢟࡛࠶ࡿ㸬
1.5V࡟ឤ▱ࡍࡿࢭࣥࢧࡀ཯ᛂࡋ࡚࠸ࡿ≧ែ࡛ࣃࢵࢩࣥࢢࢆ 3 ᅇ⾜࠺࡜㸪࣮࢞ࣞࢪࡢࢩࣕࢵࢱ࣮ࡀ⮬ືⓗ࡟㛤ࡃ㸬࣮࢞ࣞࢪᅗ 12 ࣮ࣔࢱṇ㏫㌿ᅇ㊰㸦࢖ࣥࢱࣟࢵࢡ௜㸧ෆ࡟㌴ࢆ㥔㌴ࡋ㸪㐠㌿ᡭࡀ࣮࢞ࣞࢪࡢእ࡟࠶ࡿ࣎ࢱࣥࢆᢲࡍ࡜㸪࣮࢞ࣞࢪࡀ㛢ࡲࡿ㸬4) ┬࢚ࢿ࢚ࢫ࣮࢝ࣞࢱᅇ㊰
ᅗ 13 ࡟㸪┬࢚ࢿ࢚ࢫ࣮࢝ࣞࢱᅇ㊰ࢆ♧ࡍ㸬ࡇࡢᅇ㊰ࡣ㸪௨

SW1+5V

SW2

open
car passing

closeঽഞ৳੅৚ଡ଼
RELAY 1-1峢ୗࡢ᮲௳ࢆ‶ࡓࡍࡼ࠺࡟ືసࡍࡿ࢚ࢫ࣮࢝ࣞࢱࢆ᝿ᐃࡋࡓㄢ

ঽഞ৳੅৚ଡ଼
RELAY 1-4峢ঽഞ৳੅৚ଡ଼
RELAY 1-13峢㢟࡛࠶ࡿ㸬࢚ࢫ࣮࢝ࣞࢱࡢධཱྀ࡟タ⨨ࡉࢀࡓࢭࣥࢧࡀேࡢ㏻㐣ࢆ᳨▱ࡍࡿ࡜㸪࢚ࢫ࣮࢝ࣞࢱࡀ⮬ືⓗ࡟ືࡁฟࡍ㸬࢚ࢫ࣮࢝ࣞ
ࢱࡣ┬࢚ࢿࡢࡓࡵ㸪ேࡀ㝆ࡾࡿࡲ࡛ࡢ୍ᐃ᫬㛫㸦TS ⛊㸧ࡢࡳືసࡋ㸪ࡑࡢᚋ⮬ື೵Ṇࡍࡿࡼ࠺࡟タᐃࡉࢀ࡚࠸ࡿ㸬ࡓహ

Photomicro
sensorRࡀ཯ᛂࡋ࡞ࡅࢀࡤ㸪⮬ື೵Ṇࡍࡿ㸬ਫૡ嵣ಗૡ
RELAY2-1峢
mortorঽഞ৳੅৚ଡ଼
RELAY2-1峢

VDD



P2_3

P2_1

15kRELAY1P0_1

P2_2

GND

LEDR
15k

P0_0PSoC

R15kmortorਫૡ嵣ಗૡ RELAY1-1峢mortorਫૡ嵣ಗૡ RELAY1-16峢ࡔࡋ㸪⮬ື೵Ṇࡍࡿ๓࡟෌ࡧࢭࣥࢧࡀேࢆ᳨▱ࡋࡓሙྜ㸪࢚ࢫ࣮࢝ࣞࢱࡣ೵Ṇࡍࡿࡇ࡜࡞ࡃືࡁ⥆ࡅ㸪TS ⛊㛫ࢭࣥࢧঽഞ৳੅৚ଡ଼
RELAY 1-9峢

ᅗ 14 ⮬ാࢩࣕࢵࢱ࣮௜࣮࢞ࣞࢪᅇ㊰ࡇࡢ⮬ືไᚚᅇ㊰ࢆ୚࠼ࡽࢀࡓࣃ࣮ࢶ࡟࡚ᵓ⠏ࡍࡿ࡟
+5Vձ ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡀ཯ᛂࡋ࡚࠸ࡿ≧ែ࡛ࢫ࢖ࢵࢳ

46813
11916

ਫૡ嵣ಗૡ
RELAY1-1峢

15k

LED1P2_2mortor
GND

PSoC

Photomicro
Sensor

RELAY3R

LED2

4
68R

R

15k

13
11
915k

115k

ਫૡ嵣ಗૡ
RELAY1-16峢

16R

࠶ࡓࡾ㸪௨ୗࡢࡼ࠺࡟ㄞࡳ᭰࠼㸪Ꮫ⏕࡬ࡢㄢ㢟࡜ࡋࡓ㸬

P0_0

1311916

RELAY1R

RELAY2VDD

46811mortor

15k

ᅗ 13 ┬࢚ࢿ࢚ࢫ࣮࢝ࣞࢱᅇ㊰ࡇࡢ⮬ືไᚚᅇ㊰ࢆ୚࠼ࡽࢀࡓࣃ࣮ࢶ࡟࡚ᵓ⠏ࡍࡿ࡟࠶ࡓࡾ㸪௨ୗࡢࡼ࠺࡟ㄞࡳ᭰࠼㸪Ꮫ⏕࡬ࡢㄢ㢟࡜ࡋࡓ㸬ձ ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡀ཯ᛂࡍࡿ࡜㸪཯ᛂࡋ࡚࠸ࡿ㛫ࡢ

SW1 ࢆ 3 ᅇᢲࡍ࡜㸪ᢲࡍᗘ࡟ LED ࡀⅬⅉࡋ㸪3 ᅇ┠࡟࣮ࣔࢱࡀᅇ㌿ࡋጞࡵࡿ㸬ղ ࢩࣕࢵࢱ࣮ࡀືసࡍࡿ᫬㛫ࢆ᝿ᐃࡋ㸪࣮ࣔࢱࡣ 3 ⛊㛫ືసࡋࡓᚋ㸪⮬ື೵Ṇࡍࡿ㸬ճ ࢫ࢖ࢵࢳ SW2 ࢆᢲࡍ࡜㸪࣮ࣔࢱࡣ㏫ᅇ㌿ࢆ㛤ጞࡋ㸪ࢫ࢖ࢵࢳ࠿ࡽᡭࢆ㞳ࡋ࡚ࡶ㸪࣮ࣔࢱࡣᅇ㌿ࡋ⥆ࡅࡿ㸬
մ 3 ⛊ᚋ࡟࣮ࣔࢱࡣ೵Ṇࡍࡿ㸬ࡇࡇ࡛㸪ᅗ 14 ࡟࠾ࡅࡿ◚⥺㒊࡟♧ࡍ⤒㊰࡟ࡘ࠸࡚ࡣ㸪⮬ᕫಖᣢᅇ㊰࡜㸪࣮ࣔࢱᅇ㊰࡬ࡢ᥋⥆࡜ࡋ㸪ࡑࢀࡒࢀᅗ 10㸦a㸧࡜ᅗ 11 ࡟࠾ࡅࡿྛ࣮ࣜࣞࡢ࣏࣮ࢺ࡬᥋⥆ࡍࡿࡇ࡜࡛࣮ࣔࢱࡢ
ṇ㌿࣭㏫㌿ࡢືసࢆ⾜ࡗ࡚࠸ࡿ㸬ࡳ LED1 ࢆⅬⅉࡉࡏ㸪ྠ᫬࡟࣮ࣔࢱࢆᅇࡋ㸪LED2 ࢆⅬⅉࡉࡏࡿ㸬ղ ࣮ࣔࢱࡣ3⛊ᚋ࡟⮬ື೵Ṇࡋ㸪
ྠ᫬࡟LED2ࡶᾘⅉࡍࡿ㸬ճ ࣇ࢛ࢺ࣐࢖ࢡࣟࢭࣥࢧࡀ3⛊௨ෆ࡟෌ࡧ཯ᛂࡋࡓሙྜࡣ㸪࣮ࣔࢱࢆᅇ㌿ࡉࡏ⥆ࡅ㸪LED2 ࡶⅬⅉࢆ⥆ࡅࡿ㸬ᤵᴗ࡟࠾ࡅࡿᩍ⫱ຠᯝ἟ὠ㧗ᑓᶵᲔᕤᏛ⛉࡛ࡣ㸪ࣈࣞࢵࢻ࣮࣎ࢻ࡟ࡼࡿᅇ㊰సࡾࡣ࡯࡜ࢇ࡝ᐇ᪋ࡋ࡚࠾ࡽࡎ㸪㸳ᖺḟࡢᶵᲔᕤᏛᐇ㦂ࡢ࣓࢝ࢺマイコンを用いたリレー・シーケンス制御の学習の試み

13ࣟࢽࢡࢫ࡟࠾࠸࡚㸪ࢃࡎ࠿ 10㹼15 ศ⛬ᗘ㸪ཷື⣲Ꮚࢆ౑ࡗࡓࣛࢫศ‽ഛࡋ㸪㟁※ࢥࣥࢭࣥࢺࢆᚲせ࡜ࡋ࡞࠸஝㟁ụ࡟ࡼࡿᅇ㊰ࢆసࡗ࡚࠸ࡿࡢࡳ࡜࠸࠺ࡢࡀ⌧≧࡛࠶ࡿ㸬ࡋ࠿ࡋ㸪AIไᚚᅇ㊰ࢆᵓ⠏ࡍࡿࡇ࡜࡟ࡼࡾ㸪ㅮ⩏ࢆ⾜࠺ᩍᐊ࡛ࡢᐇ᪋ࢆ(Artificial Intelligence) ࡞࡝࡟ࡼࡾไᚚᢏ⾡ࡀ㧗ᗘ໬ࡋ㸪⏕ྍ⬟࡜ࡋࡓ㸬࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᅇ㊰࡟࠾࠸࡚㸪᭱ࡶ㔜⏘ࢩࢫࢸ࣒ࡀ⮬ື໬ࡉࢀࡿ⌧௦࡟࠾࠸࡚㸪ᶵᲔᕤᏛ࡟࠾࠸࡚せ࡞࣮ࣜࣞ௨እ࡟㸪࣐࢖ࢥࣥࡸࢺࣛࣥࢪࢫࢱࢆ฼⏝ࡍࡿࡇ࡜ࡶ㟁Ẽᅇ㊰ࡢ▱㆑ࡣᚲ㡲࡛࠶ࡿ࡜⪃࠼ࡿ㸬ᮏᤵᴗ࡟࠾ࡅࡿᩍ࡛㸪㟁Ẽᅇ㊰ࡸࣉࣟࢢ࣑ࣛࣥࢢ࡟ࡶ⯆࿡ࡀᣢ࡚ࡿࡼ࠺࡟ࡋࡓ㸬⫱ຠᯝ࡜ࡋ࡚㸪௨ୗ࡟♧ࡍ㡯┠ࢆ⩦ᚓࡍࡿࡇ࡜ࢆ≺࠺㸬ᑗ᮶ⓗ࡟ࡣ㸪ࣃࢯࢥࣥࡸ PLC ࢆే⏝ࡋ㸪ᅇ㊰ࢆ⤌ࡳ࡞ࡀࡽᮏ

(1) ࣮ࣜࣞࡢ᭷⏝ᛶ(2) ࠕᐃ᱁ࠖࡢព࿡(3) ࢺࣛࣥࢪࢫࢱࡢാࡁ
(4) ࢲ࢖࣮࢜ࢻࡢ⏝㏵(5) ࢭࣥࢧࡢࢫ࢖ࢵࢳ࡜ࡋ࡚ࡢ฼⏝᱁ⓗ࡞ࢩ࣮ࢣࣥࢫไᚚᩍ⫱࡬Ⓨᒎࡉࡏࡓ࠸࡜⪃࠼࡚࠸ࡿ㸬ࡑ࠺ࡍࡿࡇ࡜࡛㸪
PLC ࡢ᭷⏝ᛶࡀ᫂☜࡟⌮ゎ࡛ࡁࡿ࡜ᮇᚅࡍࡿ㸬ཧ⪃ᩥ⊩[1]ヨࡳ㸪ሐ㸪୕㇂㸪Ḉᗞ㸪㇂ᇣ㸪す㸪ᕝᮧ㸪ᓊ㸪᪥ᮏᕤᏛ(6) ࢩ࣮ࢣࣥࢫไᚚࡢ⪃࠼᪉(7) ࣐࢖ࢥࣥࡢỗ⏝ᛶ࡜ࢩ࣮ࢣࣥࢫไᚚ࡟⏝࠸ࡿ㝈⏺

ᩍ⫱ྥࡅ㧗ᗘ FA ไᚚᩍᮦࡢ㛤Ⓨ࡜๰㐀ⓗ PBL ᩍ⫱ࡢᩍ⫱༠఍ᕤᏛᩍ⫱㸪Vol.63㸪No.3㸪2015㸪pp.73-79[2]

Educational training program for the manufacturing

PLC ࢆే⏝ࡋ࡚࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᅇ㊰ࢆᵓ⠏ࡍࡿࡇ

control system using the new type of programmable࡜ࢆ⪃࠼ࡓ࡜ࡁ㸪ୖグ࡟ᣲࡆࡓ㡯┠ࡣࡍ࡭࡚㸪௨ୗ࡟㏙࡭ࡿ

logic controller Sysmac NJ, Y. Mitani, H. Tanino, T.

ࡼ࠺࡟᭷⏝࡛࠶ࡿ࡜࠸࠼ࡿ㸬

Kojima, T. Sato, Y. Iwano, ISATE2015 (InternationalSymposium on Advances in Technology Education),(1) ࣒࢜ࣟࣥࡢ᪂ᆺ PLC ࡟ࡼࡿ࣮ࣔࢩࣙࣥไᚚࢆ⾜࠺㝿࡟㸪ືసࡢ㝈⏺఩⨨ࢆ㉸࠼࡚ື࠿࡞࠸ࡼ࠺࡟೵Ṇࡉࡏࡿࡓࡵࡢᅇ㊰࡟ࡣ㸪࣮ࣜࣞࡀ⏝࠸ࡽࢀࡿ㸬

2015
[3]

the manufacturing control system, Y. Mitani, Y. Kami,(2) ࢩ࣮ࢣࣥࢫไᚚࡢᇶ♏࡛࠶ࡿ㸪ࢫ࢖ࢵࢳ࡜ࣛࣥࣉࡢࡳࡢ

Y. Nishi, ISATE2016 (International Symposium onࢹࢪࢱࣝ I/O ᅇ㊰ࡢసᡂ࡟࠾࠸࡚ࡣ㸪ᐃ᱁ࢆព㆑ࡋ࡚ᅇ㊰ࢆ⤌ࡴ㸬(3) ࢭࣥࢧࡸ PLC ࢆ⏝࠸ࡓ㓄⥺࡛ࡣ㸪ࢺࣛࣥࢪࢫࢱࡢືసࢆ

Advances in Technology Education), 2016[4]ࡇ࡜ࡀྍ⬟࡛࠶ࡾ㸪ࡑࡇ࡟ࡣࢲ࢖࣮࢜ࢻࡀ⏝࠸ࡽࢀ࡚࠸㛛Ꮫᰯ◊✲ሗ࿌➨ 49 ྕ㸪2015㸪pp.1-6[5](6) (7) ࣐࢖ࢥࣥࢆ⏝࠸ࡓࢩ࣮ࢣࣥࢫไᚚࡢᐇ⿦ࡣ㸪PLC ࡢ

pp.1-6[6]⣭ゝㄒ࡟ࡼࡿグ㏙ࡢࢃࡎࡽࢃࡋࡉࡀ⌮ゎ࡛ࡁࡿ㸬ᮏᤵᴗࡢᅇ㊰సࡾࢆ㏻ࡌ࡚㸪ᶵᲔᕤᏛ⛉ࡢᏛ⏕ࡀ㟁Ẽᅇ㊰ࡢᙺ๭࡜ࡑࡢ㔜せᛶࢆ⩦ᚓࡋ㸪᫬௦࡟༶ࡋࡓ࢚ࣥࢪࢽ࢔࡜࡞ࡿ஦ࢆ㢪࠺㸬㸬⤖ゝ἟ὠ㧗ᑓᶵᲔᕤᏛ⛉㸯ᖺ⏕ࢆᑐ㇟࡜ࡋ࡚㸪ࣈࣞࢵࢻ࣮࣎ࢻ࡜࣐࢖ࢥࣥࢆ౑ࡗࡓ࣮࣭ࣜࣞࢩ࣮ࢣࣥࢫไᚚᩍ⫱ࡢࡓࡵࡢᩍᮦ㛤Ⓨࢆ⾜ࡗࡓ㸬2018 ᖺᗘࡢᚋᮇࡼࡾά⏝ࢆ㛤ጞࡋ㸪ᤵᴗࡢᚋ༙ࡣ࢔ࢡࢸ࢕ࣈ࣮ࣛࢽࣥࢢᙧᘧ࡛Ꮫ⏕ࡀ୺యⓗ࡟⪃࠼㸪Ꮫࡪࢫࢱ࢖ࣝ࡜ࡋࡓ㸬ᤵᴗ࡟࠾࠸࡚ࡣ஧ே୍⤌࡛⌜ࢆᵓᡂࡋ㸪ࢢ࣮ࣝࣉ࣮࣡ࢡࢆᇶᮏ࡜ࡍࡿᩍ⫱᪉ἲࢆྲྀࡗࡓ㸬ᩍᮦࡣ㸯ࢡ

PLC ࢆ⏝࠸ࡓᑠᆺ࡛ỗ⏝ᛶࡢ࠶ࡿࢩ࣮ࢣࣥࢫไᚚᏛ⩦ᩍᮦࡢ㛤Ⓨ㸪୕㇂㸪㧗▮㸪す㸪ᒣஅෆ㸪἟ὠᕤᴗ㧗➼ᑓࣛࢲ࣮ᅇ㊰࡟┦ᙜࡍࡿฎ⌮ࡀ⧞ࡾ㏉ࡋᩥࡢ୰࡟࠶ࡾ㸪኱㔞ࡢ᮲௳ศᒱ࠿ࡽ࡞ࡿ㸬ࡍ࡞ࢃࡕ㸪ࢩ࣮ࢣࣥࢫไᚚࡢ㧗୰Ꮫ⏕ࢆᑐ㇟࡜ࡍࡿ PLC ࢆά⏝ࡋࡓయ㦂ᤵᴗ㸪୕㇂㸪㇂ᇣ㸪἟ὠᕤᴗ㧗➼ᑓ㛛Ꮫᰯ◊✲ሗ࿌➨ 50 ྕ㸪2016㸪ࡿ㸬(5) ࢭࣥࢧࡣ⮬ື໬࡟ᚲ㡲ࡢධຊࢹࣂ࢖ࢫ࡛࠶ࡿ㸬࣒࢜ࣟࣥᰴᘧ఍♫࡛ࡢᩍဨ◊ಟ࡟࠾ࡅࡿ PLC ࢆά⏝ࡋࡓไᚚᩍᮦ㛤Ⓨ㸪୕㇂㸪㇂ᇣ㸪ᓊ㸪す㸪἟ὠᕤᴗ㧗➼ᑓ࢖࣓࣮ࢪࡋ࡚⾜࠺㸬(4) ࣒࢜ࣟࣥࡢ᪂ࡋ࠸ࣛࣥࣉࡣ㸪ᴟᛶࢆ༊ูࡏࡎ࡟㓄⥺ࡍࡿ

Educational training Japan-Korea joint program for㛛Ꮫᰯ◊✲ሗ࿌➨ 51 ྕ㸪2017㸪pp.1-6[7]࣐࢖ࢡࣟ PLC ࢆά⏝ࡋࡓ࢔ࢡࢸ࢕ࣈ࣮ࣛࢽࣥࢢࡢヨ⾜㸫PID ไᚚჾࡢᐇ⿦ࢆㄢ㢟࡜ࡍࡿࢩ࣮ࢣࣥࢫ㸭ࣇ࢕࣮ࢻࣂࢵࢡไᚚࡢ⼥ྜ㸫㸪୕㇂㸪⸨἟㸪す㸪἟ὠᕤᴗ㧗➼ᑓ㛛Ꮫᰯ◊✲ሗ࿌➨ 52 ྕ㸪2018㸪pp.1-8