Skip to content

TCP Recipe Switching and Gocator Parameter Modification

Project Flow

Local Image

Device Configuration

  1. Select TCP Client or TCP Server and configure it.

  2. Select LMI Gocator and choose the camera.

TCP Cooperating with Script to Switch Recipes

  1. Select the Marker tool as the jump point for receiving error strings.

  2. Select the Receive String tool, choose the device, and set the timeout period and output.

  3. Select the Lua Language Script tool to switch recipes by judging the received string.

lua

-- Judge and switch recipes
if ChangeFormula == "1" then
   SwitchRecipe("Recipe 1")
elseif ChangeFormula == "2" then
   SwitchRecipe("Recipe 2")   
elseif ChangeFormula == "3" then
   SwitchRecipe("Recipe 3") 
else
    Jump("ReStart")
end

TCP Cooperating with Tools to Switch Recipes

Plane Fitting

  1. Select the Receive String tool, choose the device, and set the timeout period and output.

  2. Select the Lua Language Script tool to jump to the specified marker for recipe switching by judging the received string.

lua
if Formula == "1" then
   Jump("Formula1")
elseif Formula == "2" then
   Jump("Formula2")   
elseif Formula == "3" then
   Jump("Formula3")   
end
  1. Select the Marker tool as the jump point for switching to Recipe 1.

  2. Select the Switch Recipe tool to switch to Recipe 1.

Select the Judgment tool to jump to the recipe switching end position after the Switch Recipe tool finishes execution.

  1. The operations for switching to Recipe 2 and 3 are the same as for Recipe 1.

  2. Select the Marker tool as the jump point for ending recipe switching.

TCP Cooperating to Switch Gocator Parameter Configurations

  1. Select the Receive String tool, choose the device, and set the timeout period and output.

  2. Select the Judgment tool to judge the received string and output the result.

  3. Select the Jump tool, bind the Result of the previous Judgment tool as activation, and jump to the Gocator2 marker when the result is NG.

  4. Select the Gocator Parameter Control tool, choose the camera whose configuration needs to be modified, and modify the configuration.

  5. Select the Judgment tool to jump to the end marker after the Gocator Parameter Control tool finishes execution.

  6. Select the Marker tool, set it as Gocator2, and use it as the jump point for the third-step Jump tool when the second-step Judgment tool results in NG.

  7. Select the Gocator Parameter Control tool, choose the camera whose configuration needs to be modified, and modify the configuration.

  8. Select the Judgment tool to jump to the end marker after the Gocator Parameter Control tool finishes execution.

  9. Select the Marker tool as the end marker.

AI-Vision, Making 3D Measurement Easier