Basic Read And Write Programs - Mitsubishi Electric A1S66ADA User Manual

Table of Contents

Advertisement

5 PROGRAMMING

5.2 Basic Read and Write Programs

5
5 - 2
(1) Write to A1S66ADA····················MOV, MOVP instruction
Form
MOV(P) instruction
execution condition
Symbol
Number of the head device
S
containing write data, or a constant
Head number of the I/O signals
D
where data is to be stored
Example
When assigning the A1S66ADA to I/O X40 to X7F and Y40 to Y7F, then writing the
binary data stored in D10 to I/O signals Y40 to Y4B
MOV instruction
execution condition
(2) Read from A1S66ADA·····················MOV, MOVP instruction
Form
MOV(P) instruction
execution condition
Symbol
Head number of the I/O signals
S
Head number of the device where
D
the data read is to be stored
Example
When assigning the A1S66ADA to I/O X20 to X5F and Y20 to Y5F, then reading the
CH 3 digital output value, which is stored in I/O signals X20 to X2B as binary data, to
D20
MOV instruction
execution condition
MOV (P)
S
D
Description
MOV
D10
K3Y40
MOV (P)
S
D
Description
where data is stored
MOV
K3X20
D20
MELSEC-A
Usable device
T, C, D, W, R
X, Y
Usable device
X, Y
T, C, D, W, R
5 - 2

Advertisement

Table of Contents
loading

Table of Contents