User Tools

Site Tools

한국어

cubloc:loop:index

LOOP

LOOP label, register

Repeatedly jumps to label until the value in register reaches 0. register is automatically decremented with each iteration.

In the example above, D0 is initialized to 5. This will be the number of times to repeat the loop. D1 is initialized to 0. This is the number we wish to change.

D1 is incremented with each iteration and D0 is decremented with each iteration. Therefore, when D0 reaches 0, LOOP no longer jumps to NT1 and D1 will contain the v

Go CUBLOC Ladder Logic home

cubloc/loop/index.txt · Last modified: 2016/04/14 11:07 (external edit)