RecipeSettings

A named production cycle: which camera, pipeline and robot to use, and what to run with them.

Run by OPC UA RunRecipe/RunRecipeWithPose, the Profinet RunRecipe procedure and script mode’s RUN_RECIPE. Selecting the three ids comes first, then commands in order, stopping at the first one that fails – except the commands that only report (GET_POSE, GET_TEMPERATURE, GET_BEST_TRAJECTORY, GET_USED_HALCON_MODULES), whose failure is logged and passed over.

Member Variables

id

std::string JSON Type: string (JSON key "recipeId") +Requirement: Must be unique and not empty. At most 32 characters when communicationProtocol is Profinet: the PLC passes it in the 32-byte IN_ParamArgString field. What RunRecipe is called with.

pipelineId

std::string JSON Type: string +Requirement: Must match a pipelines[].id entry.

cameraId

std::string JSON Type: string +Requirement: Must match a cameras[].cameraId entry.

robotId

std::string JSON Type: string +Requirement: Must match a robots[].id entry.

commands

std::vector< WorkflowCommand >, default: \{defaultRecipeCommands()\} JSON Type: (optional) array of \{"command": string, "argument": string or array of numbers\} Script-mode commands, by the same tokens: CAPTURE_IMAGE, COMPUTE_2D, COMPUTE_3D, GET_BEST_RESULT, GRIP_BEST_RESULT, GET_BEST_TRAJECTORY, COMPUTE_DEPTH, SET_POSE, GET_POSE, GET_TEMPERATURE, GET_USED_HALCON_MODULES, CLEAR_DATA, and SET_CAMERA_FEATURE (a FeatureSet for the recipe’s camera; checked against featureSets[] and the camera’s featureSetIds at load). SET_CAMERA, SET_PIPELINE, SET_ROBOT and RUN_RECIPE are refused: the recipe’s own ids select those. Absent means CAPTURE_IMAGE, COMPUTE_2D, COMPUTE_3D, GET_BEST_RESULT; an empty array only selects the three ids.