Siemens E12 manual Function Block FB1, Tasks of FB1

Page 25

Industry Automation and Drive Technologies - SCE

4.4Inserting Blocks and FB1 and DB10 into the Project

From the template directory or from the Image Processing System SIMATIC VS120 V2.1 CD from the directory "Function Blocks“, de-archive and open the library VS120-2.

Add FB1 and DB10 to the block folder of the project.

Close the library.

Note:

Instead of library VS120-2, we can also de-archive the example program VS120_Examples. The file Vs120_Examples.zip is located on the Image Processing System SIMATIC VS120 V2.1 CD in the directory “Examples“, subdirectory "SIMATIC“

4.5Function Block FB1

For a simpler handling of the functions of Vision Sensor SIMATIC VS12, the function block FB1 is provided for IO operations.

FB1 facilitates software-engineering integration into the control program.

Tasks of FB1

Selecting a model or model set

Reading the result data and storing it in DB10 (DB10 is included in the documentation package)

Operating the control and status interface (triggering, result bits, ...)

Transmitting the delay time of the trigger

Reading out error indications

TIA Training Document

Page 25 of 47

Module

E12

 

 

Status: 01/2010

Vision Sensor Shape Check with SIMATIC S7-300F 2PN/DP and VS120

Image 25
Contents Industry Automation and Drive Technologies SCE Module E12Industry Automation and Drive Technologies SCE Fehler! Textmarke nicht definiert Page Prerequisites ObjectiveEthernet Connection StepProduct Description Recognition principles of edges Result output by meansRecognizing and localizing parts Checking a model for completenessConveyor Conveying Direction Press OK to get to the main menu Press ESCMain Menu Industry Automation and Drive Technologies SCE Connect Menu DB10 Data structure looks like thisPage Industry Automation and Drive Technologies SCE Page Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Value range for the IP address Industry Automation and Drive Technologies SCE MAC addressValue range for the subnet screen form Value range for the address of the gateway routerIndustry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Page Industry Automation and Drive Technologies SCE Tasks of FB1 Function Block FB1Page Page Transmitting Delay Time ResetTriggering Reading and transmitting result dataData Block DB10 Tasks of DB10 Error informationDB10 has a size of 246 bytes and can accommodate 16 SubROIs 10 FC10 Control Program Industry Automation and Drive Technologies SCE We now can load the program into the CPU WEB Server Based Operator Interface of VS120 Setting Up and Evaluating the ModelPage Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Page Page Industry Automation and Drive Technologies SCE Industry Automation and Drive Technologies SCE Web View of the Evaluation DB10 Data View Results of Image Evaluation in the CPU