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 using nonprocedural protocol and its example.
For details on OUTPUT instructions, refer to the dedicated instruction. (Page 520 Dedicated Instructions)
Transmission instruction
M0
M1
M1
Module READY (X1E)
Transmission instruction
OUTPUT instruction
OUTPUT instruction completion device
OUTPUT 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 value set with Engineering tool is stored in the C24.
 Input the user data transmission command signal.
 Executes the OUTPUT instruction after storing the send data and the control data for the OUTPUT instruction in the
device.
Data is sent when the OUTPUT instruction is executed.
 C24 transmission processing completes and the OUTPUT instruction completion device turns ON.
When the completion device +1 (abnormal completion signal) turns ON, the error code is stored in the control data completion
status (S1+1).
3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
80
3.2 Transmitting Data to Target Device
Create transmission data from D11
G.OUTPUT
Processing for normal completion
Processing for abnormal completion(retransmission, etc.)
Ò
Ó
Ô
OUTPUT
0
Data transmission
Create control data from D0
Un
D0
D11
Õ
ON when transmission abnormal completion
1 scan
n
Transmission data
(CH1)
M0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents