
4-40
4.14 Program flow instructions
F
UNCTIONAL
D
ESCRIPTIONS
8310/8610-8
♦
With a serial data transmission by means of the LB2 protocol, dummy
values must be transferred after the code for the respective instruction (see
there) for all nominal value types that are contained in a normal sentence
(e.g. piece number, determined by the programmed sentence structure of
the unit) even if they have no meaning in this case (they are undefined).
4.14.1 Call subroutine (CALL Pr.)
If the Controller encounters the
CALL Pr.
instruction while processing a
program it will temporarily branch to the program with the indicated number
(beginning with sentence no. 1). This program is then executed as often as
specified by its cycles value. After the last program execution, processing of
the original program will be continued starting at the sentence following the
CALL instruction.
Up to 20 CALL instructions can be nested. If the number is exceeded, the
program is interrupted at the corresponding position and the error # 32 (
Too
many CALLs
) is stored in the fault memory (can be retrieved using
%+0
).
If another program is called from a subroutine (CALL) with JUMP then after
processing the other program a jump is made back to the program that
originally contained the CALL instruction (processing continues with the
sentence following the CALL instruction). A subroutine is consequently
terminated by a program jump (
JUMP Pr.
) included in the subroutine.
Input:
☛
°+1
☛
program number (1 ... 99)
☛
;
Upon the input, the existence of the specified program is not verified. If the
program does not exist the current program is aborted when the CALL
instruction is executed (controller is switched over to the reset state) and the
error # 20 (
Invalid program
) is stored in the fault memory.
Coding for serial transmission (length = 4 bytes):
byte:
4
(
MSB
)
3
2
1
(
LSB
)
10h
00h
00h
prg. 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 ...