kitControl-StatusEnumToStatusBoolean

This component converts a StatusEnum Out value to a StatusBoolean In value.

StatusEnumToStatusBoolean is available in the Conversion folder of the kitControl palette

Figure 34.   StatusEnumToStatusBoolean properties
Image
Property Value Description
Out Facets Config Facets window (defaults to true and false)

Defines the text to display for each Boolean value.

trueText configures the text to describe the state when component returns true.

falseText configures the text to describe the state when components returns false.

This configuration applies to the Out property value.
In Facets Config Facets window

Defines a range of enumerated states (enum values).

This configuration applies to the In property value.
Out read-only StatusBoolean true and false Displays the target converted status Boolean value.
In enumerated value (defaults to 0, that is, no value) Displays the source status enum value.

When null is checked, the value displayed defaults to the incoming value from the device. If you remove the check mark you can configure the In value.

On Null In Value drop-down list (defaults to Use In Value) Configures how to handle null values.

Use In Value outputs the Out default value when the result of the conversion is null. Normally, the Fallback property for a given point defines the meaning of an Enum null as zero (0). If, during configuration, the null status check box is unchecked and another value entered and saved, the changed value becomes the new default null value for the point.

If this modified component links to another StatusEnum property, the framework ignores the null value. But, if connected to a StatusEnumToStatusBoolean component, the result of a null input value defaults to the changed value, which may not be what you intended.

Specify Out Value adds the outValueOnNull property to this component. Configure it to return a reasonable In value when the Out value is null.

Out Value On Null number Defines an In value for the conversion object when the input Out value has a null status.