Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
DAND, DANDP
- 236 -
{ DAND, DANDP ... Logical AND of 32-bit data
Usable device
Bit device Word device
Con-
stant
Pointer
X Y M L F BSB T SM VTCDRWSWZSDKH P
Digit
desig-
nation
Index
No. of
steps
S
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
3/4
S1
{
{ { { { { {
{
{ { { { { { { { { {
S2
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
4/5
Setting data
S2
S1
Head No. of device to
store logical AND results.
D
Data to be logical ANDed
or head No. of device
where data is stored.
Setting data
S
The logical AND results
are stored in D device.
D
Data to be logical ANDed
or head No. of device
where data is stored.
DAND
DANDP
DAND
S D
DANDP
S D
Operation command
DAND
DANDP
D
DANDP
S1
D
DAND
S2
S1 S2
Operation command
Function
(1)
DAND
S
D
,
DANDP 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
D
11 11101 11110001
DAND,DANDP
00 01010 01001001
32-bit
After execution
00 01000 01000001
D
S
DAND S2
S1
D
,
DANDP
S2S1
D
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
S1
11 111
0111110001
DAND,DANDP
00 01010 01001001
32-bit
After execution
00 01000 01000001
D
S2
(2) The bits other than designated digit are operated as 0.
(Refer to program example (1).)