EasyManuals Logo

Omron SYSMAC CP Series User Manual

Omron SYSMAC CP Series
578 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 #497 background imageLoading...
Page #497 background image
A-37
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-16 Subroutine Instructions
AVERAGE AVG --- Calculates the average value of an input word for the specified
number of cycles.
A-1-16 Subroutine Instructions
Instruction Mnemonic Variations Symbol/Operand Function
SUBROUTINE
CALL
SBS @ Calls the subroutine with the specified subroutine number and
executes that program.
SUBROUTINE
ENTRY
SBN --- Indicates the beginning of the subroutine program with the speci-
fied subroutine number.
SUBROUTINE
RETURN
RET --- Indicates the end of a subroutine program.
Instruction Mnemonic Variations Symbol/Operand Function
S
N
R
AVG(195)
S: Source word
N: Number of cycles
R: Result word
R + N + 1
R
R + 1
R + 2
R + 3
S: Source word
N: Number of cycles
Average
N values
Average Valid Flag
Pointer
SBS(091)
N
N: Subroutine number
Execution condition ON
Main program
Subroutine
program
(SBN(092) to
RET(093))
Program end
SBN(092)
N
N: Subroutine number
Subroutine region
or
RET(093)

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