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 #329 background imageLoading...
Page #329 background image
2-293
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Subroutines Instructions
2
SBS
Sample program
Sequential (Non-nested) Subroutines
When CIO 0.00 is ON in the following example, subroutine 1 is executed and program execution
returns to the next instruction after SBS(091) 1. When CIO 0.01 is ON, subroutine 2 is executed and
program execution returns to the next instruction after SBS(091) 2.
B
SBS
1
S1
A
SBS
2
RET
C
SBN
1
S2
SBN
2
RET
END
1
3
5
2
4
CIO 0.00 ON
1
2
0.00
0.01
0.00
ON
ON
OFF
OFF
Order of execution
A
S1
B
S2
C
A
S1
B
C
A
B
S2
C
A
B
C
0.01
ON
OFF
ON
OFF
CIO 0.01 ON
Program end
Main program
Subroutines

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