KEYENCE Visual KV Series User Manual
Page 148

2.4 Instruction Details
3-124
2
Chapter 2 Instructions
■ Calling a subroutine from an interrupt program
•
Subroutines can be called from interrupt programs.
•
A subroutine which is called from an interrupt program should be defined before
the call.
Note 1: Subroutine Nos. for SBN instructions cannot be duplicated in a program.
(It can be duplicated for CALL instructions.)
Note 2: When a subroutine is executed, the scan time is extended by the time
needed for subroutine execution.
Note 3: The following instructions cannot be used in subroutines:
STG, JMP, ENDS, INT, RETI, and MEMSW
Note 4: The following instructions can be used only in subroutines which are ex-
ecuted every scan time:
TMR, TMH, TMS, C, SFT, UDC, DIFU, DIFD, W-UE, W-DE, HKEY, ITVL,
and Differentiation type instruction (@xxx)
SBN
00
0001
00
CALL
0002
INT
0000
ENDH
RET
RETI
END
0500
Call
Program
Subroutine program
CALL / SBN / RET
KVNKA Chap 02_4bP.p65
08.3.11, 0:00 PM
124
- LR-TB2000 Series (12 pages)
- LR-TB5000 Series (12 pages)
- LR-ZB250AN/AP (4 pages)
- LR-ZB250AN/P (3 pages)
- LR-ZBxN/P Series (3 pages)
- LR-ZBxxB (3 pages)
- OP-85135 (1 page)
- PZ-G Series (2 pages)
- PZ-V/M (2 pages)
- PS-N10 Series (12 pages)
- PX-10 (10 pages)
- CZ-V21A(P) (10 pages)
- CZ-K1(P) (8 pages)
- CZ-V1 (8 pages)
- FS-N10 Series (6 pages)
- FS-N10 Series (116 pages)
- FS-N15CN (1 page)
- FU-93(Z) (2 pages)
- FU-V Series (2 pages)
- FS-V30 (6 pages)
- FU-A40 (1 page)
- NU/FS-N Series (16 pages)
- FS-V33(P) (8 pages)
- FS-V21 (4 pages)
- FS-V22 (4 pages)
- FS-V11(P) (4 pages)
- FS-V1(P) (4 pages)
- LV-N10 Series (12 pages)
- LV-N10 Series (112 pages)
- LV-S62 (1 page)
- OP-84350 (1 page)
- LV-SA (10 pages)
- LV-SB (12 pages)
- OP-87305 (1 page)
- LV Series (10 pages)
- LV-B102 (1 page)
- EV-108M(U) (1 page)
- EZ Series (1 page)
- EM Series (1 page)
- ES-M1(P) (3 pages)
- EX-V Series (120 pages)
- EX-500(W) Series (16 pages)
- GV Series (10 pages)
- IA Series (8 pages)
- LB-1000(W) (24 pages)