EasyManua.ls Logo

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

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...
4 DATA COMMUNICATION USING BIDIRECTIONAL PROTOCOL
4.2 Transmitting Data to Target Device
99
4
Program for data transmission
Program example for data transmission
The following shows the program for data transmission and program example.
For details on the BIDOUT instruction, refer to the dedicated instructions. (Page 520 Dedicated Instructions)
Start the programmable controller on the host station.
The values specified with Engineering tool are stored in C24.
Inputs the user data transmission command signal.
Execute the BIDOUT instruction after storing the send data and the control data for the BIDOUT instruction in the device.
Data is sent when the BIDOUT instruction is executed.
A response for the data transmission (for normal completion: ACK message; for abnormal completion: NAK message) is
received.
When the response is received, C24 transmission processing completes and the device that has completed the BIDOUT
instruction turns ON.
0
n
M0 M1
G.BIDOUT
M0Un D0 D11
M1
Ò
Ó
Ô
Õ
BIDOUT
(CH1)
Transmission instruction
Create transmission data from D11
Create control data from D0
Processing for normal completion
Processing for abnormal completion (retransmission, etc.)
Module READY (X1E)
Transmission instruction
BIDOUT instruction
BIDOUT instruction completion device
ON when transmission abnormal completion
BIDOUT instruction completion device + 1
(Normal completion/abnormal completion)
1 scan
Transmission data count (Un\G1024)
Transmission data
Transmission data (from Un\G1025)
Receiving response
Data transmission

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals