xLadder user manual-V2.0.0.6

6.10.6 WAND - DW 、 WOR - DW 、 WXOR - DW

Input/output Operand

Data type

IN1, IN2

VD, ID, QD, MD, SMD, AC, LD, HC,constant, *VD, *AC, SD, *LD

Double word

OUT

VD, ID, QD, MD, SMD, LD, AC, *VD, *AC, SD, *LD

Double word

WAND - DW:The instruction performs “And calculation”

on IN1 and IN2.Then puts the result in out.

WOR - DW:The instruction performs “OR calculation” on

IN1 and IN2.Then puts the result in out.

WXOR - DW:The instruction performs “XOR calculation”

on IN1 and IN2.Then puts the result in out.

error condition:

0006

Indirect address

Special memory bit:

SM1.0

Zero result

Example:

155

Made with FlippingBook - Online magazine maker