And Function Block

The AND function block has six-inputs AND function . Each input may be individually inverted (NOT). The AND output becomes "true" if all inputs are "true".

Figure 1: AND Function Block

 

Figure 2: AND Property Sheet

In AND function block, inputs with "null" are ignored, which means if either of the inputs is not equal to 0.00, the output is equal to the input.

Figure 3: AND Logic Diagram

 

Unconnected or invalid inputs default to "true" without negation, not affecting the result.

Figure 4: AND wIth trueDelay and falseDelay

Inputs

Input Name

Description

In A - In F

These are 32-bit floating point 6 input slots.

Table 1: Inputs of AND Function

Output

Output Name

Description

Out

Output = AND/NAND (inputs).

Negating the output makes an AND function block behaves like a NAND function block.

Table 2: Output of AND Function

Parameter

Parameter Name

Description

In Out Negations

If this option is set to "true", it acts as a NAND function block.

If it is "false", it acts as an AND function block.

Out Save

Master Sync Enabled : If you set it to "true" the last output will be set as output for one cycle after the controller restarts. The application can use it to return to the same state before the controller restart.

Out: To enable or disable the Out feature.

Table 3: Parameter of AND Function

Below Table shows the basic operation of AND (Out negation is false).

Input (x)

Input (y)

Output

0 (false)

0 (false)

0 (false)

0 (false)

1 (true)

0 (false)

1 (true)

0 (false)

0 (false)

1 (true)

1 (true)

1 (true)

Table 4: Basic Operation of AND

Below Table shows the basic operation of NAND (Out negation is true).

Input (x)

Input (y)

Output

0 (false)

0 (false)

1 (true)

0 (false)

1 (true)

1 (true)

1 (true)

0 (false)

1 (true)

1 (true)

1 (true)

0 (false)

Table 5: Basic Operation of NAND

Examples

       If any one of In A to In F = "false", the output is "false". If all In A to In F are "true", the output is "true".

Figure 5: Example-And Function block.

       With Not enable for In A and In C

Figure 6:Example And Function block and Property Sheet Not Eable

Refer to General Description for general information about IRMN4 Function Blocks.