Introduction
This article walks through the steps for setting up a Machine Vision Service (MVS) procedure and calling it from Inform.
Part 1 - Navigate to the Machine Vision Service
- Launch Smart Pendant
- Open the Main Menu
- Open the Utility Dropdown
- Select "Machine Vision Service"
Part 2 - Creating Your First Procedure
- Select "Add"
- Select "Load"
- Select "Load File Image"
- Select the created "Load File Image Instance"
- Select a desired image to load
- Select "Exec"
- Select "Set Params"
- Select "Back"
- Save the Procedure, in this example the name is "MYFIRSTJob"
Part 3 - Note the Settings of the MVS
The settings are displayed by:
- Select "Setting" at the top
- Select "Read"
Keep track of "Procedure Name","Error Message","Execute Trigger", and "Status Check".
| Name | Description | Default |
|---|---|---|
| Procedure Name (S) | The S variable index that specifies the name of the MV procedure to execute | 0 |
| Error Message (S) | The S variable index in which error messages are assigned during MV procedure execution | 1 |
| Execute Trigger (#10010~) | The general purpose output signal that executes the MV procedure | 15120 |
| Status Check (#10010~) | The general output that indicates succes or failure of MV procedure execution | 15121 |
| Remote RCS IP | The IP address of the Robot Control Service. Normally, this setting does not need to be changed | RobotControlService |
| Remote AIS IP | The IP address of the AI Service. Normally, this setting does not need to be changed | AIService |
| Virtual Cam IP | The IP address of the virtual camera server | 192.168.11.199 |
| Virtual Cam Port | The port of the virtual camera server | 63001 |
| Overlay Result Image | When enabled, the image overlaps before processing on the processing results by functions during debugging | True |
| Use Sample Procedures | When enabled, this setting displays MV proceure and matching model samples | True |
Part 4 - Calling in an Inform Job
- Create a new Inform Job
- Set the desired MVS Procedure Name, should match the index set in "Procedure Name (S)"
- Trigger the Digital Out of the MVS's Execute Trigger, the output should match the value set in "Execute Trigger (#10010~)"
- Wait for MVS to turn off the execution output, the output should match the value set in "Execute Trigger (#10010~)"
- Check if the error signal has been set, the output should match the value set in "Status Check (#10010~)"
- Display the error message, should match the index set in "Error Message (S)"
Comments
0 comments
Please sign in to leave a comment.