Sei sulla pagina 1di 24

Hardware Configuration and Memory Concept

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.1
Memory Concept of the S7-300
Load memory:
Blocks:
• Logic blocks
(OB,FC,FB)
• Data blocks
(DB) RAM Flash-
Comments Additional info. EPROM

Symbols Work memory:


• OB,FC,FB
Blocks:
• Logic blocks • DB
n. reten. reten.
(OB,FC,FB)
• Data blocks
(DB) with Power System memory:
ON without • PII, PIQ
battery • M, T, C
backup n. reten. reten.
With Power
Blocks: OFF without
• Logic blocks battery
(OB,FC,FB) Retentive memory: backup
• Data blocks Flash EPROM • Retentive
(DB) Memory Card in PG M, T, C
Additional info. (subsequently • Retent. data blocks
inserted in CPU)

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.2
Memory Concept of the S7-400
Load memory:
Blocks:
• Logic blocks
(OB,FC,FB)
• Data blocks
(DB) RAM Flash-
Comments Additional info EPROM

Symbols Work memory:


• OB,FC,FB
Blocks:
• DB
• Logic blocks
(OB,FC,FB) Backup
• Data blocks via
(DB) System memory: battery
• PII, PIQ
• M, T, C

Blocks:
• Logic blocks
(OB,FC,FB)
• Data blocks Flash EPROM
(DB) Memory Card in PG
Additional info. (subsequently
inserted in CPU)

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.3
Loading Blocks into /out of Flash EPROM Memory Card

"Load in EPROM" Load memory


Flash EPROM

After inserting
the memory
"Load" Load memory card:
internal RAM memory reset
request
and copying
"Load in PG" in work
Sections memory
relevant for
execution

Work memory
RAM

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.4
Hardware Configuration and Parameter Assignment

Configuration Assignment of racks, blocks and distributed


I/O in the Station window of HW Config.
You can select the components from a
hardware catalog.

Parameter-assignment Establishing the characteristics of parameter-


assignable blocks, e.g: startup characteristics,
retentive areas, etc.)

Preset configuration Planned hardware configuration and


parameter assignment.

Actual configuration Actual configuration and parameter assignment


of an existing hardware.

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.5
Inserting a Station

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.6
Starting HW Config

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.7
Generating a Hardware Preset Configuration

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.8
Module Address Overview

“Address Overview”

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.9
CPU Properties

2x

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.10
CPU Properties: General

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.11
CPU Properties: Startup

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.12
CPU Properties: Retentive

Only relevant if CPU


has no backup
battery

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.13
CPU Properties: Cycle / Clock Memory

Clock memory bit 7 6 5 4 3 2 1 0


Frequency (Hz) 0.5 0.62 1 1.25 2 2.5 5 10
Period (s) 2 1.6 1 0.8 0.5 0.4 0.2 0.1

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.14
CPU Properties: Protection

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.15
CPU Properties: Diagnostics / Clock

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.16
Saving the HW Preset Configuration and Downloading it in Module

Download
(only when CPU
is in STOP mode)

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.17
Uploading the HW Actual Configuration to the PG

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.18
Displaying Hardware Diagnostics in the SIMATIC Manager

2x

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.19
Possible Problems with Configuration

Situation Result/Remedy

In S7-300, gaps in configuration Configuration cannot be compiled

Incorrect CPU (e.g. CPU 315-2DP


Configuration cannot be downloaded
instead of CPU 314)
CPU goes in Stop mode because of a
Analog module in incorrect slot
parameter assignment error
Analog module signals group error
Incorrect measuring range for
because of incorrect parameter
analog module
assignment
After a memory reset, different
Reload configuration
parameter assignment of modules
Create HW station or
Not possible to open HW Config.
"Upload Station"

Module parameters cannot be modified Open the station offline

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.20
Variable Addressing

2x

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.21
Accessing the Symbol Table

Once with right

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.22
Exercise: Reading Out and Adapting the Actual Configuration

Step What to Do Result

1 Start the SIMATIC Manager The tool is started

2 Open the project "My Project" The project structure is displayed

3 Download the actual configuration with A new HW station is created


PLC -> Upload
Check whether the correct modules
4 ???
(order numbers) are entered

5 Enter the correct order numbers for The parameter blocks of the CPU
the modules are displayed

Save the configuration as


"My Station" and download the
6 configuration

7 If you have an S7-400 training unit, The addresses are the same as the
adapt the addresses (see text) S7-300 training unit, version B

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.23
Exercise: Assign Parameters to Clock Memory and Test It

Step What to Do Result

1 In the CPU assign parameters to a


clock memory MB 10

MB 10 flashes
Save and download the
2 configuration in the CPU

Check the function by programming QB9 (QB5) on the


3 an OB 1 with the statements simulator should flash
L MB 10, T QB 9 (QB 5)

SIMATIC S7 Date: 28.06.2019 Information and Training Center


Knowledge for Automation
Siemens AG 1999. All rights reserved. File: PRO1_04E.24

Potrebbero piacerti anche