1
2
3
APPEN-
DIX
6
7
8
Appendix 3 Me
thod of R
epla
cing Basic Mod
el QCPU
or H
igh
Perfor
mance
Model QCPU with U
niversal
Model QCPU
Appendix 3.3 Instructions
APPENDICES
App
-
32
2) Subroutine program
• In the subroutine program, the data for outputting ASCII codes using a fixed scan interrupt program
(10ms) are set to work devices. Also, the flag for activating the processing in the fixed scan interrupt pro-
gram is turned on.
• Specify the following arguments for the subroutine program.
First argument
Output string storage address
(Input)
Second argument
Output module start Y number
(Input)
Figure App.9 Sample program
Data
spec
i
f
i
ed
by
the
CA
LL
(P)
arguments
are
saved
.
O
utput
str
i
ng
storage
address
N
umber
of
output
str
i
ngs
O
utput
modu
l
e
start
number
Dev
i
ces
used
for
the
str
i
ng
output
process
i
ng
of
the
i
nterrupt
program
I
31
are
i
n
i
t
i
a
liz
ed
.
Y
n0
to
Y
n7
(ASC
II
code)
,
Y
n8
(strobe
s
i
gna
l
)
,
and
Y
n9
(
i
n
-
e
x
ecut
i
on
f
l
ag)
are
a
ll
turned
OFF.
T
he
f
l
ag
for
act
i
vat
i
ng
the
str
i
ng
output
process
i
ng
i
n
the
i
nterrupt
program
i
s
turned
on
.