Mitsubishi Electronics AJ65bt-r2 Manuel D’Utilisation

Page de 264
7 - 2
MELSEC-A
7   USING FRAMES WHEN EXCHANGING DATA
7.2 Transmitting data using frames
When transmitting data using frames, the following two frame addition methods can be
used.
A word/byte unit and transmission timeout time can be designated for the random data
section, in the same manner as non-procedural transmission.
Add one frame to the head and end of a random data item, and transmit to the
external device.
(Use transmission frame 1 area)
Add only up to 100 frames, and transmit to the external device.
In this case, the random data being transmitted will be handled as part of the frame.
(Use transmission frame 2 area)
7.2.1 Transmitting using transmission frame 1 area
The data can be transmitted with one frame added to the head and end of the random
data.
For the transmission head frame, the registration frame No. is designated in the
transmission head frame No. (
R 2
 118
H
).
For the end frame, the registration frame No. is designated in the transmission end
frame No. (
R 2
 119
H
).
When designating the default registration frame, refer to section 7.5.1.
When designating the user registration frame, refer to section 7.5.2.
R2
2
H
3
H
1
H
 (SOH)
2
H
 (STX)
3
H
 (ETX)
...
...
...
Designate 
a frame!
Buffer memory
Transmission head frame No.
Transmission end frame No.
Transmission area
Transmission data size
Transmission data
Transmission data
EEPROM (Registration frame)
 4AF
H
 (User registration frame)
       ETX
(End frame)
       STX 
(Head frame)
Random data
section
Frame designated with  
is added!
Data stored in transmission
area
Frame designated with 
                is added!
External
device
R2 118
H
)
(
R2 200
H
R2 119
H
)
(
R2 201
H
R2 3FF
H
R2 118
H
R2 119
H
*1 If R2 is the default value, indicates the buffer memory address.
*
1