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
-
30
(3)
Replacement example of the PR instruction
The number of output characters can be switched by the on/off status of SM701.
(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.29 Example of device assignment
Before replacemen
After replacement
Application
Device
Application
Device
Output string
D0 to D3
Output string
D0 to D3
ASCII code output signal
Y100 to Y107
ASCII code output signal
Y100 to Y107
Strobe signal
Y108
Strobe signal
Y108
In-execution flag
Y109
In-execution flag
Y109
Output string storage address (BIN32)
D20 to D21
Output string storage address (BIN32)
(Used for sub-routine programs and
interrupt programs)
D200 to D201
Number of output characters
D202
Output module start Y number
D203
Character extraction position
D204
Number of extracted characters
D205
String output status value
D206
Result of string extraction by the MIDR
instruction
D207
String output in-execution flag
M200
For index modification
Z0
Figure App.6 Sample program
T
he
number
of
output
str
i
ngs
i
s
set
to
var
i
ab
l
e
.
(
O
utput
unt
il
ASC
II
code
00
H
appears
.
)
T
he
str
i
ngs
stored
i
n
D0
and
l
ater
are
output
from
Y
100
to
Y
108
.
Содержание melsec q00ucpu
Страница 2: ......
Страница 3: ......
Страница 13: ...A 10 Memo ...
Страница 620: ......
Страница 621: ......