Mitsubishi Electronics AJ65bt-r2 ユーザーズマニュアル

ページ / 264
6 - 8
MELSEC-A
6   EXCHANGING DATA WITH AN EXTERNAL DEVICE
R2 buffer
memory address
Name
Details
R 2
 102
H
Word/byte unit
designation
Set the transmission data and reception data unit (word/byte) for when
exchanging data between the R2 and external device.
    0 : Word unit (default value)
    1 : Byte unit
 * This is also used as the unit of the values handled in the actual
transmission data size storage area (
R 2
 1B4
H
) and OS reception area
data size storage area (
R 2
 1B6
H
).
R 2
 111
H
Reception complete
data size designation
Designate the reception complete data size for setting the reception data
("random data" when receiving frames" read to a fixed length.
Designate the reception complete data size value so that it is smaller than
the reception data storage area size.
(The reception data storage area size is the reception area size minus 1.)
 For word unit: Reception complete data size 
 (Reception area size -1)
 For byte unit : Reception complete data size 
 (Reception area size -1) 
×
 2
When receiving non-procedural data, always set the reception complete
data size (1 or more). When receiving data with frames, the reception
complete data size (0 or more) can be set.
If the reception complete data size is 0, the reception will be completed
when the reception head/end frame designated in 
R 2
 108
H
 to 10F
H
 is
received. (Refer to section 7.3.)
The data size unit follows the word/byte unit designation (
R 2
 102
H
).
: Do not designate reception complete data size (default
  value)
Other than 0 : Reception complete data size
R 2
 112
H
Reception timeout time
designation
Set the timeout time from when the first valid reception data is received to
when the reception is completed during data reception.
When the reception timeout is applied, the reception error read request
signal (RXn3) will turn ON, and BB21
H
 will be stored in the reception error
code area (
R 2
 1B2
H
).
  0
: Unlimited wait (default value)
  1 to 32767 : Reception timeout time ( 
×
 100ms)
  1: For non-procedural reception
The time from when the head data is received to when the reception
complete data size data is received.
  2: When receiving with frames
"When reception head frame and reception end frame are set"
Time from when head frame head data is received to when
reception end frame end data is received.
"When only reception head frame is set"
Time from when head frame head data is received to when
reception end data size data is received.
"When only reception end frame is set"
Time from when random data section head data is received to
when reception end frame end data is received.
R 2
 1B6
H
OS reception area data
size storage
The word/byte size of the data stored in the R2 OS reception area
(remaining reception data for which read has not been requested to
programmable controller CPU) is stored.
This is updated every 100ms.
The data size unit follows the word/byte unit designation (
R 2
 102
H
).