Receive End Data Quantity And Receive End Code Settings - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

Receive end data quantity and receive end code settings

Setting method before receiving data
The following default values have been set for the receive end data quantity and receive end code that are used for data
reception with the nonprocedural protocol.
Setting data
Default
value
Receive end data
511 (1FFH)
quantity
Receive end code
0D0AH
(CR+LF)
The receive end data quantity and the receive end code setting value can be changed by the program before data reception
processing.
The default value can be changed in the following unit parameter of Engineering tool.
Navigation window  [Parameter]  [Module Information]  "Module Name"  [Module Parameter]  "Basic Settings"
 "Various control specification"
For details, refer to the following section.
Page 422 PARAMETER SETTING
Setting method after receiving data
Other than through the setting using Engineering tool or the MOV instruction at the startup of the C24, the receive end data
quantity and receive end code setting values can be changed even after data communication has started if the timing is as
shown below.
The following describes the restriction of the module, and the timing and procedure for changing setting values to continue the
data receive processing by changing the setting values for data reception using the nonprocedural protocol after the start of
data communication.
■How to receive data
Reception using an interrupt program
performed.)
Data must be received by the main program.
The following shows the I/O signals.
*1 For details on the data reception using interrupt programs, refer to the following section.
Page 219 RECEIVING DATA WITH AN INTERRUPT PROGRAM
Type
Input/Output Signals
CH1 side
Reception
X3
X4
When the 'CH reception abnormal detection' (X4/XB) turns ON, read the error code from the buffer memory
below, and then check the type of error and take corrective actions.(Page 473 Error Code List)
• 'Data reception result' (Un\G600/616)
3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
74
3.1 Receiving Data from Target Device
Allowable range
Less than the size of the receive
data storage area
0000H to 00FFH
FFFFH
*1
cannot be performed. (Transmission using a dedicated instruction (OUTPUT) can be
Signal name
CH2 side
XA
Reception data read request
XB
Reception abnormal detection
Buffer memory address where the setting
value is stored
Un\G164/324
Un\G165/325
Device that turns ON/OFF
CPU module
Remarks
Unit is in accordance with
the word/byte
units designation.
When any code is set.
When there is no receive
end code.
C24

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents