
251
CHAPTER 5 DEVICES
5
5.
3
I
n
te
rnal S
yst
em
Devices
5.
3.
1
F
unct
ion
devic
e
s (
F
X
, F
Y
, F
D
)
(c) Function register (FD)
The function register is used for data writing or reading between a subroutine program and a calling program.
The CPU module auto-detects the input or output conditions of the function register. Source data are input data
of the subroutine program. Destination data are output data of the subroutine program. The function register of
one point can occupy up to four words. Note that, however, the number of words used differs depending on the
instruction in the subroutine program.
• A one-word instruction uses one word only.
• A two-word instruction uses two words.
• At a destination using 32-bit multiplication or division, four words are used.
• Word devices of the CPU module can be used.
In subroutine programs with argument passing, do not use any devices that are used by the function register.
If this occurs, function register values will not be normally passed to the calling program.
Data are stored in D0 (1 point).
Data are stored in D0 and D1 (2 points).
Data are stored in D0 to D3 (4 points).
Since D0 to D3 are used for FD0, D3 cannot be
used in the subroutine program.
Содержание 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: ......