127
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
5 How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers)
1
In
troduct
io
n
2
Ov
e
rv
ie
w
3
In
st
ru
ct
ion
Li
st
4
D
evi
ce
s
in
De
ta
il
5
Speci
fied t
h
e
D
evi
ce &
C
onst
a
nt
6
Bef
o
re
Pr
ogr
a
m
m
ing
7
Bas
ic
In
st
ru
cti
o
n
8
FNC0
0
-FNC0
9
P
ro
g
ra
m F
lo
w
9
FNC1
0
-FNC1
9
M
ov
e
&
C
om
par
e
10
FNC
20-
FNC
2
9
Ar
ith.
&
Logi
c
O
per
at
io
n
6. Real numbers (floating point data)
FX
3U
and FX
3UC
PLCs have the floating point operation function to achieve operation of high accuracy.
In floating point operations, binary floating points (real numbers) are used, and scientific notation (real
numbers) are used for monitoring them.
5.1.2
Conversion of numeric values
Numeric values handled in FX PLCs can be converted as shown in the table below:
Major applications
5.1.3
Handling of numeric values in floating point operations
Handling of numeric values in floating point operations
Binary integers are handled inside PLCs.
In division of integers, an answer "40
÷
3 = 13 ... 1" is obtained, for example.
In square root extraction operations, decimal points are rounded off.
In FX
3U
and FX
3UC
PLCs, floating point operations are available to achieve higher accuracy in such
operations.
Decimal number
(DEC)
Octal number (OCT)
Hexadecimal number
(HEX)
Binary number (BIN)
BCD
0
0
00
0000
0000
0000
0000
1
1
01
0000
0001
0000
0001
2
2
02
0000
0010
0000
0010
3
3
03
0000
0011
0000
0011
4
4
04
0000
0100
0000
0100
5
5
05
0000
0101
0000
0101
6
6
06
0000
0110
0000
0110
7
7
07
0000
0111
0000
0111
8
10
08
0000
1000
0000
1000
9
11
09
0000
1001
0000
1001
10
12
0A
0000
1010
0001
0000
11
13
0B
0000
1011
0001
0001
12
14
0C
0000
1100
0001
0010
13
15
0D
0000
1101
0001
0011
14
16
0E
0000
1110
0001
0100
15
17
0F
0000
1111
0001
0101
16
20
10
0001
0000
0001
0110
•••
•••
•••
•••
•••
•••
•••
99
143
63
0110
0011
1001
1001
•••
•••
•••
•••
•••
•••
•••
Decimal number
(DEC)
Octal number (OCT)
Hexadecimal number
(HEX)
Binary number (BIN)
BCD
Constants (K) and
numbers of internal
devices except I/O
relays
Numbers of internal
I/O relays
Constants (H)
Processing inside
PLC
BCD digital switches
and seven-segment
display units
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......