Mitsubishi Electronics AJ65bt-r2 Home Theater Server User Manual


 
7 - 35
MELSEC-
A
7 USING FRAMES WHEN EXCHANGING DATA
ProcessR2 buffer
memory
address
Setting item Details
Register Read Delete
R2
1C8H
to 1EFH
User-registered
frame
When registering a frame, designate the data to be
registered in order of (L) and (H) from the head area of the
user registration frame area.
When reading a frame, the registered data will be stored
with the same details and arrangement as registration.
(Example) Details designated in user registration frame
area for registering the user registration frame
into the EEPROM to transmit the ETX, sum
check code, CR and LF (registration code: 03
H,
FFH, F1H, 0DH, 0AH).
b15 b0
(H)
2nd byte (FF
H
)
4th byte (0D
H
)
6th byte (0
H
)
5th byte (0A
H
)
3rd byte (F1
H
)
1st byte (03
H
)
(L)
b8
b7
∼∼
..... Sum check code ETX
..... CR
..... LF
Designate registration data
R2 1C8
H
R2 1C9
H
R2 1CA
H
R2 1CB
H
* In the above diagram, 5 is designated for the registration
frame byte size designation (
R2
1C7H).
: Setting possible, : Setting not possible, : Stored
(4) Example of program for registering user registration frame
An example of a program for registering the user registration frame is shown
below.
The following gives a program example for registering the user registration frame.
This example assumes that the buffer memory automatic update function is
used.
Refer to Section 5.1 for program conditions.
(a) When using the FROM/TO command with the ACPU/QCPU-A
(A mode)
Registration execution
EEPROM function
designation: 1
No. of user registration
frame to be registered: 3E8
H
Change to bank 2
Write setting value to R2
Change to bank 0
Byte size of data to be
registered: 5
Registration data 1
("03
H", "FFH ")
Registration data 2
("F3
H ", "0DH ")
Registration data 3
("0A
H ")