Siemens 6AV6651-7KA01-3AA4 - S7-1200 + KTP400 Basic Starter Kit 6AV6651-7KA01-3AA4 用户手册

产品代码
6AV6651-7KA01-3AA4
下载
页码 364
 
Programming made easy 
 
6.1 Easy to design your user program 
Easy Book 
Manual, 03/2014, A5E02486774-AF 
93
 
6.1.5 
Creating reusable code blocks 
 
 
Use the "Add new block" 
dialog under "Program 
blocks" in the Project 
navigator to create OBs, 
FBs, FCs, and global DBs.  
When you create a code 
block, you select the 
programming 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 
(default) opens the code 
block in the Project view. 
 
 
  
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.