beautypg.com

MITSUBISHI ELECTRIC 700 Series User Manual

Page 165

background image

160

Application instructions

(2) ORs 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 add instructions are as shown below.

Program Examples

1) Program that ORs the D10 and D20 data and stores the result into D10 when XA

turns on.

S1

S2

D1

Before
execution

After
execution

16 bits

WOR

WORP

Operation
command

Executed every

scan.

Executed only once.

Executed only once.

Executed every

scan.

WOR

・ Coding