Copyright: Created with EasyHelp (Tel: 0973 209667)


Recipe/Selector - RG354230

Description

This block implements a selector function for use with the Recipe/Recipe Handler function block.  It provides a Display Output and a Selector Output.

The block contains an ordinal couter which may range between a configured low limit (minimum = 1) and a configured high limit (maximum = 255).

On a false-to-true transition of the Raise input, the counter is incremented by one.  If the resulting ordinal is greater than the high limit, the counter wraps around to the low limit.

On a false-to-true transition of the Lower input, the counter is decremented by one.  If the resulting ordinal is less than the low limit, the counter wraps around to the high limit.

The Display Output is updated whenever the counter ordinal changes.  It is typically connected to an annunciator.

The Selector Output is updated on a false-to-true transition of the Select input.  It is typically connected to the recipe handler.

The counter ordinal is persistent.

Parameters

Raise	Raise input.  Expects true or false.

Lower	Lower input.  Expects true or false.

Select	Select input.  Expects true or false.

Get Output	Returns the current state of the output:  an ordinal (1 to 255).

Get Raise	Returns the current state of the raise input:  true or false.

Get Lower	Returns the current state of the lower input:  true or false.

Get Select	Returns the current state of the select input:  true or false.


Description

This block implements a selector function for use with the Recipe/Recipe Handler function block.  It provides a Display Output and a Selector Output.

The block contains an ordinal couter which may range between a configured low limit (minimum = 1) and a configured high limit (maximum = 255).

On a false-to-true transition of the Raise input, the counter is incremented by one.  If the resulting ordinal is greater than the high limit, the counter wraps around to the low limit.

On a false-to-true transition of the Lower input, the counter is decremented by one.  If the resulting ordinal is less than the low limit, the counter wraps around to the high limit.

The Display Output is updated whenever the counter ordinal changes.  It is typically connected to an annunciator.

The Selector Output is updated on a false-to-true transition of the Select input.  It is typically connected to the recipe handler.


Parameters

Raise	Raise input.  Expects true or false.

Lower	Lower input.  Expects true or false.

Select	Select input.  Expects true or false.

Get Output	Returns the current state of the output:  an ordinal (1 to 255).

Get Raise	Returns the current state of the raise input:  true or false.

Get Lower	Returns the current state of the lower input:  true or false.

Get Select	Returns the current state of the select input:  true or false.