
F
UNCTIONAL
D
ESCRIPTIONS
4.14 Program flow instructions
4-41
8310/8610-8
4.14.2 Jump instructions (JUMP Pr., JMP sent)
If the Controller encounters the
JUMP Pr.
instruction while processing a
program it will directly branch to the program with the indicated number
(processing starts with sentence no. 1). With
JMP sent
processing will resume
at the indicated sentence, thus skipping certain sentences.
In order to avoid endless loops, the number of succeeding JUMP instructions
is limited to 5. If this number is exceeded, the program is interrupted at the
corresponding position and the error # 31 (
More as 5 JUMPs
) is
stored in the fault memory (can be retrieved with
%+0
). CALL instructions do
not influence the counter of JUMP instructions which means that they do not
interrupt a JUMP chain. This counter is, however, reset to zero by a positioning
process or an IF instruction.
If another program is called from a subroutine (CALL) with
JUMP Pr.
then after
processing the other program a jump is made back to the program that
originally contains the CALL instruction (processing continues with the
sentence following the CALL instruction).
Input:
JUMP Pr.
JMP sent
☛
°+2
☛
program no. (1 ... 99)
☛
;
☛
°+3
☛
sentence no. (1 ... 999)
☛
;
Upon the entry, the existence of the specified program or sentence is not
verified. If the program or sentence does not exist the current program is
aborted when the JUMP instruction is executed (controller is switched over
to the reset state) and the error # 20 (
Invalid program
) and/or
error # 30 (
Invalid sentence
) is stored in the fault memory.
Coding for serial transmission (length = 4
bytes):
byte:
4
(
MSB
)
3
2
1
(
LSB
)
JUMP Pr.
20h
00h
00h
prg. no.
JMP sent
40h
00h
sentence no.
Summary of Contents for GEL 8310
Page 14: ......
Page 122: ......
Page 133: ......
Page 152: ...A 18 STORAGE LOCATIONS FOR MACHINE PARAMETERS 8310 8610 8 Remarks ...
Page 180: ......
Page 210: ......
Page 213: ...FORMS Appendix Y 8310 8610 8 i ...
Page 226: ...UPDATE INFORMATION Appendix Z 8310 8610 8 i ...