Writing The Output Data - Mitsubishi MELSEC-A AJ71PT3 User Manual

Table of Contents

Advertisement

5. PROGRAMMING
5.3.3 Writing the output data
IMELSEC;4
Write a program as explained below to write the output data of
batch refresh type remote 1/0 stations to the master station buffer
memory.
(1) The output data of batch refresh type remote 1/0 stations is
written to the batch refresh transmission data area (addresses
10 to 41).
(2) Program example 1
The following program provides output data Y80-8F from
stations 11 and 12.
Write command
~"'!.
,.,.,
Jf
"
>-----l
----{CIIOU
Y080
I-LTO
~000
fs
0200
" ••
~
Stores Y80-8F output data of stations 11 and 12 to D200.
~
~ Provides
YaO-SF
output data from stations 11 and 12.
I
TO
instruction
I
Output data
YSF vaE yeD vae yeB yeA Y89 vas VB] YOO Y85 Y84 Y83 val V8l YOO
I Y71 Yel YO Iy'l Y31 Y'I Y' IYO IY71 yel YO I Y'I Y31 Y'I Y' I YO I
Station 12 output
datanStation
11 output data
I
MOV instruction
I
b15b14b13b'2bl1bl0~
~
~
~
~
M
~
~
b1
~
D,ool Y71 yel YO I y.1 Y31 Y,I Y' IYO IY71 yel YO Iy.1 Y31 Y,I Y' I YO I
Station 12 output data
Station 11 output data
I
REMARKS
I
The A1N, A2N and A3NCPU allow bit devices IX, Y, M, L, S, S, F) to be used to
store the data written
by
the
1
TO
I
instruction.
Program example 1 may be modified as shown below to use bit devices:
I
Write command
I
'~!.
'.,'/.!--,f
CTO
~...
Is
Ms.
5-5
Provides output data of
~
Y80-8F from stations 1
and 2.
18 INA} 66164-A

Advertisement

Table of Contents
loading

Table of Contents