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

ページ / 264
9 - 14
MELSEC-A
9   PROGRAM EXAMPLES
9.2.4 When using the FROM/TO commands with ACPU / QCPU-A (A mode) (Three R2
modules connected)
An example of the program for connecting three R2 modules using the FROM/TO
command with the ACPU / QCPU-A (A mode) when using the buffer memory
automatic update function is shown below.
(1)   Conditions of program example
The program examples in this chapter have been created with the following
conditions.
(a)   System configuration
CPU
X/Y00 to
 X/Y1F
AX42
X20 to
 X5F
AY42
Y60 to
 Y9F
Power 
supply
Master
station
R2 (Station No. 1)
Transmission data: ABCDEF
External 
device
CC-Link dedicated cable
RS-232-C cable
R2 (Station No. 2)
Transmission data: ABCDEF
External 
device
RS-232-C cable
R2 (Station No. 3)
Transmission data: ABCDEF
External 
device
RS-232-C cable
Reception data: "Random data + CR (0D
H
)" or 
                          "Random data + LF (0A
H
)" 
*1
Reception data: "Random data + CR (0D
H
)" or 
                          "Random data + LF (0A
H
)"
Reception data: "Random data + CR (0D
H
)" or 
                          "Random data + LF (0A
H
)"
*1 In the program example shown in this section, the reception completion is
detected by receiving the reception end frame (CR(0D
H
) or LF(0A
H
)).
To detect a reception completion by designating the number of reception
data, the reception end data size designation (R2 111
H
) setting is required.
Refer to section 6.2 for details.