
248
5.2.13
Link register (W)
The link register data register whose device number is represented in hexadecimal. In the link register, numeric
data (-32768 to 32767, or 0000
H
to FFFF
H
) are stored.
(1) Bit structure of the file register
(a) Bit structure and write/read unit
One point of the link register consists of 16 bits, and data can be written or read in units of 16 bits.
Link register data are handled as signed data. In the case of the hexadecimal notation, 0000
H
to FFFF
H
can be stored.
However, because the most significant bit represents a sign bit, decimal values that can be specified are -32768 to 32767.
(b) Using in a 32-bit instruction
For a 32-bit instruction, two consecutive points of the data register (W
n
and W
n+1
)are the target of the
processing. The lower 16 bits correspond to the link register number (W
n
) specified in the program, and the
higher 16 bits correspond to the specified link register 1.
When W12 is specified in the DMOV instruction, W12 represents the lower 16 bits and D13 represents the
higher 16 bits.
Data of -2147483648 to 2147483647 or 00000000
H
to FFFFFFFF
H
can be stored in a two-point area of the link
register. (The most significant bit in a 32-bit structure is a sign bit.)
(2) Retention of stored data
The data stored in the link register are held until other different data are stored. Note that the stored data are
initialized when the CPU module is powered off or reset.
Wn
b15
to
b0
The most significant bit is a sign bit.
Ex.
Ex.
W13
W12
Processing target: W12, W13
Upper 16 bits Lower 16 bits
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......