

Think
Automation and beyond…
DJNZ
§DJNZ (Decrement Jump Non-zero)
When M10 is turned on, ADD
instruction is executed 100 times.
When DJNZ
is executed, D1 is decremented by one, and the
program jumps to LABEL 127 if D1 is not 0.
100 is
stored to D1 as the number of repeat cycle.
ADD(W) is
executed 100 times.