What you learn today
- Repeat the instructions of the level
- Typical mistakes
- Practice questions
The day after tomorrow is the advanced exam: 20 questions, 40 minutes, pass from 70 %. Today you go through everything once.
The instructions of the level
| Area | Instructions |
|---|---|
| Network | lbns, ss, sbs, bdnvl, bdnvs, batch mode Count |
| Relative jumps | breq … brge, breqz … brgez, brnan, brdse, brdns, jr |
| Approximate | sap, sna, sapz, snaz, bap, bna, bapz, bnaz and the br variants |
| Memory | push, pop, peek, poke, get, put, clr, clrd |
| Subroutines | jal, j ra and the al family beqal … bnazal, bdseal, bdnsal |
| Other | hcf, rand, sqrt, pow, exp, log |
Plus the patterns: state machine, ring buffer, smoothing, P/PI/PID, cascade, airlock.
Typical mistakes
| Mistake | Right |
|---|---|
beq after a calculation | bap with a tolerance |
label in breq or jr | relative jumps take distances, labels only with beq & co. |
brXXal | does not exist – branch and link only absolute |
put address value device | put device address value |
Maximum without a match = 0 | −infinity |
log for log10 | log(x) / log(10) |
| cooling stage Setting above the inlet | it heats |
hcf as an emergency stop | a lock state of your own |
Tolerances and edges
Approximate comparisons and edges often appear in the exam as a line of code. sap a b c is 1 when the distance is at most c times the larger magnitude – a relative tolerance. You recognise an edge by comparing with the previous tick:
sap inband actual target TOLERANCE # 5 % of 100 kPa = 5 kPa
seqz tmp inband
and tmp tmp before # just inside, now outside
sapz and bapz work with a tiny fixed tolerance (float.epsilon · 8), not with the constant epsilon. If you need “approximately zero” with some slack, sap a 0 c fails, because the relative tolerance of 0 is 0 again. Then only abs and a comparison help.
In the exam you can try every line of code in the IC10 coder while the clock runs. Two minutes of simulator are often safer than one minute of brooding.
Exercise
Task
Exam training: the pressure in the tank (sensor “Tank”) should be within 5 % of the target in the logic memory “Soll”.
- Lamp “Imband” on while the pressure is in the band (
sap) - Display “Abweichungen” counts how often the pressure leaves the band (edge, not every tick)
- Sensor gone: lamp off
Hints
Hint 1
sap inband actual target TOLERANCE – with NaN it gives 0.
Hint 2
Edge: seqz tmp inband, and tmp tmp before, add to the counter.
Hint 3
Then move before inband for the next tick.
Quiz
5 questions. You pass from 60 % – the server does the grading.
Complete the day
- Passed the simulator exercise
- Passed the quiz with at least 60 %
Without an account progress is saved in this browser only.
Report a mistake in this lesson
Please sign in to report. Sign in