General (cont’d), Logic operators – Tyco F3200 User Manual

Page 116

Advertising
background image

F3200 Installation & Programming Manual

Document No: LT0122

Programming System Configuration

Page 7-14

5 July 2001

Issue 2.7

GENERAL (CONT’D)

3.

When programming logic equations, the amount of programming memory left can be

viewed by using the "free space" option of the OUTPUT LOGIC menu.

7.4.2 LOGIC

OPERATORS

The logic operators allowed are as follows:

OR (+)

logical or

C = A + B

C is active if A is active or B is active.

AND (.)

logical and

C = A . B

C is active if A is active and B is active.

XOR (@)

exclusive or

C = A @ B

C is active if A is active and B is not, or B is active and A is not (i.e. if A and B

are in opposite states).

NOT (^)

Logical inverse

B = ^ A

B is active if A is not active

B is not active if A is active.

These Operators each have a key in the right hand column of the 4 x 4 keypad.

Using "1" to represent a "true" condition or "on" (active) state and "0" to represent a "false"

condition or "off" (inactive) state, the following tables show the function of the logic operators

for the various combinations of inputs (operands) A and B.

A

0

0

1

1

B

0

1

0

1

A + B

0

1

1

1

A . B

0

0

0

1

A @ B

0

1

1

0

^ A

1

1

0

0

^ B

1

0

1

0

TRUTH TABLE

Priorities & Evaluation

Equations are evaluated from left to right with the following priority:

Brackets > NOT > AND > OR, XOR (within brackets the priority is the same).

Example:

R1 = (Z1A + Z2A) . ^ Z3F means relay 1 is active if:

Zone 1 is in alarm or Zone 2 is in alarm; and Zone 3 is not in fault

This is different to R1 = Z1A + Z2A . ^Z3F which means relay 1 is active if :

Zone 1 is in alarm, or if

Zone 2 is in alarm and Zone 3 is not in fault.

Brackets "(" and ")" are used to group parts of an equation together so that the default

operator priority can be overridden.

In an equation, the number of "(" must always equal the number of ")".

"(" and ")" are a second function of the "RECALL" and "PRINT" keys.

Advertising