kitControl-StatusEnumToEnum

This component converts a StatusEnum In value to a simple Enum Out value.

StatusEnumToEnum is available in the Conversion folder of the kitControl palette.

Figure 1. StatusEnumToEnum properties


PropertyValueDescription
FacetsConfig Facets window (defaults to blank)

Defines a range of enumerated states(enum values).

This configuration applies to the Out property value.
Innumber (defaults to 0) and null definitionDisplays 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 theIn value.

Outread-only enumerated valueDisplays the converted target simple enum value.
On Null In Valuedrop-down list (defaults to Use In Value)Configures how to handle null values.

Use In Value outputs the In 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 null default value for the point.

If this modified component links to another StatusEnum property, the framework ignores the null value. But, if connected to a StatusEnumToEnum 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 value when the In value is null.

Out Value On NullnumberDefines an Out value for the conversion object when its In value has a null status.