![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262489.webp)
A-29
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-12 Special Math Instr
u
ctions
COMPLE-
MENT
COM
@
Turns OFF all ON bits and turns ON all OFF bits in Wd.
DOUBLE
COMPLE-
MENT
COML
@
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
A-1-12
Special Math Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
ARITHMETIC
PROCESS
APR
@
Calculates the sine, cosine, or a linear extrapolation of the source
data.
The linear extrapolation function allows any relationship between
X and Y to be approximated with line segments.
BIT COUNTER
BCNT
@
Counts the total number of ON bits in the specified word(s).
N: Number of words
The number of words must be 0001 to FFFF (1 to 65,5
3
5 words).
A-1-13
Floating-point Math Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
FLOATING TO
16-BIT
FIX
@
Converts a
3
2-bit floating-point value to 16-bit signed binary data
and places the result in the specified result word.
FLOATING TO
3
2-BIT
FIXL
@
Converts a
3
2-bit floating-point value to
3
2-bit signed binary data
and places the result in the specified result words.
16-BIT TO
FLOATING
FLT
@
Converts a 16-bit signed binary value to
3
2-bit floating-point data
and places the result in the specified result words.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
COM(029)
Wd
Wd
: Word
Wd
→
Wd: 1
→
0 and 0
→
1
COML(614)
Wd
Wd
: Word
(Wd+1, Wd)
→
(Wd+1, Wd)
APR(069)
C
S
R
C
: Control word
S
: Source data
R
: Result word
BCNT(067)
N
S
R
N
: Number of words
S
: 1st source word
R
: Result word
S+(N
1)
−
to
R
N words
Counts the number of
ON bits.
Binary
result
FIX(450)
S
R
S
: 1st source word
R
: Result word
S+1
S
R
Signed binary data
(16 bits)
Floating-point data
(32 bits)
FIXL(451)
S
R
S
: 1st source word
R
: 1st result word
S+1
S
R+1
R
Signed binary data
(32 bits)
Floating-point data
(32 bits)
S
R
FLT(452)
S
: Source word
R
: 1st result word
R+1
R
S
Signed binary data
(16 bits)
Floating-point data
(32 bits)
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......