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

 

 

 

 

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