Commandes de programmation
7.3 Fonctions
DO
LOOP_UNTIL <Condition d'arrêt de la boucle>
DO_WHILE <Condition de poursuite de la boucle>
LOOP
DO_UNTIL <Condition d'arrêt de la boucle>
LOOP
Exemple
REG[0] = 5
DO
LOOP_WHILE REG[0] < 10
REG[0] = 5
DO
LOOP_WHILE 10 > REG[0]
200
<Instructions>
<Instructions>
<Instructions>
DEBUG("OUTER: " << REG[0])
REG[0] = REG[0] + 1
REG[1] = -5
DO
DEBUG("INNER: " << REG[1])
REG[1] = REG[1] + 1
LOOP_WHILE REG[1] < 0
DEBUG("OUTER: " << REG[0])
REG[0] = REG[0] + 1
REG[1] = -5
DO
DEBUG("INNER: " << REG[1])
REG[1] = REG[1] + 1
LOOP_UNTIL 0 <= REG[1]
SINUMERIK Integrate Run MyScreens
Manuel de programmation, 10/2020, A5E40869575D AD