Metodología del diseño computacional
04. Mutación
we stdlibs (V2) CAProgram Files1Siemens1Step7 \ S71117 2-1—
Standard Library
New Project' Wizard...
Selected Use Projects:
Lbaries:
Sample Projects:
Multiprojects: Browse...
OK Cancel l Help
Opens a project to be selected or a t 7.WIMI1111101 -' zv Comm cation Blocks d IEC Function Blocks
Id Miscellaneous Blocks d Organization Blocks PID Coned Blocks a S5-S7 Convertng Block:
AD System Function Blocks TI-S7 Convertng Block:
,,Standard Library -- C:'" Program Files',.Siernens Step7 571ibs stdlib30 —11:11.2s1
A
SIEMENS
SIMATIC S7 Date: 18.09.2009 SITRAIN Training for
Siemens AG 2008. All rights reserved. File: SERV1_04E.8 Automation and Industrial Solutions
Introduction Libraries are used to store reusable blocks. The blocks can be copied into a library from existing projects or they can be created directly in the library independent of projects.
Standard A Standard Library is installed when you install STEP 7. You can access this Library standard library from the SIMATIC Manager (File 4 Open 4 Libraries) or from
the Block Editor ( Overviews 4 Libraries). The library contains the following S7 programs :
Communication Blocks:
Functions (FC) for communication between the CPU and the distributed I/O via communication processors.
Organization Blocks: Organization Blocks (OBs).
S5-S7 Converting Blocks:
Blocks that emulate STEP 5 standard function blocks and that are necessary for converting STEP 5 programs.
TI-S7 Converting Blocks:
Generally usable standard functions such as analog value scaling.
IEC Function Blocks:
Blocks for IEC functions (IEC: International Electrotechnical Commission), such as for processing time and date information, for string processing and for selecting maximum and minimum.
PID Control Blocks: Function blocks (FBs) for PID closed-loop controls.
System Function Blocks:
System Functions (SFCs) and System Function Blocks (SFBs).
Miscellaneous Blocks:
FCs and FBs for switching between daylight savings time and standard time (summer and winter times).
Note Additional libraries are added when optional software is installed.
SITRAIN Training for
Automation and Industrial Solutions
ST-SERV1
Page 8 The SIMATIC Manager
.1212.1c
Manager
He PLC View Options window I Help
DUM?1,1,101 Contents 11
STEP 7 Help System
Press Hot-key Fl
Project Object
Pr various to The project represents the entirety of all the data and programs in an automation solution, and is ovides ways ea located at the top of an object hierarchy.
Position in the Project View
Example
A
Introduction Getting Started Using He
About
a
ProjectStation
I
Progr. Module .1.1;11 S7 Program.;J Source F il es Blocks
Proiect Object Station Object
Programmable Module Obied S7147 Program Object Source File Folder Object Block Folder Object
SIEMENS
SIMATIC S7
Siemens AG 2008 All rights reserved.
Obtaining Help There are various ways of obtaining help:
1. You use the Help Contents menu to activate the general help.
2. You use the Fl hot-key or the icon in the toolbar to start the context-sensitive help.
Tabs
"Hot words"
• "Contents": Displays a list of help topics under general headings.
• "Index": Allows you to access the help information by displaying a list of available terms in alphabetical order.
• "Search": Enables you to look for certain words or expressions in the help topics.
Certain words are highlighted in green and are underlined with a broken line in the help texts (called "Hot words"). A mouse click on these "Hot words" leads to a further help text with detailed information.
SITRAIN Training for ST-SERV1
Date: 18.09.2009
File: SERV1_04E.9 Automation T
. rnadi ni inn
d
gufsor tri
al Solutions
Automation and Industrial Solutions Page 9 The SIMATIC Manager
Context Sensitive Help in STEP 7
• Coarrxxxcaoon Blocks ivi ,J IEC Function Blocks
±rI Misceleneous Blocks
± Organcation Blocks
• IA PID Control Blocks
• S5-S 7 Converting Blocks - System Function Blocks
a Blocks
• al TI 07 Converting Blocks
Press Fl to get Help.
Fire >
LWent. I Ind" I I E" I Sc
Reading the Time with SFC 1 "READ_CLK"
SFC2
With SFC 1 'READ_CLK" (read system clock), you read the current date or current time of the system clock of the CPU
PararnelN Declaration kignmAtil Ennakiti011
RET_VAL OUTPUT 1NT 1, 0, M. D. L 7 an error occurs during the execution of the function, the return value contains an error code
CDT OUTPUT DT D,L The current date and current time are output at
the CDT output.
Error Information
See Chapter Evaluatina Errors with the Output Parameter RET VAL See also:
Etrarnole of an SFC 0 (SET Cl..14.1/ SFC 1 (READ CLK1- task
111==11=2!!!!=11111111i11 1110111111111=1111111111117Amml
Press Hot-key Fl
Fie Edit Bookmark Options Help
I 2' I Help on STEP 7[ Glossary I
Siemens AG 2008 All rights reserved.
Date: 18.09.2009 File: SERV1_04E.10
SITRAIN Training for
‘0111 Automation and Industrial Solutions
Context-Sensitive Help ...
... Activating
With the context-sensitive help, you can find information directly connected to the selected object. As the slide shows, the object can be a system function or it can be an STL instruction in a block, for example.
You can activate the context-sensitive help from any tool by selecting the relevant object and then pressing the Fl function key.
Use the "Help on STEP 7" button to jump from the context-sensitive help to the general help.
Note You can find additional information on STEP 7 in the electronic manuals.
Choose the following menu options to open the electronic manuals:
Start - Simatic - Documentation
SITRAIN Training for
Automation and Industrial Solutions
ST-SERV1
Page 10 The SIMATIC Manager
STEP 7 Highest Station Address:
OK Default I Cancel I Help
Access Path 1
Access Pont of **Application
IS7ONLINE (STEP
71 -> CP5611(MPI) (Standard for STEP 7)Interface Parameter Assignment Used:
ICP5611(MPI) cP5sitimpo CP5611(PPI)
CP5611PROFIBUS DP Slave) Zj CP56111PROFIB U S I <Active>
. _ Properties - CP5611(MPI)
- Station Parameters
r
PG /PC is the only master on the bus Address:Transmission Rate: 1187.5 Kbps 10
SIEMENS
Setting the PG/PC Interface
Access Point of the Application:
S7ONLINE
Interface Parameter Assignment Used:
CP5611 (MPI)
SIMATIC S7
Siemens AG 2008. All rights reserved.
Date: 18.09.2009 File' SERV1_04E.11
SITRAIN Training for
IV Automation and Industrial Solutions
General You use the "Set PG/PC Interface" tool to define the connection between an application such as STEP 7 and a module such as CP 5611. The tool is activated with Start - Settings 9 Control Panel .
Access Point Other examples of access points are:
• CP_H1_1 for SIMATIC NET (Ethernet)
• CP_L2_1 for SIMATIC NET (PROFIBUS)
• DPSONLINE for ProTool/Pro DP-Slave
• Micro/Win for the S7-200 software
• MPI (WinCC) for the WinCC Software
Interface Parameter Here, enter the module used, such as, CP5611 and the interface used, such Assignment Used as, MPI. If you connect the PG to the PROFIBUS, use the setting CP5611
(PROFIBUS). To save a switch-over of the PG/PC interface, you can also use the setting CP5611 (Auto). The bus parameters are then automatically
determined. With this setting, however, the connection takes longer.
Properties In this tab, you adapt the parameters of the interface. For "Address", enter the MPI address of the PG. This must be unique in the network.
To make communication possible, the "Transmission Rate" and "Highest Node Address" parameters must be the same for all nodes (stations).
The "PG/PC is the only master on the bus" setting is only activated if only slaves are connected to the PG.
Diagnostics With this, you can check whether a connection can be made.
SITRAIN Training for ST-SERV1
Automation and Industrial Solutions Page 11 The SIMATIC Manager
' ...
Q ....0-
E S7_300_Station
▪ II CPU 315-2 DP S7program j:j Sources
Plod
▪ MICROMASTER_420 Touchpanel
-=J
Press Fl to get Help. ICP5611(PROFIBUS)