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 | |
| | |