Mitsubishi Electric melsec q00ujcpu User Manual page 574

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(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
Before replacemen
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
TableApp.29 Example of device assignment
Device
D0 to D3
Output string
Y100 to Y107
ASCII code output signal
Y108
Strobe signal
Y109
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
Figure App.6 Sample program
After replacement
Application
D0 to D3
Y100 to Y107
Y108
Y109
D20 to D21
D200 to D201
D202
D203
D204
D205
D206
D207
M200
Z0
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.
APPENDICES
1
2
3
Device
APPEN-
DIX
6
7
8
App - 30

Advertisement

Table of Contents
loading

Table of Contents