Справочник Пользователя для Mitsubishi Electronics AJ65bt-r2

Скачать
Страница из 264
7 - 6
MELSEC-A
7   USING FRAMES WHEN EXCHANGING DATA
7.3 Receiving data using frames
With frame reception, when a statement containing data with the same arrangement as
the frame registered in R2, the R2 checks the reception statement frame, and stores
the received data in the buffer memory.
The frames checked consist of one head frame and one end frame. Up to four sets can
be set.
(Reception head frame No.: 
R 2
 108
H
 to 10B
H
, reception end frame No.: 
R 2
 10C
H
 to
10F
H
)
With frame reception, the word/byte unit, reception timeout time or reception end data
size for a random data section can be designated in the same manner as non-
procedural reception.
R2
1
H
 (SOH)
2
H
 (STX)
107
H
 (ETX, FFF1
H
)
...
...
...
Buffer memory
Reception head frame No.
Reception end frame No.
Transmission area
EEPROM (Registration frame)
 4AF
H
 (User registration frame)
Random data
section
External
device
Reception data
R2 5FF
H
...
Reception data
R2 401
H
Reception data size
R2 400
H
 No.1 (2
H
)
R2 108
H
 No.4
R2 10B
H
 No.1 (107
H
)
R2 10C
H
 No.4
R2 10F
H
...
...
Data 
reception! 
Check end frame!
Check head frame!
   STX
(Head 1)
ETX, FFF1
H
    (End 1)
...
...
*1 When R2 is the default value, indicates the buffer memory address.
*
1
(1)   Receiving using frames
The head frame set in the reception head frame No. designation (
R 2
 108
H
 to
R 2
 10B
H
) and the end frame designated in the reception end frame No.
designation (
R 2
 10C
H
 to 
R 2
 10F
H
) are checked, and the reception data is
recognized.
The data reception method is the same as when a frame is not used (non-
procedural communication), so refer to Chapter 6.