EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Program for Data Reception

Mitsubishi Electric MELSEC iQ-RJ71C24-R4
574 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...
92
4 DATA COMMUNICATION USING BIDIRECTIONAL PROTOCOL
4.1 Receiving Data from Target Device
Program for data reception
Program example for data reception
The following shows the program for data reception using the bidirectional protocol and program example.
For details on the BIDIN instruction, refer to the dedicated instructions. (Page 520 Dedicated Instructions)
Start the programmable controller on the host station. The value set with Engineering tool is stored in C24.
When data is received from the target device, the 'CH1 reception data read request' (X3) turns ON.
After the control data for the BIDIN instruction is stored in the device, the sequence program executes the BIDIN
instruction and reads the receive data.
When the reading of receive data is completed, a response message (ACK message when the operation was completed
normally) is sent and the device that has completed the BIDIN instruction turns ON.
X3
M0 M1
G.BIDIN M0Un D0 D10
(OFF)
m
n
BIDIN
Ò
Ó
Ô
Õ
(CH1)
Reception data read request
Create control data from D0
Processing for normal completion(Storing received data)
Module READY (X1E)
Reception data read request (X3)
BIDIN instruction
BIDIN instruction completion device
1 scan
BIDIN instruction completion device +1
(Normal completion/Abnormal completion)
Receive data count (Un\G1536)
Received data (Un\G1537 to 2047)
Received data
Data reception Response transmission

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals