Mitsubishi Electric MELSEC iQ-R Series User Manual page 77

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

Advertisement

■Setting values that can be changed
Of the initial settings from Engineering tool stored in the buffer memory, only the following setting values can be changed after
data communication has started.
• 'Receive end data quantity designation' (Un\G164/324)
• 'Receive end code designation' (Un\G165/325)
■Timing and procedure for changing the setting values
● Timing of change
To change the receive end code and receive end data quantity after data communication has started, change the setting when
the status of the I/O signals relating to the reading of received data is as shown below.
• 'CH Reception data read request' (X3/XA) or 'CH reception abnormal detection' (X4/XB): ON
● Change procedure
When the 'CH reception data read request' (X3/XA)/'CH reception abnormal detection' (X4/XB) turns ON upon data
reception from the target device, perform the following and execute the INPUT instruction.
• Change the setting values for the receive end code and the receive end data quantity.
Ex.
When reading data received in the CH1 side interface
Data 1
Target device
CPU module
Reception data read
Ò
request (X3)
Received data count designation
(Un\G164) Setting value-A
Receive data code designation
Setting value-1
(Un\G165)
■Program example
Category
Label name
Module label
C24_1
C24_1.stnCH1.bSet_Req_ReceptionRead
C24_1.stnCH1.bSts_ReceptionAbnormalDetection
C24_1.stnCH1.uSet_ReceivedDataCount_Reception_D
C24_1.stnCH1.uSet_ReceiveCompleteCode_Reception_D
Label to be defined
Define the global label as shown below.
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
Data 2
Data read request using
setting value -A/-1
Õ
INPUT instruction
Ó
Setting value-B
Ô
Setting value-2
3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
Data read request using
setting value -B/-2
Description
Target module
CH1 Reception data read request
CH1 Reception abnormal detection
CH1_'Receive end data quantity
designation
CH1_Receive end code designation
3.1 Receiving Data from Target Device
3
Device
X3
X4
U0\G164
U0\G165
75

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents