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

MM_S1_Vis_Basic

The PLC triggers the Mech-Vision project to run and then obtains the vision result.

MM_S2_Viz_Basic

The PLC triggers the Mech-Viz project to run and then obtains the path planned by Mech-Viz.

MM_S3_Vis_Path

The PLC triggers the Mech-Vision project to run and then obtains path planned by Mech-Vision.

MM_S4_Vis_SwitchRecipe

The PLC triggers Mech-Vision to switch the parameter recipe, triggers the Mech-Vision project to run, and then obtains the vision result.

MM_S5_Viz_SetBranch

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.

MM_S6_Vis_Timer

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.

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.