kitControl-StatusEnumToInt

This component converts a StatusEnum Out value to an Integer In value.

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

Figure 1. StatusEnumToInt properties


PropertyValueDescription
Out FacetsConfig Facets window (defaults to null for units, min for minimum, max for maximum and 10 for radix)Selects units and configures how the value displays:

units defines the unit of measure from acceleration to volumetric flow.

min defines the minimum value.

max defines the maximum value.

radix defines the base of the numeration system.

This configuration applies to the Out property value.
In FacetsConfig Facets windowDefines the range of enumerated states (enum values) for the In value.
Outread-only integerDisplays the target integer.
Innumber (defaults to 0) with 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 the Invalue.

On Null In Valuedrop-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 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 StatusEnumToInt 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 In value for the conversion object when the input Out value has a null status.