A-31
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-1
3
Floating-point Math
Instr
u
ctions
FLOATING
SYMBOL
COMPARISON
LD, AND, or OR
+
=F, <>F, <F,
<=F, >F, or >=F
---
Compares the specified single-precision data (
3
2 bits) or con-
stants and creates an ON execution condition if the comparison
result is true.
FLOATING-
POINT TO
ASCII
FSTR
@
Converts the specified single-precision floating-point data (
3
2-bit
decimal-point or exponential format) to text string data (ASCII) and
outputs the result to the destination word.
C: First Control Word
Note
There are limits on the total number of characters and the
number of fractional digits.
ASCII TO
FLOATING-
POINT
FVAL
@
Converts the specified text string (ASCII) representation of sin-
gle-precision floating-point data (decimal-point or exponential for-
mat) to
3
2-bit single-precision floating-point data and outputs the
result to the destination words.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
S1
S1
S2
S1
S2
S1
: Comparison data 1
S2
: Comparison data 2
S2
Using LD:
Using AND:
Using OR:
Symbol, option
Symbol, option
Symbol, option
<F
S1
S2
<F
S1
S2
<F
S1
S2
LD connection
AND connection
OR connection
ON execution condition when
comparison result is true.
ON execution condition when
comparison result is true.
ON execution condition when
comparison result is true.
FSTR(44
8
)
S
C
D
S:
1st source word
C
: Control word
D
: Destination word
Total characters
Data format
Fractional digits
0 hex: Decimal format
1 hex: Scientific notation
2 to 1
8
hex (2 to 24 characters, see note)
0 to 7 hex (see note)
F
V
AL(449)
S
D
S:
Source word
D
: 1st destination word
Содержание 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: ......