hit counter script

Creating Reusable Code Blocks - Siemens SIMATIC S7-1200 System Manual

Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Programming concepts
7.3 Using blocks to structure your program
7.3.5

Creating reusable code blocks

You can store objects you want to reuse in libraries. For each project, there is a project
library that is connected to the project. In addition to the project library, you can create any
number of global libraries that can be used over several projects. Since the libraries are
compatible with each other, library elements can be copied and moved from one library to
another.
Libraries are used, for example, to create templates for blocks that you first paste into the
project library and then further develop there. Finally, you copy the blocks from the project
library to a global library. You make the global library available to other colleagues working
on your project. They use the blocks and further adapt them to their individual requirements,
where necessary.
For details about library operations, refer to the STEP 7 online Help library topics.
194
Use the "Add new block"
dialog under "Program
blocks" in the Project navi-
gator to create OBs, FBs,
FCs, and global DBs.
When you create a code
block, you select the pro-
gramming language for the
block. You do not select a
language for a DB because
it only stores data.
Selecting the "Add new
and open" check box (de-
fault) opens the code block
in the Project view.
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK

Advertisement

Table of Contents
loading

Table of Contents

Save PDF