Friday, April 17, 2015

HW Config: Edit Symbolic Names, Monitor/Modify Variables

HW Config Edit Symbolic Names  Monitor Modify Variables
Edit Symbolic Names
You can directly access the symbol table from the "HW Config" tool. This allows
you to assign symbolic names to the inputs and outputs during hardware
configuration or at a later date when you can make suppliments or changes.
You open the symbol table with a right mouse click on the module. Select Edit
Symbolic Names in the follow-up box. A section of the symbol table with the
relevant addresses is then opened.

Monitor/Modify Variables
You can monitor or modify the addresses of the configured modules directly from the HW Config tool. The signals of the input modules can be "checked" and
the signals of the output modules can be "controlled" using the Monitor/Modify
(Variables) function.

Product Support Information
Directly from the Internet, you can fetch information on modules or components from the Product Support pages. As well, it is also possible to update HW Config
by incorporating individual components such as new CPUs or new DP devices
into the current STEP 7 version.
The PG/PC has an Internet connection, a browser for displaying Internet pages,
and the function is enabled in the HW Config Settings along with the
specification of the Internet address.

"Symbolic Addressing" and the editing of symbol tables is dealt with in depth in
the "Symbols" chapter. The Monitor / Modify Variables function is dealt with in
the "Troubleshooting" chapter.

CPU Propertires: Cycle  / Clock Memory

CPU Propertires Cycle  Clock Memory

• "Scan cycle monitoring time (ms):"
- If this time is exceeded, the CPU goes into the STOP mode.
   Possible causes why this time is exceeded: communications processes,
   frequently from interrupt events, errors in the CPU program.
- If you have programmed an error OB 80, the scan cycle time is doubled.
  After that, the CPU also goes into the STOP mode.
• "Cycle load from communication (%):"
- Communication (such as data transmission to another CPU through MPI
  or test functions the PG/PC triggered) is restricted to the specified
  percentage of the current scan cycle time.
- Restricting the cycle load can slow down communication between the
  CPU and PG.
- Example: Restricting communication to 20% results in a maximum
  communication load of 20ms for a scan cycle time of 100ms.
Size of the  Process Image 
With the CPU 318-2 and several S7-400  CPUs, you can specify the size of the process image (in bytes). The process image area always begins with input
and output byte 0.

clock memories pulse

Saving the HW Setpoint Configuration and Downloading it in Module

Saving the HW Setpoint Configuration and Downloading it in Module

You select the Station->Save menu to save the current configuration in the
current project (without generating system data blocks).

Save and Compile
When you select the Station->Save and Compile menu or click the
icon  on the toolbar, the configuration and parameter assignment data are
also saved in system data blocks.

Consistency Check
You select the Station -> Consistency Check menu to check whether it is
possible to generate configuration data from the entries made.

Download in Module
You select the PLC -> Download menu or click the icon in the toolbar to
download the selected configuration to the PLC.
The PLC must be in "STOP" mode!

System Data Blocks
The system data blocks (SDBs) are generated and modified when you configure
the hardware and compile the hardware configuration. SDBs contain
configuration data and module parameters. When a system data block is
downloaded, it is stored in the CPU‘s work memory.
This makes it easier to replace modules, because the parameter assignment
data is downloaded to the new module from the system data blocks on startup.
In the programming device, the system data blocks are saved under: Project \
Station \ CPU \ S7_program \ Blocks \ System_data.
You double-click the System data briefcase icon to see the list of system
data blocks.
If you use a memory card as Flash EPROM, you should save the SDBs there as
well. That way, the configuration is not lost if you operate without battery backup
and there is a power failure.

Upload Actual Configuration to the PG/PC and Rename It

Upload Actual Configuration to the PG/PC and Rename It

To upload a PLC‘s hardware configuration. Since the project called "My_Project"
does not yet have a HW Station, you are to read out the actual PLC
configuration from your training area. Rename the newly created hardware
station in the project "My_Station".

What To Do
• Start the SIMATIC  Manager and open your project called "My_Project"
• Load the actual configuration from your training area into your project;
in SIMATIC  Manager -> highlight My_Project -> PLC menu -> Upload
Station -> OK
Complete the follow-up dialog box as shown in the slide above. If no
"Accessible Nodes" are visible, you must click "Update".
• Rename the newly created "SIMATIC  300(1)" hardware station
Click twice on "SIMATIC  300(1)" (not a double-click !) and type

