7 Applied Instructions
7.12 Floating Point
461
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
Program example
1) This is a program for converting the content (binary floating decimal point data) of R0, R1 depending on
the content specified by R10 to R12 when the X000 is turned ON, and storing after the D0.
2) This is a program for converting the content (binary floating decimal point data) of R0, R1 depending on
the content specified by R10 to R12 when the X000 is turned ON, and storing after the D10.
All digits
0 3 30
Space Number of digits
below decimal point
0
7
3
R11
R1
R10
R12
Conversion
type
All digits
Number of
digits below
decimal point
R0
0.0327457
20H(space)
2EH(.)
b15 b8 b7 b0
Stored automatically.
33H(3)
00H
20H(space)
30H(0)
30H(0)
33H(3)
D1
D0
D2
D3
X000
DESTRP
EN
s1
s2
ENO
d1
VAR_01
*1
R10
VAR_02
*2
[Structured ladder] [ST]
DESTRP(X000,VAR_01,R10,VAR_02);
*1. VAR_01 is global label, and R10 is defined.
*2. VAR_02 is global label, and D0 is defined.
1(Index type)
12
4
R11
R10
R12
Conversion
type
All digits
Number of
digits below
decimal point
All digits
02 7 4 6 E 23
Number of digits
below decimal point
Space
R1 R0
0.0327457
20H(space)
2EH(.)
b15 b8 7b b0
Stored automatically.
37H(7)
36H(6)
20H(space)
33H(3)
34H(4)
45H(E)
2DH(-)
32H(2)
0000H
30H(0)
32H(2)
D10
D11
D12
D13
D14
D15
D16
X000
DESTRP
EN
s1
s2
ENO
d1
VAR_01
*1
R10
VAR_02
*2
[Structured ladder] [ST]
DESTRP(X000,VAR_01,R10,VAR_02);
*1. VAR_01 is global label, and R0 is defined.
*2. VAR_02 is global label, and D10 is defined.