Application instructions

(2)ANDs the 16-bit data of the device specified at S1 and the 16-bit data of the device specified at S2 on a bit-by-bit basis, and stores the result into the device specified at D1 .

16 bits

Before execution

After execution

(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.

Operation command

WAND

 

Executed every

 

 

Executed every

 

P

 

 

scan.

 

 

 

 

scan.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

WAND

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Executed only once.

 

 

 

Executed only once.

 

 

Program Examples

WAND

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.

(D10)=1234→1204

Coding

SEQUENCE PROGRAMMING

3

157

Page 162
Image 162
Mitsubishi Electronics FR-A700, 700 Series specifications 157