beautypg.com

Pm designer operation manual – B&B Electronics WOP-2121V-N4AE - Manual User Manual

Page 431

background image

14

PM Designer Operation Manual

14-22

CHAPTER 14 USING MACROS

IF <=

Format

IF P2 <= P3

Data Type

U/S/UD/SD/F

Function

Executes the commands in the command block following this IF command when P2 is less than
or equal to P3.

P2,P3 (I/E/C/AE) The

operands.

IF &

Format

IF P2 & P3

Data Type

U/UD

Function

Executes the commands in the command block following this IF command when the result of
Bitwise AND between P2 and P3 is non-zero.

P2,P3 (I/E/C/AE) The

operands.

IF !&

Format

IF !(P2 & P3)

Data Type

U/UD

Function

Executes the commands in the command block following this IF command when the result of
Bitwise AND between P2 and P3 is zero.

P2,P3 (I/E/C/AE) The

operands.

IF

Format

IF P2

Data Type

B

Function

Executes the commands in the command block following this IF command if the condition P2 is
true (1/On).

P2 (I/E/CE) The

condition.

IF !

Format

IF !P2

Data Type

B

Function

Executes the commands in the command block following this IF command if the condition P2 is
false (0/Off).

P2 (I/E/CE) The

condition.

ELIF ==

Format

ELIF P2 == P3

Data Type

U/S/UD/SD/F

Function

Executes the commands in the command block following this ELIF command when P2 is equal
to P3.

P2,P3 (I/E/C/AE) The

operands.

ELIF !=

Format

ELIF P2 != P3

Data Type

U/S/UD/SD/F

Function

Executes the commands in the command block following this ELIF command when P2 is not
equal to P3.

P2,P3 (I/E/C/AE) The

operands.