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

Page 21

Industry Sector, IA&DT

8.The function can now be called in the 'Main [OB1]'. Before we double-click to open the 'Main [OB1]' block, we select 'FBP' as its programming language.

(Main [OB1] Switch programming language FBD)

9.The 'calculate_tankcontent [FC140]' function can then be moved into Network 1 of the Main [OB1] block using a drag-and-drop operation. The interface parameters of the 'calculate_tankcontent [FC140]' function have to be connected to the global PLC tags, as shown here. Don't forget to document the networks in the Main [OB1] block. (Main [OB1] Program blocks calculate_content [FC140])

SCE Training Curriculum

Page 21 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 21
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 S7-SCL for S7-300/400 Editor / compilerDebugger Default tag table Description of taskAssignment list / tag table 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