Siemens TOA portal module 040-020 manual Industry Sector, IA&DT

Page 17

Industry Sector, IA&DT

2.To create the function calculate_tankcontent [FC140], select 'Controller 001 [CPU 315F-2 PN/DP]' in the project tree and then 'Program blocks'. Then, double-click 'Add new block'. Select 'Function (FC)' and assign the name 'calculate_tankcontent'. Change the programming language to 'SCL'. You can change the numbering by switching from automatic to manual. Enter the number 140. Click 'OK' to accept your entries.

(Controller 001 [CPU 315F-2 PN/DP]' Program blocks Add new block Function (FC) calculate_tankcontent SCL manual 140 OK)

SCE Training Curriculum

Page 17 of 30

To be used only at Educational and R&D Facilities

TIA Portal Module 040-020, Edition 03/2013

 

Unrestricted / © Siemens AG 2013. All Rights Reserved

SCE_EN_040-020_R1209_Startup Programming in High-Level Languages with S7-SCL and SIMATIC S7-300

 

 

 

 

Image 17
Contents TIA Portal Module Suitable SCE trainer packages for these training curriculums Industry Sector, IA&DT Requirements Learning objectiveRequired hardware and software Industry Sector, IA&DT Debugger S7-SCL for S7-300/400Editor / compiler Assignment list / tag table Default tag tableDescription of task Program structure Structure of the tank content sample taskType Designation Function Interface of the block calculatetankcontent FC140Function call Representation in FBD Interface of the function FC140 CalculatetankcontentCreating a project and configuring hardware Industry Sector, IA&DT Industry Sector, IA&DT Industry Sector, IA&DT Creating a program Industry Sector, IA&DT Diagram Industry Sector, IA&DT Industry Sector, IA&DT Industry Sector, IA&DT Industry Sector, IA&DT Test program Industry Sector, IA&DT Mode on. → Expanding the assignment list / tag table Expanding the programIndustry Sector, IA&DT Industry Sector, IA&DT Industry Sector, IA&DT Industry Sector, IA&DT