4: I
NSTRUCTIONS
R
EFERENCE
4-10
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
Data Types for Advanced Instructions
When using move, data comparison, binary arithmetic, Boolean computation, bit shift/rotate, data conversion, and coordinate
conversion instructions, data types can be selected from word (W), integer (I), double word (D), long (L), or float (F). For other
advanced instructions, the data is processed in units of 16-bit word.
Decimal Values and Hexadecimal Storage (Word, Integer, Double, and Long Data Types)
The following table shows hexadecimal equivalents which are stored in the CPU, as a result of addition and subtraction of the
decimal values shown:
Data Type
Symbol
Bits
Quantity of Data
Registers Used
Range of Decimal Values
Word (Unsigned 16 bits)
W
16 bits
1
0 to 65,535
Integer (Signed 15 bits)
I
16 bits
1
–32,768 to 32,767
Double Word (Unsigned 32 bits)
D
32 bits
2
0 to 4,294,967,295
Long (Signed 31 bits)
L
32 bits
2
–2,147,483,648 to 2,147,483,647
Float (Floating point)
F
32 bits
2
–3.402823
10
38
to 3.402823
10
38
Data Type
Result of Addition
Hexadecimal Storage
Result of Subtraction
Hexadecimal Storage
Word
0
65535
131071
0000
FFFF
(CY) FFFF
65535
0
–1
–65535
–65536
FFFF
0000
(BW) FFFF
(BW) 0001
(BW) 0000
Integer
65534
32768
32767
0
–1
–32767
–32768
–32769
–65535
(CY) 7FFE
(CY) 0000
7FFF
0000
FFFF
8001
8000
(CY) FFFF
(CY) 8001
65534
32768
32767
0
–1
–32767
–32768
–32769
–65535
(BW) 7FFE
(BW) 0000
7FFF
0000
FFFF
8001
8000
(BW) FFFF
(BW) 8001
Double Word
0
4294967295
8589934591
00000000
FFFFFFFF
(CY) FFFFFFFF
4294967295
0
–1
–4294967295
–4294967296
FFFFFFFF
00000000
(BW) FFFFFFFF
(BW) 00000001
(BW) 00000000
Long
4294967294
2147483648
2147483647
0
–1
–2147483647
–2147483648
–2147483649
–4294967295
(CY) 7FFFFFFE
(CY) 00000000
7FFFFFFF
00000000
FFFFFFFF
80000001
80000000
(CY) FFFFFFFF
(CY) 80000001
4294967294
2147483648
2147483647
0
–1
–2147483647
–2147483648
–2147483649
–4294967295
(BW) 7FFFFFFE
(BW) 00000000
7FFFFFFF
00000000
FFFFFFFF
80000001
80000000
(BW) FFFFFFFF
(BW) 80000001
Содержание microsmart pentra
Страница 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Страница 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Страница 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...