Program For Data Transmission - Mitsubishi Electric MELSEC iQ-R Series User Manual

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

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)
Transmission instruction
M0
M1
M1
Module READY (X1E)
Transmission instruction
BIDOUT instruction
BIDOUT instruction completion device
BIDOUT instruction completion device + 1
(Normal completion/abnormal completion)
Transmission data count (Un\G1024)
Transmission data (from Un\G1025)
 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.
Create transmission data from D11
Create control data from D0
G.BIDOUT
Un
Processing for normal completion
Processing for abnormal completion (retransmission, etc.)
Ò
Ó
Ô
BIDOUT
0
Data transmission
4 DATA COMMUNICATION USING BIDIRECTIONAL PROTOCOL
(CH1)
D0
D11
M0
Õ
ON when transmission abnormal completion
1 scan
n
Transmission data
Receiving response
4.2 Transmitting Data to Target Device
4
99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents