Mitsubishi Electric MELDAS C6 Programming Manual page 245

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents