📋 VerkefniExercises
Æfðu þig á raunverulegum stýriverkefnum. Hvert verkefni hefur markmið, I/O sem þú notar, vísbendingu og lausn (reyndu fyrst sjálf/ur áður en þú opnar lausnina!). Smelltu á Opna í smið til að opna færibandið tilbúið.
Practise on real control tasks. Each exercise has a goal, the I/O you use, a hint and a solution (try it yourself before opening the solution!). Click Open in builder to launch the conveyor ready to go.
Færibandið
The conveyor
Færibandið er með mótor sem getur gengið áfram (Q1) og aftur á bak (Q2), þrjá skynjara (B1/B2/B3 = i3/i4/i5) eftir bandinu, og gaumljós (RYG = Q3/Q4/Q5). Notaðu 📦 takkann í herminum til að setja kassa á bandið.
The conveyor has a motor that runs forward (Q1) and reverse (Q2), three sensors (B1/B2/B3 = i3/i4/i5) along the belt, and status lights (RYG = Q3/Q4/Q5). Use the 📦 button in the simulator to put a box on the belt.
Markmið: Láttu mótorinn ganga áfram (Q1) þegar ýtt er á Start (i1), og stöðvast við Stop (i2). Notaðu sjálfheldu svo bandið haldi sér gangandi þótt sleppt sé Start. Kveiktu á græna ljósinu (Q5) meðan bandið gengur.
Goal: Make the motor run forward (Q1) when Start (i1) is pressed, and stop on Stop (i2). Use a seal-in so the belt keeps running after Start is released. Turn on the green light (Q5) while the belt runs.
💡 Vísbending💡 Hint
Þetta er klassíska sjálfheldu-rásin (sjá handbók). Hliðtengdu NO-snertu af Q1 við Start-hnappinn, og settu Stop (NC) í röð. Grænt ljós er einfaldlega NO-snerta af Q1 → spóla Q5.
This is the classic seal-in circuit (see the handbook). Parallel a NO contact of Q1 with the Start button, and put Stop (NC) in series. The green light is simply a NO contact of Q1 → coil Q5.
✅ Lausn✅ Solution
Markmið: Bandið gengur áfram, en stöðvast sjálfkrafa þegar kassi nær enda-skynjaranum B3 (i5). Kveiktu á rauða ljósinu (Q3) þegar kassi bíður á enda.
Goal: The belt runs forward but stops automatically when a box reaches the end sensor B3 (i5). Turn on the red light (Q3) when a box waits at the end.
💡 Vísbending💡 Hint
Bættu NC-snertu af i5 í röð við mótor-rásina úr verkefni 1 — þannig rofnar straumurinn þegar kassinn nemur enda-skynjarann. Rautt ljós: NO-snerta af i5 → Q3.
Add a NC contact of i5 in series with the motor rung from exercise 1 — that breaks the current when the box reaches the end sensor. Red light: NO contact of i5 → Q3.
✅ Lausn✅ Solution
Markmið: Þegar ýtt er á Start gengur bandið áfram (Q1) að enda (i5), snýr svo sjálfkrafa við (Q2) til baka að byrjunar-skynjara B1 (i3), og stöðvast. Mikilvægt: Q1 og Q2 mega aldrei vera á í einu (læsing / interlock).
Goal: On Start, the belt runs forward (Q1) to the end (i5), then automatically reverses (Q2) back to the start sensor B1 (i3), and stops. Important: Q1 and Q2 must never be on at the same time (interlock).
💡 Vísbending💡 Hint
Notaðu tvo markera. M1 = keyrsla í gangi: SET á Start (i1), RESET þegar komið er aftur á byrjun (M2 OG i3). M2 = fer til baka: SET við enda (i5), RESET aftur á byrjun. Þá er áfram = M1 OG EKKI M2, og aftur = M1 OG M2. Settu NC-snertu af hinum mótornum í röð til að tryggja læsinguna. (Athugið: án Start-minnis fer bandið af stað strax — þess vegna þarf M1.)
Use two markers. M1 = cycle running: SET on Start (i1), RESET when back at the start (M2 AND i3). M2 = reversing: SET at the end (i5), RESET back at the start. Then forward = M1 AND NOT M2, reverse = M1 AND M2. Put an NC contact of the other motor in series for the interlock. (Note: without a Start latch the belt runs immediately — that's why M1 is needed.)
✅ Lausn (ein leið)✅ Solution (one approach)
Minni (markerar):
Memory (markers):
Mótor (með læsingu):
Motor (with interlock):
Markmið: Bættu fullri RYG stöðu við verkefni 3: grænt (Q5) þegar bandið gengur áfram, gult (Q4) þegar það fer til baka, og rautt (Q3) þegar kyrrstætt.
Goal: Add full RYG status to exercise 3: green (Q5) while running forward, yellow (Q4) while reversing, and red (Q3) when stopped.
💡 Vísbending💡 Hint
Ljósin spegla útgangana: Q5 = NO-snerta af Q1. Q4 = NO-snerta af Q2. Rautt (Q3) er á þegar hvorugur mótor gengur — notaðu NC-snertur af Q1 og Q2 í röð → Q3.
The lights mirror the outputs: Q5 = NO contact of Q1. Q4 = NO contact of Q2. Red (Q3) is on when neither motor runs — use NC contacts of Q1 and Q2 in series → Q3.
✅ Lausn✅ Solution
Tankurinn
The tank
Tankurinn er með tvær dælur (Q1, Q2 — fylla) og frárennsli (Q3 — tæma). Fjórir stigskynjarar fylgjast með vatninu: HiHi (i3), Hi (i4), Lo (i5) og LoLo (i6). Vatnsstigið (IA1) uppfærist sjálfkrafa, og stilliviðnámið (IA2) gefur setpoint (viðmið). Gaumljós: rautt Q4, gult Q5, grænt Q6.
The tank has two pumps (Q1, Q2 — fill) and a drain (Q3 — empty). Four level sensors watch the water: HiHi (i3), Hi (i4), Lo (i5) and LoLo (i6). The level (IA1) updates automatically, and the potentiometer (IA2) gives a setpoint. Status lights: red Q4, yellow Q5, green Q6.
Markmið: Láttu Start (i1) ræsa Pumpu 1 (Q1) með sjálfheldu, og Stop (i2) stöðva hana. Dælan á að stöðvast sjálfkrafa þegar tankurinn fyllist (Hi, i4).
Goal: Make Start (i1) run Pump 1 (Q1) with a seal-in, and Stop (i2) stop it. The pump should stop automatically when the tank is full (Hi, i4).
💡 Vísbending💡 Hint
Þetta er sjálfheldu-rásin (sjá handbók) með einni viðbót: settu NC-snertu af i4 í röð, svo rásin rofni þegar stigið nær Hi.
This is the seal-in circuit (see the handbook) with one addition: put an NC contact of i4 in series, so the rung breaks when the level reaches Hi.
✅ Lausn✅ Solution
Markmið: Haltu vatnsstiginu á hreyfingu milli Lo og Hi: fylltu (Q1) þar til Hi (i4), tæmdu svo (Q3) þar til Lo (i5), og endurtaktu. Start (i1) ræsir, Stop (i2) stöðvar. Dæla og frárennsli mega aldrei vera á í einu.
Goal: Keep the level moving between Lo and Hi: fill (Q1) until Hi (i4), then drain (Q3) until Lo (i5), and repeat. Start (i1) runs it, Stop (i2) stops it. The pump and drain must never be on at the same time.
💡 Vísbending💡 Hint
Þetta er hysteresis — tvö mörk í stað eins, svo dælan slái ekki ört af og á. Notaðu tvo markera: M2 = keyrsla (SET á i1, RESET á i2) og M1 = tæmingar-fasi (SET við Hi i4, RESET við Lo i5). Þá er fylling = M2 OG EKKI M1, og tæming = M2 OG M1. M1 sér um að aðeins annað sé á í einu.
This is hysteresis — two thresholds instead of one, so the pump doesn't chatter on and off. Use two markers: M2 = running (SET on i1, RESET on i2) and M1 = drain phase (SET at Hi i4, RESET at Lo i5). Then fill = M2 AND NOT M1, and drain = M2 AND M1. M1 ensures only one is on at a time.
✅ Lausn✅ Solution
Keyrslu-minni (Start/Stop):
Run memory (Start/Stop):
Fasa-minni (Hi → tæma, Lo → fylla):
Phase memory (Hi → drain, Lo → fill):
Dæla og frárennsli:
Pump and drain:
Markmið: Bættu gaumljósum við stýringuna úr verkefni 2: grænt (Q6) í eðlilegri keyrslu, gult (Q5) meðan tæmt er, og rautt (Q4) sem viðvörun ef stigið fer í HiHi (i3) eða LoLo (i6).
Goal: Add status lights to your program from exercise 2: green (Q6) in normal operation, yellow (Q5) while draining, and red (Q4) as an alarm if the level reaches HiHi (i3) or LoLo (i6).
💡 Vísbending💡 Hint
Ljósin eru bara rökrásir út frá merkjunum. Rautt = i3 EÐA i6 (hliðtenging). Gult = M1 (tæmingar-fasinn). Grænt = keyrsla (M2) OG engin viðvörun (EKKI i3 OG EKKI i6).
The lights are just simple logic from the signals. Red = i3 OR i6 (parallel). Yellow = M1 (the drain phase). Green = running (M2) AND no alarm (NOT i3 AND NOT i6).
✅ Lausn✅ Solution
Markmið: Notaðu stilliviðnámið (IA2) sem viðmið. Dældu (Q1) þar til vatnsstigið (IA1) nær völdu setpoint-i, og stöðvaðu þá. Notaðu CMP-blokk til að bera saman analog gildin.
Goal: Use the potentiometer (IA2) as the target. Pump (Q1) until the level (IA1) reaches the chosen setpoint, then stop. Use a CMP block to compare the analog values.
💡 Vísbending💡 Hint
Settu CMP-blokk í fyllirásina og stilltu hana á IA1 < IA2 (stig undir setpoint). Meðan það er satt hleypir hún straumi og dælan gengur; um leið og stigið nær setpoint stöðvast hún. Notaðu sjálfheldu eins og í verkefni 1.
Put a CMP block in the fill rung and set it to IA1 < IA2 (level below setpoint). While that's true it passes current and the pump runs; as soon as the level reaches the setpoint it stops. Use a seal-in like in exercise 1.
✅ Lausn✅ Solution
Stilltu CMP-blokkina: Inntak 1 = IA1, virki = <, Inntak 2 = IA2. Dragðu svo stilliviðnámið í herminum til að velja setpoint.
Configure the CMP block: Input 1 = IA1, operator = <, Input 2 = IA2. Then drag the potentiometer in the simulator to choose the setpoint.
Krossgatnamótin
The crossroads
Tvær götur mætast. Aðalgata A (norður–suður) hefur ljósin Q1 rautt, Q2 gult og Q3 grænt. Hliðargata B (vestur–austur) hefur Q4 rautt, Q5 gult og Q6 grænt. Bílar aka aðeins inn á grænu. Ef bílar úr báðum áttum lenda inni á gatnamótunum verður árekstur. Settu bíla með 🚗 A / 🚗 B, eða kveiktu á 🔁 Umferð.
Two streets meet. Main street A (north–south) has lights Q1 red, Q2 yellow and Q3 green. Side street B (west–east) has Q4 red, Q5 yellow and Q6 green. Cars only enter on green. If cars from both directions end up inside the junction there is a crash. Add cars with 🚗 A / 🚗 B, or switch on 🔁 Traffic.
Þetta verkefnasett snýst um tímaliða. Tímaliði (T) er settur í rás: þegar straumur kemst að honum byrjar hann að telja, og þegar forvalinn tími (PT) er liðinn hleypir hann straumi í gegn. T1-snerta annars staðar í forritinu les sama merki. Tímaliðinn þarf enga spólu á eftir sér. PT stillirðu í Eiginleikum.
This exercise set is about timers. A timer (T) sits in a rung: when current reaches it, it starts timing, and when the preset time (PT) has passed it lets current through. A T1 contact elsewhere in the program reads the same signal. The timer needs no coil after it. Set PT in Properties.
Markmið: Gleymdu götu B í bili. Start (i1) ræsir ljósin á götu A: grænt 5 s → gult 2 s → rautt 5 s, og svo aftur frá byrjun, endalaust. Stop (i2) stöðvar hringinn.
Goal: Forget street B for now. Start (i1) runs the lights on street A: green 5 s → yellow 2 s → red 5 s, then back to the start, forever. Stop (i2) stops the cycle.
💡 Vísbending💡 Hint
Notaðu keðju af tímaliðum: T1 telur grænt, T2 byrjar þegar T1 er búinn og telur gult, T3 byrjar þegar T2 er búinn og telur rautt. Til að hringurinn byrji upp á nýtt setturðu NC-snertu af T3 í rás T1: þegar T3 klárast rofnar rás T1, og þá núllstillast allir tímaliðarnir í röð. Ljósin lesa svo tímaliðana: grænt = í gangi OG EKKI T1.
Use a chain of timers: T1 times green, T2 starts when T1 is done and times yellow, T3 starts when T2 is done and times red. To restart the cycle, put an NC contact of T3 in T1's rung: when T3 finishes, T1's rung breaks and all the timers reset in turn. The lights then read the timers: green = running AND NOT T1.
✅ Lausn✅ Solution
Start/Stop og tímaliðakeðjan (PT: T1 = 5 s, T2 = 2 s, T3 = 5 s):
Start/Stop and the timer chain (PT: T1 = 5 s, T2 = 2 s, T3 = 5 s):
Ljósin:
The lights:
Markmið: Stýrðu báðum götum: A grænt 5 s → A gult 2 s → allt rautt 1 s → B grænt 4 s → B gult 2 s → allt rautt 1 s og aftur frá byrjun. A og B mega aldrei hafa grænt eða gult samtímis. Kveiktu á 🔁 Umferð og láttu kerfið ganga í eina mínútu án áreksturs.
Goal: Control both streets: A green 5 s → A yellow 2 s → all red 1 s → B green 4 s → B yellow 2 s → all red 1 s and back to the start. A and B must never show green or yellow at the same time. Switch on 🔁 Traffic and let it run for a minute without a crash.
💡 Vísbending💡 Hint
Lengdu keðjuna úr verkefni 1 í sex fasa, einn tímaliða á hvern fasa. NC-snertan sem endurræsir hringinn er nú af T6. Allt rautt (T3 og T6) er öryggisbil: í alvöru gatnamótum þarf bíll sem fór inn á síðustu stundu tíma til að komast út áður en hin gatan fær grænt. Fylgstu með tímaliðunum í stiganum meðan hringurinn gengur — PT og ET sýna hvar í hringnum þú ert.
Extend the chain from exercise 1 to six phases, one timer per phase. The NC contact that restarts the cycle is now T6. All red (T3 and T6) is a clearance time: at a real junction a car that entered at the last moment needs time to get out before the other street gets green. Watch the timers in the ladder while the cycle runs — PT and ET show where in the cycle you are.
✅ Lausn✅ Solution
Start/Stop (M1) eins og í verkefni 1. Keðjan (PT: 5 · 2 · 1 · 4 · 2 · 1 s):
Start/Stop (M1) as in exercise 1. The chain (PT: 5 · 2 · 1 · 4 · 2 · 1 s):
Ljósin:
The lights:
Markmið: Bættu við forritið úr verkefni 2. Þegar næturrofinn (i4, 🌙 í herminum) er á eiga bæði gulu ljósin (Q2 og Q5) að blikka á hálfrar sekúndu fresti og öll önnur ljós að vera slökkt. Þegar slökkt er á rofanum fer venjulegi hringurinn af stað aftur. Á blikkandi gulu aka bílarnir varlega, og aðalgata A hefur forgang.
Goal: Extend your program from exercise 2. When the night switch (i4, 🌙 in the simulator) is on, both yellow lights (Q2 and Q5) should flash every half second and all other lights must be off. When the switch is turned off, the normal cycle starts again. On flashing yellow the cars drive carefully, and main street A has priority.
💡 Vísbending💡 Hint
Tímaliði í FLASH-ham (bilslá á tímaliða skiptir um ham, eða Tegund í Eiginleikum) kveikir og slekkur á víxl meðan hann fær straum. Láttu i4 → T7 (FLASH, 0,5 s) → spólu M2. Hliðtengdu svo M2 við venjulegu gulu rásirnar. Að lokum: settu NC-snertu af i4 í rás T1 (hringurinn stoppar) og í grænu og rauðu rásirnar.
A timer in FLASH mode (Space on a timer cycles the mode, or Type in Properties) switches on and off while it has current. Do i4 → T7 (FLASH, 0.5 s) → coil M2. Then put M2 in parallel with the normal yellow rungs. Finally, put an NC contact of i4 in T1's rung (the cycle stops) and in the green and red rungs.
✅ Lausn✅ Solution
Markmið: Hliðargatan er fáfarin. Aðalgata A á að halda grænu þar til bíll bíður á B (skynjari i3), en þó í minnst 5 s. Þá fer hringurinn áfram eins og í verkefni 2 og A fær aftur grænt. Ef enginn bíll kemur helst A grænt endalaust.
Goal: The side street is quiet. Main street A should stay green until a car waits on B (sensor i3), but for at least 5 s. Then the cycle continues as in exercise 2 and A gets green again. If no car comes, A stays green forever.
💡 Vísbending💡 Hint
i3 er aðeins 1 meðan bíllinn er á skynjaranum. Þegar B fær grænt ekur hann burt og i3 verður 0. Ef keðjan væri háð i3 beint myndi hún hrynja á miðri leið! Geymdu því beiðnina í minni: M3 SET þegar bíll bíður á rauðu (i3 OG Q4), og M3 RESET við lok hringsins (T6). T2 (gult) byrjar þá þegar T1 er búinn OG M3 er á. Grænt á A logar þar til gult byrjar.
i3 is only 1 while the car is on the sensor. When B gets green the car drives away and i3 goes to 0. If the chain depended on i3 directly it would collapse halfway! So store the request in memory: M3 SET when a car waits on red (i3 AND Q4), and M3 RESET at the end of the cycle (T6). T2 (yellow) then starts when T1 is done AND M3 is on. Green on A stays on until yellow starts.
✅ Lausn✅ Solution
Breytingar frá verkefni 2 (T3–T6 og B-ljósin eru óbreytt):
Changes from exercise 2 (T3–T6 and the B lights are unchanged):
Fleiri verkefnasett
More exercise sets
Verkefni fyrir bílastæði og pökkunarvél eru væntanleg. Á meðan geturðu prófað þá hermana frjálst í smiðnum og notað handbókina til stuðnings.
Exercises for the parking and packing machine are coming soon. In the meantime you can explore those simulators freely in the builder and use the handbook for reference.