Mitsubishi Electronics C6 Home Safety Product User Manual


 
8. Function Commands
WAND, WANDP
- 234 -
{ WAND, WANDP ... Logical AND of 16-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
S1
{
{ { { { { {
{
{ { { { { { { { { {
S2
{
{ { { { { {
{
{ { { { { { { { { {
D
{ { { { { {
{
{ { { { { { { {
{ {
4
Setting data
S2
S1
Data to be logical ANDed
or No. of device
where data is stored.
No. of device to store
logical AND results.
D
Setting data
S
The logical AND results
are stored in D device.
D
WAND
WANDP
DWANDP
S1
D
WAND
S2
S1 S2
Operation command
WAND
WANDP
WAND
S D
WANDP
S
D
Operation command
Data to be logical ANDed
or No. of device
where data is stored.
Function
(1)
WAND
S D
,
WANDP
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
D
11 1 0111110001111
WAND,WANDP
00 0 1001001001010
16-bit
00 0 0001000001010
D
S
After execution
WAND
S2
S1
D
,
WANDP S2S1
D
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
S1
11 1 0111110001111
WAND,WANDP
00 0 10 01001001010
16-bit
00 0 00 01000001010
D
S2
After execution