7.5.2.8 UnprepareProduct

This method is used to revert the preparation of a product so that it can no longer be used for starting a job on the vision system.

Signature

	UnprepareProduct ([in]	ProductIdDataType	productId[out]	RecipeIdInternalDataType	internalId[out]	Int32	error);
Table 45 – UnprepareProduct Method Arguments
Argument Description
productIdIdentification of a product, which is to be unprepared.
internalIdInternal identification of the recipe which is actually unprepared.
error

0 – OK

Values > 0 are reserved for errors defined by this and future standards.

Values < 0 shall be used for application-specific errors.

Table 46 – UnprepareProduct Method AddressSpace Definition
Attribute Value
BrowseNameUnprepareProduct
References NodeClass BrowseName DataType TypeDefinition ModellingRule
HasPropertyVariableInputArgumentsArgument[]PropertyTypeMandatory
HasPropertyVariableOutputArgumentsArgument[]PropertyTypeMandatory

It is expected that the vision system will select a recipe based on the ProductId in the same way as in method PrepareProduct and then unprepare that recipe so that UnprepareProduct is exactly reciprocal to PrepareProduct.

Therefore, state handling is identical to UnprepareRecipe method.