Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
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
The number of output strings is set
to variable. (Output until ASCII code
00H appears.)
The strings stored in D0 and later are
output from Y100 to Y108.