Mitsubishi MELSEC-A Series Programming Manual page 207

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

7. APPLICATION INSTRUCTIONS
Program Examples
WAND
(1) Program which masks the digit of tens (the second digit from the right), among
the BCD four digits of D10, and sets it to 0 when XA turns on.
(D10) = 1234 → 1204
X00A
0
WAND
(2) Program which performs logical product of the data of X10 to 1B and the data of
D33, and outputs the result to the Y30 to 3B when XA turns on.
X00A
P
0
WAND
P
MOV
• Coding
0
LD
1
WANDP K3X010 D33
6
MOVP
11
END
P
H
FF0F
D10
Logical product of the data of X10 to 1B and the
K3
X010
D33
data of D33 is performed and the result is stored
into D33.
K3
D33
Y030
Data of D33 is output to the Y30 to 3F.
X00A
D33
K3Y030
Regarded as 0.
Set to 0.
7 − 5
MELSEC-A
• Coding
0
LD
X00A
1
WANDP HFF0F
D10
6
END

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents