Skip to content

Overview

The concept is that this FB and its methods will use the base class to take a picture and the process it and return elements that fit the processing with the following Results as a minimum:

  1. Center of Mass (x,y)
  2. Orientation (a)

FB_VisionDetection

Class Diagram

classDiagram
class FB_VisionBase{
    <<ABSTRACT>>
    eState : ETcVnCameraState;
    VisionBaseAlarms : ARRAY[1..x] of FB_TcAlarm
    ProcessImage()
    CyclicLogic()
    Reset()
    CreateEvents()
    GetResults()
}   

class FB_VisionDetection{
    ProcessImage()
    ProcessImage_Blob()
    ProcessImage_Color()
    ProcessImage_Contour()
}


FB_VisionBase<|--FB_VisionDetection

🚧 Process Image

1
2
3
4
5
6
7
8
CASE VisionTool OF
    E_VisionTools.Blob:
        ProcessImage_Blob();
    E_VisionTools.Contour:
        ProcessImage_Contour();
    E_VisionTools.Color:
        ProcessImage_Color();
END_CASE

🚧 E_VisionTools

classDiagram
class E_VisionTools{
    <<Enumeration>>
    Blob
    Contour
    Color
}

Alarms

🚧 These still need to be defined from what can happen with this process image

🚧 To Do

  1. Decide on all of the analysis tools we want to use
  2. HMI user object to setup these things