
A. MACRO PROGRAM EXAMPLE
B–62093E–1/02
APPENDIX
166
To use the routines (O9501, O9502, O9503) with which the cursor
position is associated among the following routines, the cursor data
corresponding to the screen selected at that time should be selected.
Specifically, set the following;
P–CODE variables
#100 = Cursor control No. of screen being selected at present
#104 = Cursor pointer (Initial value 0)
#105 = Cursor subpointer (Initial value 0)
#104 and #105 values are automatically changed each time the cursor key
is pressed.
On the screen with no cursor, set #100 to “0”
(1) DDPL O9501
1. Function
This function displays the input data variable (KDATA value) in
the position deviated in the X–direction by “CINT” from the
cursor position.
2. Calling format
#140= f (F) : Total digits and digits under decimal point
#141= z (Z) : Reading zero
M98 P9501
f and z are the values commanded by G243.
3. Remark
When this routine is executed , the cursor display position
advances by one.
#140 and #141 values are saved.
(2) CDPL O9502
1. Function
This function displays the cursor.
The cursor position is determined by #100 – #105 and #10000–
values.
2. Calling format
#140=n
M98 P9502
n= 0 : No cursor pointer changes.
1 : The cursor pointer is advanced by one, displaying the
cursor.
2 : The cursor pointer is retracted by one, displaying the
cursor.
3. Remark
After this routine is executed, the #140 value is saved.
A.2.4
Standard Routine