Mitsubishi Electric MELSEC iQ-R Series User Manual page 71

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

Advertisement

Receive data clear with MOV instruction
Write to/read from the 'receive data clear request' (Un\G168/328) in the procedure below with the MOV instruction.
When resuming data communication with a target device, resume it after completing the receive data clear processing with
C24.
Depending on the data communication system, it may be necessary to restart data communications with the target device
after notifying the target device from the CPU module that resumption of communications is possible.
Create a program including contacts indicating the following status (such as flag for the user) in MOV
instruction.
• Contacts indicating that the 'CH reception data read request' (X3/XA) and 'CH reception abnormal
detection' (X4/XB) are OFF
• Contact indicating that no dedicated instruction (OUTPUT/PRR/INPUT) is currently being executed
• Contact indicating that receive data clear processing is not currently being performed
■Clear Procedure (When the CH1 side interface is used)
C24
Receive data
clear request
(Un\G168)
Ò
CPU module
(Program)
 Write "1" to the 'receive data clear request' (Un\G168) with the MOV instruction when no data reception, data transmission,
or receive data clearing processing is being performed.
 The receive data clear processing is executed to the OS area of the C24.(Page 58 Receive data arrangement)
 When receive data clear processing is completed, the 'receive data clear request' (Un\G168) becomes "0".
Transmission request execution disabled
Dedicated instruction
for transmission execution
disabled, too
"0"
MOV instruction
(Write "1" to address A8H)
3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
Ó
Receive
data clear
processing
Ô
"1"
"0"
3.1 Receiving Data from Target Device
3
69

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents