S7-PLCSIM - Testing Your S7-CPU Programs - manual.pdf
(
811 KB
)
Pobierz
S7-
___________________
1
PLCSIM V5.4
Introduction
___________________
2
Product overview
___________________
3
Getting Started
SIMATIC
___________________
4
Simulation Tasks
Engineering Tools
S7-PLCSIM V5.4
___________________
5
View objects
___________________
6
Error and Interrupt OBs
Operating Manual
___________________
7
Reference information
07/2011
A5E00992424-03
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
Legal information
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.
CAUTION
without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.
NOTICE
indicates that an unintended result or situation can occur if the relevant information is not taken into account.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
Siemens AG
Industry Sector
Postfach 48 48
90026 NÜRNBERG
GERMANY
A5E00992424-03
Ⓟ 05/2011
Copyright © Siemens AG 2011.
Technical data subject to change
Table of contents
1
Introduction................................................................................................................................................
7
2
Product overview.......................................................................................................................................
9
2.1
Functional scope............................................................................................................................
9
2.2
Differences from a "real" PLC......................................................................................................
10
2.3
Simulation view window...............................................................................................................
13
2.4
Memory areas..............................................................................................................................
14
2.5
Blocks...........................................................................................................................................
15
2.5.1
Organization blocks (OBs)...........................................................................................................
15
2.5.2
System function blocks (SFBs)....................................................................................................
16
2.5.3
System Functions (SFCs)............................................................................................................
17
3
Getting Started ........................................................................................................................................
19
3.1
Start simulation ............................................................................................................................
19
3.2
Setting the PG/PC interface.........................................................................................................
21
3.3
Multi-instance with S7-PLCSIM ...................................................................................................
23
3.3.1
Selecting the type of connection..................................................................................................
24
3.3.2
Supported communication blocks................................................................................................
24
3.4
Downloading a STEP 7 project....................................................................................................
25
3.5
Simulation and monitoring ...........................................................................................................
26
3.6
Monitoring program simulation in STEP 7...................................................................................
27
3.7
Using Help....................................................................................................................................
28
4
Simulation Tasks .....................................................................................................................................
29
4.1
Attach Symbols............................................................................................................................
29
4.2
What Is the Difference between a .PLC File and a .LAY File?....................................................
30
4.3
Save a simulated PLC .................................................................................................................
31
4.4
Save Layout Command ...............................................................................................................
32
4.5
Open the simulated PLC..............................................................................................................
33
4.6
Open Layout Command...............................................................................................................
34
4.7
Select scan mode ........................................................................................................................
35
4.8
Changing the CPU operating mode.............................................................................................
36
4.9
Simulating a STEP 7 user program .............................................................................................
37
4.10
Slider Control ...............................................................................................................................
38
4.11
Debugging a program..................................................................................................................
39
4.12
Using error OBs in your program.................................................................................................
40
S7-PLCSIM V5.4
Operating Manual, 07/2011, A5E00992424-03
3
Table of contents
4.13
Resetting the CPU memory ........................................................................................................
41
4.14
Reset Timers...............................................................................................................................
42
4.15
Turning power on/off for a simulated CPU..................................................................................
42
4.16
Using Symbolic Addressing ........................................................................................................
43
4.17
Record/Playback.........................................................................................................................
44
4.18
Monitor cycle time .......................................................................................................................
47
4.19
Close simulated PLC...................................................................................................................
48
4.20
Close Layout ...............................................................................................................................
48
4.21
End a simulation..........................................................................................................................
49
4.22
Simulating T-CPU .......................................................................................................................
50
5
View objects ............................................................................................................................................
51
5.1
CPU View Object ........................................................................................................................
52
5.1.1
CPU Operating Mode Switch Positions ......................................................................................
52
5.1.2
CPU Indicators............................................................................................................................
53
5.2
ACCUs & Status Word View Object............................................................................................
53
5.3
Block Regs View Object..............................................................................................................
54
5.4
Nesting Stacks View Object........................................................................................................
54
5.5
Input Variable View Object..........................................................................................................
55
5.6
Output Variable View Object.......................................................................................................
56
5.7
Bit Memory View Object..............................................................................................................
57
5.8
Timer View Object.......................................................................................................................
57
5.9
Counter View Object...................................................................................................................
58
5.10
Generic View Object ...................................................................................................................
58
5.11
Vertical Bits Variable View Object...............................................................................................
59
6
Error and Interrupt OBs ...........................................................................................................................
61
6.1
Logical base addresses ..............................................................................................................
62
6.2
Hardware Interrupt (OB40-OB47)...............................................................................................
63
6.3
I/O Redundancy Error (OB70) ....................................................................................................
64
6.4
CPU redundancy error (OB72) ...................................................................................................
65
6.5
Communication Redundancy Error (OB73)................................................................................
67
6.6
Time Error (OB80).......................................................................................................................
67
6.7
Diagnostic interrupt (OB82).........................................................................................................
68
6.8
Insert/Remove Module Interrupt (OB83).....................................................................................
69
6.9
Priority Class Error (OB85) .........................................................................................................
70
6.10
Rack Failure (OB86) ...................................................................................................................
71
S7-PLCSIM V5.4
4
Operating Manual, 07/2011, A5E00992424-03
Table of contents
7
Reference information .............................................................................................................................
73
7.1
Icons and menu commands.........................................................................................................
73
7.2
S7-PLCSIM Numeric Data Formats.............................................................................................
76
7.3
Troubleshooting Tips ...................................................................................................................
77
Index........................................................................................................................................................
79
S7-PLCSIM V5.4
Operating Manual, 07/2011, A5E00992424-03
5
Plik z chomika:
Buziol_1969
Inne pliki z tego folderu:
MN_NCM-IE-Intro_76.pdf
(345 KB)
MN_NCM-PB-Intro_76.pdf
(703 KB)
MN_NCM-PB2_76.pdf
(904 KB)
MN_s7-cps-ie_76.pdf
(1910 KB)
MN_s7-cps-pb_76.pdf
(973 KB)
Inne foldery tego chomika:
Deutsch
Espanol
Francais
Italiano
Zgłoś jeśli
naruszono regulamin