Relays, Memory Areas and Constants
1.3
Explanation of Memory Areas
1.3.1
Data Register (DT)
Function of data registers (DT)
Data registers are memory areas which are handled in word (16−bit) units, and are used
to store data such as numerical data configured of 16 bits.
Bit position 15
1211
· · ·
0 0 0
1 1
DTn
Example of a program which writes a numeric value to DTn.
F0, MV, K0, DT n
When 32-bit (double word) data is handled in data registers, use two data registers as
a set. The number of the data register for the lower 16 bits is specified.
DTn+1
0
0 0
1
1
0
1
0
higher 16-bit area
1 - 44
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
8
7
4 3
0
· ·
· ·
· ·
0
1
0
0
1
0
1 1
0
0 0
0
1
0
1
0 0 1
0
0 0
Decimal constant (K) or
hexadecimal constant (H)
DTn
0
1 1
0
1
0
0
lower 16-bit area
1
0
1 1
0
0 0