
271
CHAPTER 5 DEVICES
5
5.
9
P
o
int
e
r (P
)
5.
9.
1
Local point
e
r
5.9.1
Local pointer
The local pointer is a pointer that can be used independently in jump instructions and subroutine call instructions in
each program. The same pointer number can be used in respective programs.
The local pointer can be divided for use of all the programs stored in the program memory. The local pointer number
ranges from P0 to the highest number of the local pointer in use. (The CPU module's system computes the number of
points used.)
Even if only P99 is used in a program, for example, the number of points used will be 100, which is from P0 to P99. For
using the local pointer for several programs, use the pointers in ascending order starting from P0 in each program.
The total is 600 points when the pointer is used as shown below.
●
When the program where the local pointer is described, the program cannot jump in from another program is not allowed.
Use the ECALL instruction from another program when calling a subroutine program in a program file that contains any
local pointer.
●
If the total number of pointers (in all programs) exceeds 4096 points, a "CAN'T SET (P)" (error code: 4020) occurs.
Program B
Program A
The same pointer
No. can be used.
Ex.
Ex.
100 points of P0 to
P99 occupied
200 points of P0 to
P199 occupied
300 points of P0 to
P299 occupied
Program A
Program B
Program C
Using P0 to P99
Using P100 to P199
Using P299 only
Use of P0 to
P99 occupies
100 points.
Use of P0
occupies 1 point.
Total of 600 points
are used.
Содержание 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: ......