Program Examples; Conditions For Program Examples - Mitsubishi MELSEC AJ65BT-R2 User Manual

Rs-232c interface module type
Hide thumbs Also See for MELSEC AJ65BT-R2:
Table of Contents

Advertisement

9 PROGRAM EXAMPLES

9. PROGRAM EXAMPLES
Examples of R2 programs are given in this chapter.

9.1 Conditions for program examples

The program examples in this chapter have been created with the following conditions.
Refer to section 9.2.4 (1) for the conditions of the program examples when using three
R2 modules.
(1) System configuration
Power
Master
CPU
AX42
AY42
supply
station
X/Y00 to
X20 to
Y60 to
X/Y1F
X5F
Y9F
CC-Link dedicated cable
(2) Relation of programmable controller CPU, master station and R2
Programmable Controller CPU
Device X
X100 to X10F
X110 to X11F
Device Y
Y100 to Y10F
Y110 to Y11F
(3) Master station buffer memory settings (buffer memory size)
When using buffer memory automatic
update function
When using transmission/reception
buffer
R2 (Station No. 1)
Reception data: "Random data + CR (0D
*1 In the program example shown in this chapter, the reception completion is
detected by receiving the reception end frame (CR(0D
To detect a reception completion by designating the number of reception
data, the reception end data size designation (R2 111
Refer to section 6.2 for details.
The contents of RXn0 to RX(n+1)F are read into X100 to X11F, and the contents
of Y100 to Y11F are written into RYn0 to RY(n+1)F.
Master station
Address Remote input (RX)
E0
RXn0
to RXnF
H
E1
RX(n+1)0 to RX(n+1)F
H
Remote output (RY)
160
RYn0
to RYnF
H
161
RY(n+1)0 to RY(n+1)F
H
9 - 1
Transmission data: ABCDEF
)" or
H
"Random data + LF (0A
)"
H
RS-232-C cable
Remote input (RX)
RXn0
RX(n+1)0 to RX(n+1)F
Remote output (RY)
RYn0
RY(n+1)0 to RY(n+1)F
Transmission
Reception buffer
buffer
0
0
H
H
200
200
H
MELSEC-A
External
device
*1
) or LF(0A
)).
H
H
) setting is required.
H
R2
to RXnF
to RYnF
Automatic
update buffer
600
H
0
H
H
9

Advertisement

Table of Contents
loading

Table of Contents