Panasonic FP-E Programming Manual page 197

Fp series
Table of Contents

Advertisement

Nesting of subroutines is possible until the 5th nesting.
SUB 0
(Stage 2)
CALL1
SUB 1
RET
CALL2
RET
Called up from inside of the subroutine.
Flag conditions
・Error flag (R9007):
・Error flag (R9008):
Precautions during programming
In the interrupt program, a subroutine program cannot be used.
INT
SUB 21
RET
IRET
In the subroutine program, an interrupt program cannot be used.
SUB 21
INT
Interrupt program
IRET
RET
For the FP0/FP−e, subroutine program cannot be written inside another subroutine program.
SUB
SUB
RET
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
(Stage 3)
SUB 2
(Stage 4)
CALL3
SUB 3
RET
CALL4
RET
5th nesting example
Turns on and stays on when performing five nestings and executing the
CALL instruction for the subroutine of the 5th nesting.
Turns on for an instant when performing five nestings and executing the
CALL instruction for the subroutine of the 5th nesting.
1
Subroutine
0
Subroutine
0
2
Subroutine program
Subroutine
program
Basic Instructions
(Stage 5)
SUB 4
RET
2 − 87

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents