MITSUBISHI ELECTRIC 700 Series User Manual

Page 162

Advertising
background image

157

Application instructions

3

SEQUENCE PRO

G

RAM

M

ING

(2) ANDs the 16-bit data of the device specified at

and the 16-bit data of the

device specified at

on a bit-by-bit basis, and stores the result into the device

specified at

.

(3) More than the digit designation of a bit device is regarded as 0 for operation.

Execution Conditions

The execution conditions of the logical product instructions are as shown below.

Program Examples

1) Program that masks the tenth digit (second place from the least significant digit)

with 0 among the four BCD digits of D10 when XA turns on.

S1

S2

D1

Before
execution

After
execution

16 bits

WAND

WANDP

Operation
command

Executed every

scan.

Executed every

scan.

Executed only once.

Executed only once.

WAND

Coding

(D10)=1234 1204

Advertising