Example Programs
This section describes six example programs that are applicable to different scenarios. This helps you learn how to write AB PLC programs and allows data to be exchanged between PLCs and the vision system. The main feature of each example program is to trigger the 3D camera to capture images to obtain the information of the target object or the robot path for picking the target object. In addition, you can modify the example programs according to your actual application scenarios. This allows you to quickly write your own AB PLC programs.
The following table briefly introduces the six example programs. You can choose the example program that you want to work with based on your Mech-Vision or Mech-Viz project.
We recommend that you familiarize yourself with how Standard Interface communicates with the vision system before choosing the example program that you want to work with. |
Example program name | Description |
---|---|
The PLC triggers the Mech-Vision project to run and then obtains the vision result. |
|
The PLC triggers the Mech-Viz project to run and then obtains the path planned by Mech-Viz. |
|
The PLC triggers the Mech-Vision project to run and then obtains path planned by Mech-Vision. |
|
The PLC triggers Mech-Vision to switch the parameter recipe, triggers the Mech-Vision project to run, and then obtains the vision result. |
|
The PLC triggers the Mech-Viz project, sets the exit port for the Branch by Msg Step, and then obtains path planned by Mech-Viz. |
|
The PLC calculates the vision cycle time, which is the amount of time it takes to trigger the Mech-Vision project to run and obtain the vision result. |