Cicode Programming Reference > Cicode Function Categories > Statistical Process Control Functions Introduction > SPCSpecLimitSet

SPCSpecLimitSet

Sets the process Upper and Lower Specification Limits (USL and LSL) for the specified SPC tag. The values entered here will override those specified in the SPC Tags definition.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.

Syntax

SPCSpecLimitSet(sSPCTag, rLSL, rUSL [, ClusterName] )

sSPCTag:

The SPC Tag name as defined in SPC Tags.

rLSL:

The new value of Lower Specification Limit (LSL) to set.

rUSL:

The new value of Upper Specification Limit (USL) to set.

ClusterName:

Specifies the name of the cluster of the SPC tag.

Return Value

0 (zero) if successful, otherwise an error number is returned.

Related Functions

SPCSpecLimitGet

Example

See SPCSpecLimitGet

See Also

SPC Functions