Mitsubishi Electric MELSEC iQ-R Series User Manual page 80

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

Advertisement

(0)
The refresh processing of the module label is performed. (The processing is required for when using the module function block.
When the refresh processing is completed, 'bRunRefresh' (M0) is turned on.
(97)
When 'bStartRecv' (M9) is turned on, the data sent by the external device of connection No.17 is received and stored in 'uRecvData' (D2000).
(The device range in which data is stored varies depending on the data length of the received data.)
When the data receive is completed successfully, 'bRecv_OK' (M11) is turned on.
*1 The refresh processing using the above FB is not required when the Ethernet function of the CPU module (CPU part for the RnENCPU)
is used.
• Secure sufficient device areas according to the maximum length of data sent from the send source to
prevent the device areas used for other purposes from being overwritten by the receive data.
• When the data receive is consecutively executed, turn on pbi_bReadTiming (read timing) as shown in the
above program.
• To receive data at shorter intervals than the scan time of the CPU module, add the normally closed contact
of 'bRecv_OK' (M11) and 'bRecv_NG' (M12) to the execution conditions of FB for receiving as shown in the
above program. When there is no normally closed contact of 'bRecv_OK' (M11) and 'bRecv_NG' (M12),
'bStartRecvFB' (M17) is not turned off and on and the FB for receiving may not be executed.
7 COMMUNICATION EXAMPLES
78
7.1 Communication Examples of Ethernet
*1
)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents