EasyManua.ls Logo

Mitsubishi Q12PRHCPU - Appendix 6.10 BIDIN Instruction

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...
APPENDICES
Appendix 6 Precautions for Using Serial Communication Module
Appendix 6.10 BIDIN Instruction
App - 54
9
PROCESSING TIME
FOR REDUNDANT
SYSTEMS
APPENDICESINDEX
Appendix 6.10 BIDIN Instruction
The following shows the device and buffer memory used in the sample program of
receiving data by the bidirectional protocol communication.
(1) Device of programmable controller CPU
(2) I/O signal
(3) Buffer memory
The program example of receiving data by the bidirectional protocol communication is
shown in Diagram App.35.
(For the I/O signal is X/Y80 to X/Y9F)
Table.App 45 Device Used in the Program
Device No. Application Remarks
X30 Error code read command ON: Error code read
X60 Clear command ON: Clear completion
Table.App 46 List of I/O Signal
I/O signal
Signal name Description
CH1 side CH2 side
Xn3 XnA Reception data read request ON: Requesting read
X(n+1)F
Watchdog timer error
(WDT error)
ON : Module error occurred
OFF: Module being normally operated
Yn1 Yn8 Reception data read completion ON: Data read completed
Table.App 47 List of Buffer Memory
Buffer memory address Hexadecimal
(decimal)
Name Stored value
CH1 side CH2 side
258
H
(600) 268
H
(616)
Data reception result
0 : Normal completion
1 or more: Abnormal completion
(error code)
600
H
(1536) A00
H
(2560)
Receive data count
(Number of data for which
read is requested)
0: No receive data
1 or more: Number of receive data
601
H
to
7FF
H
(1537 to 2047)
A01
H
to
BFF
H
(2561 to 3071)
Receive data
Data received from an external
device
Diagram App.35 Program Example
Error code
read
Reads the number of receive data
Stores the number of read data to index
register (Z0)
Reads the receive data for the
number of receive data.
Reads the receive error code.
Check the error description and take corrective
action according to the error code stored in D8000.
Turns ON the read completion signal.
Turns LED OFF and clears error code
0
X83
22
X83
X9F
FROMP H8 H600 D0 K1
FROMP H8 H601 D1 K0Z0
MOVP D0 Z0
15
X9F
FROMP H8 H258 D8000 K1
Y81
24
Y8E
X30
X60

Table of Contents

Related product manuals