Mitsubishi Electric MELDAS C6 Programming Manual page 243

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

WAND, WANDP ... Logical AND of 16-bit data
Bit device
X
Y M
L
F
B SB T SM V T
S
D
S1
S2
D
W AND
WANDP
WAND
WANDP
Function
(1)
WAND
S
D
Logical AND is executed for each bit of the 16-bit data in the device designated with D and the
device designated with S, and the results are stored in the device designated with D.
Before execution
After execution
WAND
S1
S2
Logical AND is executed for each bit of the 16-bit data in the device designated with S1 and the
device designated with S2, and the results are stored in the device designated with D.
Before execution
After execution
8. Function Commands
WAND, WANDP
Usable device
Word device
C D R W SW Z SD K
Operation command
W AND
W ANDP
Operation command
WAND
S1
WANDP
S1
,
WANDP
S
D
1
1
1
1
D
S
0
0
0
1
0
0
0
1
D
,
WANDP
S1
D
1
1
1
1
S1
0
0
0
1
S2
D
0
0
0
1
- 234 -
Get other manuals https://www.bkmanuals.com
Con-
stant
H
Setting data
S
D
Data to be logical ANDed
or No. of device
S
where data is stored.
The logical AND results
D
D
S
are stored in D device.
Setting data
S2
D
S1 Data to be logical ANDed
or No. of device
S2
where data is stored.
No. of device to store
D
D
S2
logical AND results.
16-bit
1
1
1
1
0
0
0
WAND,WANDP
0
0
1
0
0
0
1
0
0
1
0
0
0
0
S2
D
16-bit
1
1
1
1
0
0
0
WAND,WANDP
0
0
1
0
0
0
1
0
0
1
0
0
0
0
Digit
No. of
Pointer
desig-
Index
steps
nation
P
3
4
0
1
1
1
1
1
0
1
0
0
0
0
1
0
0
0
1
1
1
1
1
0
1
0
0
0
0
1
0
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents