Mitsubishi Q00JCPU User Manual page 919

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

APPENDICES
(3) Replacement example of the PR instruction
A replacement example of program using the PR instruction is shown below.
The number of output characters can be switched by the ON/OFF status of SM701.
(a) Example of device assignment
Application
Output string
ASCII code output
signal
Strobe signal
In-execution flag
If the device numbers in the example above are used for other applications,
assign unused device numbers instead.
(b) Program before replacement
Appendix 5 Method of replacing High Performance model QCPU with Universal model QCPU
TableApp.68 Example of device assignment
Before replacement
Device
D0 to D3
Y100 to Y107
Y108
Y109
Figure App.6 Sample program
After replacement
Application
Output string
ASCII code output signal
Strobe signal
In-execution flag
Output string storage address
(BIN32)
Output string storage address
(BIN32)(Used for sub-routine
programs and interrupt programs)
Number of output characters
Output module start Y number
Character extraction position
Number of extracted characters
String output status value
Result of string extraction by the
MIDR instruction
String output in-execution flag
For index modification
The number of output strings is set
to variable. (Output untill ASCII code
00
appears.)
H
The strings stored in D0 or later are
output to Y100 to Y108.
9
10
Device
D0 to D3
11
Y100 to Y107
Y108
Y109
D20 to D21
D200 to D201
12
D202
D203
D204
D205
D206
D207
M200
Z0
App
- 130

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents