EasyManuals Logo
Home>Omron>Computer Hardware>SYSMAC CP Series

Omron SYSMAC CP Series Instruction & Reference Manual

Omron SYSMAC CP Series
467 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #330 background imageLoading...
Page #330 background image
2 Instructions
2-294
CP1E CPU Unit Instructions Reference Manual(W483)
Nested Subroutines
When CIO 0.00 is ON in the following example, subroutine 1 is executed. If CIO 0.01 is ON, subroutine
2 is executed from within subroutine 1 and program execution returns to the next instruction after
SBS(091) 2 when subroutine 2 is completed. Execution of subroutine 1 continues and program execu-
tion returns to the next instruction after SBS(091) 1 when subroutine 1 is completed.
B
SBS
1
S1-2
A
SBN
1
RET
S1-1
SBS
2
S2
SBN
2
RET
END
1
5
2
4
3
CIO 0.00 ON
CIO 0.00 ON
0.00
0.01
Subroutine 1
Subroutine 2
0.00
ON
ON
OFF
OFF
Order of execution
A
S1-1
S2
S1-2
B
A
S1-1
S1-2
B
A
B
A
B
0.01
ON
OFF
ON
OFF

Table of Contents

Other manuals for Omron SYSMAC CP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP Series and is the answer not in the manual?

Omron SYSMAC CP Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals