Delta AH500 Programming Manual page 481

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
1302
BREAK
Device X
Y
M
D
P
Symbol:
Explanation:
1.
The instruction BREAK is used to terminate the FOR/NEXT loop. The remaining number of
times the FOR/NEXT loop can be repeated is stored in D, and the execution of the program
jumps to the part of program specified by the pointer
2.
When the instruction BREAK is executed, the remaining number of times the FOR/NEXT loop
can be repeated is stored in D, including this time the instruction BREAK is executed.
Example:
When the FOR/NEXT loop is executed, 1 is added to the value in D0. When the value in D0 is equal
to 30, the FOR/NEXT loop is terminated, and the remaining number of times the FOR/NEXT loop
can be repeated, i.e. 71, is stored in D10. The execution of the program jumps to LABEL 1:, i.e.
network 6, and 1 is added to the value in D2.
Operand
D, P
P
S
T
C
HC
D
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction
AH500
Device in which the remaining
D :
number of times the loop can be
executed is stored
P : Pointer
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Terminating the FOR-NEXT loop
L
SM SR
E
PR
AH500
Function
K
16# "$"
DF
Word
Pointer
6 - 3 1 3

Advertisement

Table of Contents
loading

Table of Contents