Mitsubishi Q00JCPU User Manual page 926

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

APPENDICES
App
- 137
Appendix 5 Method of replacing High Performance model QCPU with Universal model QCPU
(5) Replacement example of the KEY instruction
A replacement example of program using the KEY instruction is shown below.
(a) Example of device assignment
Before replacement
Application
Numeric input execution
instruction
Input complete flag
Input data area
ASCII code input signal
Strobe signal
If the device numbers in the example above are used for other applications,
assign unused device numbers instead.
(b) Program before replacement
TableApp.70 Example of device assignment
Device
Numeric input execution
M0
instruction
M1
Input complete flag
D200 to D203
Input data area
X100 to X107
ASCII code input signal
X108
Strobe signal
Input data area address (BIN32)
(Input data area + 0) address
(BIN32)
(Input data area + 1) address
(BIN32)
(Input data area + 2) address
(BIN32)
For shifting input data
For converting input data
Figure App.15 Sample program
After replacement
Application
M0
M1
D200 to D203
X100 to X107
X108
D210 to D211
D212 to D213
D214 to D215
D216 to D217
D218
D219 to D220
Device

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents