Omron SYSMAC CP Series Instruction & Reference Manual page 329

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Sample program
Sequential (Non-nested) Subroutines
Main program
1
Subroutines
2
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.
CP1E CPU Unit Instructions Reference Manual(W483)
A
0.00
SBS
1
B
0.01
SBS
2
C
SBN
1
S1
RET
SBN
2
S2
RET
END
1
CIO 0.00 ON
3
CIO 0.01 ON
5
0.00
ON
2
ON
OFF
OFF
4
Program end
2 Instructions
0.01
Order of execution
A → S1 → B → S2 → C
ON
A → S1 → B → C
OFF
A → B → S2 → C
ON
A → B → C
OFF
2-293
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents