Data Types For Advanced Instructions - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

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.
Data Type
Word (Unsigned 16 bits)
Integer (Signed 16 bits)
Double Word (Unsigned 32 bits)
Long (Signed 32 bits)
Float (Floating point)
• When a constant is set in WindLDR, it can be set as decimal or hexadecimal number. Prefix the number with "$" to set it as a hexadecimal
number.
Decimal Values and Hexadecimal Storage (Word, Integer, Double, and Long Data)
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
Result of Addition
Word
Integer
Double Word
Long
Symbol
W
I
D
L
F
Hexadecimal Storage
0
65,535
131,071
65,534
32,768
32,767
0
–1
–32,767
–32,768
–32,769
–65,535
0
4,294,967,295
8,589,934,591
4,294,967,294
2,147,483,648
2,147,483,647
0
–1
–2,147,483,647
–2,147,483,648
–2,147,483,649
–4,294,967,295
FC6A S
MICROS
ERIES
MART
Quantity of Data
Bits
Registers Used
16 bits
1
16 bits
1
32 bits
2
32 bits
2
32 bits
2
Result of Subtraction
0000
FFFF
(CY) FFFF
(CY) 7FFE
(CY) 0000
7FFF
0000
FFFF
8001
8000
(CY) FFFF
(CY) 8001
00000000
FFFFFFFF
(CY) FFFFFFFF
(CY) 7FFFFFFE
(CY) 00000000
7FFFFFFF
00000000
FFFFFFFF
80000001
80000000
(CY) FFFFFFFF
(CY) 80000001
L
P
M
ADDER
ROGRAMMING
3: I
NSTRUCTIONS
Range of Decimal Values
Decimal
0 to 65,535
–32,768 to 32,767
0 to 4,294,967,295
–2,147,483,648 to
2,147,483,647
38
–3.402823×10
to
38
3.402823×10
Hexadecimal Storage
65,535
0
–1
–65,535
–65,536
65,534
32,768
32,767
0
–1
–32,767
–32,768
–32,769
–65,535
4,294,967,295
0
–1
–4,294,967,295
–4,294,967,296
4,294,967,294
2,147,483,648
2,147,483,647
0
–1
–2,147,483,647
–2,147,483,648
–2,147,483,649
–4,294,967,295
FC9Y-B1726
ANUAL
R
EFERENCE
Hexdecimal
$0000 to $FFFF
$8000 to $7FFF
$00000000 to
$FFFFFFFF
$80000000 to
$7FFFFFFF
FFFF
0000
(BW) FFFF
(BW) 0001
(BW) 0000
(BW) 7FFE
(BW) 0000
7FFF
0000
FFFF
8001
8000
(BW) FFFF
(BW) 8001
FFFFFFFF
00000000
(BW) FFFFFFFF
(BW) 00000001
(BW) 00000000
(BW) 7FFFFFFE
(BW) 00000000
7FFFFFFF
00000000
FFFFFFFF
80000001
80000000
(BW) FFFFFFFF
(BW) 80000001
3-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents