And Block



And Block

The And Block allows the user to combine different conditions together, so that some routines will only apply if all the all conditions are true.

The And Block can be found in the Logical group in the block library.

Getting the And Block

After the user has created or opened a new or existing program, in the wiresheet, the And Block can be dragged from the library or added using the block wizard.

Next step in using the and block is to decide how many conditions to use for the AND. The user can add as many inputs as they would like for the block to monitor and consider.
However, all inputs used must be true for the result to be true.

And Block Usage Example

The above screenshot represents a very basic setup on how to use and apply the And Block.

So based off of the setup shown in the above screenshot, we have a situation such that if the value of the roomTemp variable is ">" (greater than) 80 and the occMode variable is True, then the "result" of the And Block will be True.