In your project called "My_Project" you now have a hardware station called
"My_Station" and the hardware-independent program called "My_Program" (see
bottom picture of slide).

Adapting the ACTUAL Configuration

Adapting the ACTUAL Configuration

The ACTUAL configuration read out with "Upload Station" is incomplete
because several module order numbers are missing. These numbers are
necessary to clearly identify and assign parameters to the modules. You are to
enter the order numbers of the modules of your training area (located on the
bottom, outside module cover) in the uploaded "actual configuration".

What To Do
1. Start the HW Config tool
SIMATIC  Manager (Offline view) -> select HW Station called "My_Station"
-> double-click "Hardware" icon
2. Update the modules with correct order numbers
double-click each signal module -> in the dialog box "Specify Module",
choose the correct part number for the modules on your training area ->
confirm the follow-up "Properties" dialog box with OK (since the preset
standard parameters do not have to be changed).
3. Only if your training unit is an S7-400:
Specify the module addresses so that they correspond to those of an
S7-300 training unit with 32 channel modules (see slide)
double-click on Module -> specify the address in the Properties dialog box
4. Save and compile the adapted ACTUAL configuration
Station -> Save and Compile
5. Download the adapted ACTUAL configuration to the CPU
PLC -> Download
6. Exit the HW Config tool

The hardware station called "My_Station" in your project called "My_Project"
corresponds to the main rack of your training unit.

Tuesday, March 24, 2015

Addressing S7-300 Modules

Addressing S7-300 Modules

Slot Numbers
The slot numbers in the rack of an S7-300 simplify addressing in the
S7-300  environment. The position of the module in the rack determine the first
address on a module.

Slot 1
Power supply. This is the first slot by default.
A power supply module is not absolutely essential. An S7-300  can also be
supplied with 24V directly.

Slot 2
Slot for the CPU.

Slot 3
Logically reserved for an interface module (IM) for multi-tier configurations using
expansion racks. Even if no IM is installed, it must be included for addressing
You can physically reserve the slot (such as for installing an IM at a later date) if
you insert a DM370 dummy module.

Slots 4-11
Slot 4 is the first slot that can be used for I/O modules, communications
processors (CP) or function modules (FM).
Addressing examples:
• A DI module in slot 4 begins with the byte address 0 .
• The top LED of a DO module in slot 6 is called Q8.0 .

Four byte addresses are reserved for each slot. When 16-channel DI/DO
modules are used, two byte addresses are lost in every slot!

DI/DO Addressing in Multi-Tier Configurations

Multi-Tier Configurations
The slots also have fixed addresses in a multi-tier configuration.

• Q7.7 is the last bit of a 32-channel DO module plugged into slot 5 of rack 0.
• IB105 is the second byte of a DI module in slot 6 of rack 3.
• QW60 is the first two bytes of a DO module in slot 11 of rack 1.
• ID80 is all four bytes of a 32-channel DI module in slot 8 in rack 2.

Module Address Overview

Address  Overview
Views the I/O addresses of the station configured. Select: View -> Address Overview …

R Rack number
S Slot number of the relevant module
DPRelevant only when Distributed Peripherals (I/O) are used
IF Interface module ID when programming the M7 system (in C++).

Variable Addressing

Slot dependent Addressing 
The modules are assigned fixed slot-dependent addresses with the S7-300  (CPUs without DP interface) and S7-400 (without hardware configuration).

Variable Addressing
With the S7-300  (CPUs with integrated DP interface) and with the S7-400 you can assign parameters to the starting addresses of the modules.

What to Do
When you double-click a digital or an analog module, the parameter assignment
screen is opened. After you choose the "Addresses" tab, you can cancel
"System selection". You can now define the starting address in the "Start" box. If
the address is already used, an error message is triggered.
Part process images can be defined only in the S7-400 . That way, specific
inputs and outputs (such as time-critical signals) can be combined into one
group. A system function triggers the updating of a part process image in the
user program.

After a CPU memory reset, the parameters, and therefore also the addresses
are lost. This means that the slot-dependent addresses of the S7-300  or the
default addresses of the S7-400  are valid once more.