Appendix 13Communication Examples Using Serial Communication Module - Mitsubishi Electric MELSEC iQ-R C R12CCPU-V User Manual

Controller module
Hide thumbs Also See for MELSEC iQ-R C R12CCPU-V:
Table of Contents

Advertisement

Appendix 13
When communicating by using a serial communication module, data communication using nonprocedural protocol is required.
This section shows the communication examples using a serial communication module in a C Controller module.
For details on sample programs, please consult your local Mitsubishi representative.
Receiving data from target devices
The following shows the communication example when receiving data.
Data reception
Target device
Serial communication module
User program
Input/output signal of serial communica-
tion module
Reception data read request
(X3/XA)
Reception data read completion
(Y1/Y8)
: The reception data read request (X3/XA) is monitored by using the C Controller module dedicated function
(CCPU_X_In_BitEx). When receiving data from the target device, the reception data read request (X3/XA) turns ON.
: The reception data is read from the buffer memory for reception by using the C Controller module dedicated function
(CCPU_FromBuf) after the reception data read request (X3/XA) turns ON.
: The reception data read completion (Y1/Y8) turns ON by using the C Controller module dedicated function
(CCPU_Y_Out_BitEx).
: The reception data read request (X3/XA) is monitored by using the C Controller module dedicated function
(CCPU_X_In_BitEx). Wait until the signal turns OFF.
: The reception data read completion (Y1/Y8) turns OFF by using the C Controller module dedicated function
(CCPU_Y_Out_BitEx).
Communication Examples Using Serial
Communication Module
Data reception
start
completion
Reception
data read
Ò
Appendix 13 Communication Examples Using Serial Communication Module
Reception data read
completion ON
Ó
Ô
Reception data read
completion OFF
Õ
Ö
APPX
A
251

Advertisement

Table of Contents
loading

Table of Contents