Reading The Input Data - Mitsubishi MELSEC-A AJ71PT3 User Manual

Table of Contents

Advertisement

5. PROGRAMMING
5.3.2 Reading the input data
Write a program as explained below to read the input data of
batch refresh type remote I/O stations from the master station
buffer memory.
(1) The input data of batch refresh type remote I/O stations exists
in the batch refresh receive data area (addresses 110 to 141).
(2) Program example 1
The following program continually reads input data of stations
1
and 2 to MO-15.
Read command
~X~l' X, , "
I
H
,
,
j
Reads station 1, 2 input data to DO.
~~FROI100ea
11.
D'
r
"
Stores station 1, 2 input data to MO-15.
Dl0U
D'
,.
Address
I
FROM instruction
I
b15 b14 b13 b12 btl bl0 b9 b8 b7 b6 bS b4 b3 b2 bl
bO
110
Station
2
Station 1
I
DO
I
X71 X61 X51 X41 X31 X21 Xl
I
XO
I
X71 X61 X51 X41 X31 X21
xi ]xo
I
111
Station 4
Station 3
I
Station 2
Station 1
141
Station 64
Station 631
D
I
MOV instruction
I
Mt5M14M13M12Ml1Ml0 M9 Me M7 M6 M5 M4 M3 M2 Ml
MO
I
X71 X61 X51 X41 X31 X21 Xl
I
XO
I
X71 X61 X51 X41 X31 X21 Xl
I
XO
I
Station 2
Station 1
I
REMARKS
[
The A 1N, A2N, and A3NCPU allow bit devices IX, Y, M, L, S, S, F) to be used to
store the data read
by
the
I
FROM
I
instruction.
To use bit devices, program example 1 may be modified as shown below:
Read command
X001
I.~_--{
H
,
Il------tl-
(FROIl
eeee
110
5-4
J
Reads input data of
sta-
1
tions 1 and 2 to
MO-15.
I
18 {NAI 66164-A.

Advertisement

Table of Contents
loading

Table of Contents