APPENDICES
Appendix 5 Method of replacing High Performance model QCPU with Universal model QCPU
App
- 126
9
P
a
ra
met
e
rs
10
Device
Exp
la
n
at
ion
11
CP
U
M
odu
le
P
ro
cessi
ng
Ti
m
e
12
P
roc
e
d
ure
f
or W
rit
in
g
P
rog
ra
m t
o CP
U Mo
du
le
A
p
pe
nd
ic
e
s
In
de
x
Appendix 5.3.3 Program Replacement Examples
This section shows program replacement examples for the instructions of which
replacement programs are available in Appendix 5.3. (If instructions listed in Appendix 5.3
are not used in the program, it is not necessary to be conscious of the description in this
section.)
(1) Replacement example of the IX and IXEND instructions
A replacement example of program using the IX and IXEND instructions is shown
below.
Since index registers are saved using the ZPUSH instruction, a 23-word index
register save area is required.
(a) Example of device assignment
If the device numbers in the example above are used for other applications,
assign unused device numbers instead.
(b) Program before replacement
TableApp.67 Example of device assignment
Before replacement
After replacement
Application
Device
Application
Device
Index modification table
D100 to 115
Index modification table
D100 to D115
Index register save area
D200 to D222
Figure App.1 Sample program
Modification target
(No change required)
The modification value set in the
index modification table is added.