Chapter 6 Instruction Details
XBC E-Type Main Unit
6-287
Ver. 1
6.38.2 CALL, CALLP, SBRT, RET
Instruction
Area Available
Step
Flag
P M K
F
L
T
C
S
Z D.x R.x
Con
st
U
N
D
R
Error
(F110)
Zero
(F111)
Carry
(F112)
CALL(P)
n
-
-
-
-
-
-
-
-
-
-
-
O
-
-
-
-
1
-
-
-
SBRT
n
-
-
-
-
-
-
-
-
-
-
-
O
-
-
-
-
5
-
-
-
Operand
Description
Data Type
n
Function’s label to call (English : up to 16, Korean : up to 8 characters)
STRING
1) CALL
(1) If input condition is allowed while program is executed, the program between SBRT “n” ~ RET instructions
will be executed according to CALL “n” instruction.
(2) CALL number can be duplicated and the program between SBRT “n” ~ RET instructions shall be behind
END instruction.
(3) Error processing conditions:
If the total SBRT number exceeds 512; program download is unavailable.
If CALL “n” exists but SBRT “n” does not.
(4) Calling other SBRT is available in SBRT up to 16 times.
(5) In SBRT, CALL can be located next to END.
2) Program Example
CALL INC_D0
P0002F
INCP D00000
F0092
MOV D00000 P0006
F0010
P00020
( )
P00050
P00021
P00022
END
SBRT INC_D0
RET
( )
P00051
SBRT
CALL(P)
P
n
SBRT
n
means CALL
END
RET
RET
Summary of Contents for XBC-DN10E
Page 1: ......
Page 10: ...Table of Contents Table of Contents 6 10 10 CLEAR ALL PLC 29...