Mitsubishi Electric MELSEC iQ-R Series User Manual page 96

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

Advertisement

For normal completion
D0
I/O No.
D1
Interface number
D2
Allowable receive data count
D3
Reception result
D4
Receive data count
D10
Received data
to
Dm
Received data
• Received data can also be read using interrupt programs.(Page 219 RECEIVING DATA WITH AN
INTERRUPT PROGRAM)
Note that if the reading of data received from the same interface is to be performed, it is not possible to
combine the reading of received data by the main program and that by the interrupt program.
Use either of the above program to read the data received.
• The SPBUSY instruction is used to read the execution status when using a dedicated instruction. (Page
520 Dedicated Instructions)
• More than one BIDIN instruction cannot be executed simultaneously on the same interface.
Execute the next BIDIN instruction only after the execution of the first BIDIN instruction is completed.
• When the send/receive data quantity is set in byte units and the receive data quantity is an odd byte when
requesting the reading of received data to the CPU module, 00H is stored in the higher byte of the last data
storage position in the receive area where received data is stored.
4 DATA COMMUNICATION USING BIDIRECTIONAL PROTOCOL
94
4.1 Receiving Data from Target Device
(1)
(10)
(0)
(n)
to
*
When the received data count is larger than the
allowable received data count, only the data up to
the allowable received data count will be stored
and the rest of the data will be discarded.
C24
Address
Buffer memory
Un\G600
Data reception result
Un\G1536
Receive data count
Un\G1537
to
Received data
Un\G2047

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents