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 #489 background imageLoading...
Page #489 background image
A-29
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-12 Special Math Instructions
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,535 words).
A-1-13 Floating-point Math Instructions
Instruction Mnemonic Variations Symbol/Operand Function
FLOATING TO
16-BIT
FIX @ Converts a 32-bit floating-point value to 16-bit signed binary data
and places the result in the specified result word.
FLOATING TO
32-BIT
FIXL @ Converts a 32-bit floating-point value to 32-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 32-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)

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