![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262497.webp)
A-37
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-16 Subrou
tine In
str
uctions
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
A
V
G(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
V
alid 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)
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......