EasyManua.ls Logo

Mitsubishi Q12PRHCPU - Page 406

Mitsubishi Q12PRHCPU
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
App - 45
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.5 GETE Instruction
APPENDICES
The program example of reading the user registration frame is shown in Diagram App.30.
(For the I/O signal is X/Y80 to X/Y9F)
Diagram App.30 Program Example
Pulse-outputs read command
Sets the read request
Sets the frame No. to be read
Writes read command etc.
Sets read flag
Turns ON the read
request signal.
Reads result of read if read
completion signal is turned ON
Turns OFF the read request signal.
Reads the number of user
registration frames.
Reads the user registration frame.
Resets the read flag.
0
M1
PLS M0
SET M1
17
X97M1
SET Y97
RST Y97
RST M1
X9FX9E
TO H8 H2 D0 K2
X97
FROM H8 H4 D2 K1
FROM=D2K0 H8H5D3 K1
FROM H8 H6 D4 K0Z0
/ D3 K2 D50
+ D50 D51 Z0
4
M0
MOV K2 D0
MOV H3EB D1
X50
Converts the number of bytes
into the number of words.
Add 1 to the number of read
words for the odd data.

Table of Contents

Related product manuals