4. Change the language
SIMATIC Manager – EssosElectronic By SaifAli 4
الخطوات
مالحظاتك...
Open app > option > customize > language > English > OK
5. New project
SIMATIC Manager – EssosElectronic By SaifAli 5
الخطوات
مالحظاتك...
File > new > Type project name > create top level folder
Insert > station > SIMATIC 300 station > rename it!
6. Hardware configuration
SIMATIC Manager – EssosElectronic By SaifAli 6
الخطوات
مالحظاتك...
Open PLC station folder > hardware configuration> right catalog
Choose > SIMATIC 300 > RACK-300 > Rail
PS-300 > Choose suitable one! > PS 307
CPU-300 > CPU 315 > 6ES7 315 XXX XXX
SM-300 > DI/DO-300 > SM 323 DI/DO XXX XXX
Save & Compile
7. Write your first LOGIC
SIMATIC Manager – EssosElectronic By SaifAli 7
الخطوات
مالحظاتك...
Open CPU folder > S7 program> Blocks > OB1 > OK
View > LAD
Write YOUR LOGIC > From Right catalog > choose your instruction
8. Documentation
SIMATIC Manager – EssosElectronic By SaifAli 8
الخطوات
مالحظاتك...
TOP level Description
NETWORK Title
Comment
9. Download & monitoring
SIMATIC Manager – EssosElectronic By SaifAli 9
الخطوات
مالحظاتك...
Save your project > download > monitor > RUN mode
PLCSIM mode
Run your PLCSIM set on > MPI > RUN-P
Insert > Inputs > Outputs > According on your HW CONFIG
Save your project > download > monitor > on ladder editor
10. Project Wizard
SIMATIC Manager – EssosElectronic By SaifAli 10
الخطوات
مالحظاتك...
Menue > file > new “project wizard” > preview > next >
Select your CPU > next >
Select code blocks > LAD > next >
Type project name > finish
11. Insert PROFIBUS-DP
SIMATIC Manager – EssosElectronic By SaifAli 11
الخطوات
مالحظاتك...
Open HW CONFIG > right click > DP master > insert DP master system >
new > type name > OK
Save & Compile
12. Add device to PROFIBUS-DP
SIMATIC Manager – EssosElectronic By SaifAli 12
الخطوات
مالحظاتك...
Open HW CONFIG > PROFIBUS DP catalog > ET 200 L > L-16DI/DO >
Drag drop to network > OK
Save & Compile
13. Archive & Retrieve
SIMATIC Manager – EssosElectronic By SaifAli 13
الخطوات
مالحظاتك...
File > archive > select file name > OK
Select destination directory > save
Retrieve > Select directory > select file > open > OK > yes
14. What is a STEP 7 library and how do I use it
• A library is an organization of programs
and associated code blocks. A library is
a top-level folder/directory, under
which you develop subdirectories called
programs. Siemens provides libraries
with STEP 7, where you will find
hundreds of pre-defined ready to use
subroutines. You can use these like an
auxiliary instruction set to complement
the STEP 7 instructions. A simple drag
and drop or copy and paste can be used
to use them in you user program.
SIMATIC Manager – EssosElectronic By SaifAli 14
15. What central hardware modules are supported
• Power Supply (PS)
• The modular power supply provides the rack and CPU internal supply voltage.
• Central Processing Unit (CPU)
• The CPU stores and processes the user program; assigns parameter to the
modules; handles the communication with the programming device / PC, the
modules and additional stations over the built-in MPI bus; and can be equipped
with an integrated DP interface for DP master or slave operation.
• Interface Module (IM)
• The interface module connects the mounting racks with each other. Different
versions of IM support local expansion or PROFIBUS DP connections.
• Signal Modules (SM)
• Commonly called I/O (input/output) modules, SMs measure input signals and
control output devices. Signal modules are available for digital and analog
signals and can also be used for the connections such as sensors and actuators.
• Function Modules (FM)
• Function Modules perform complex or time critical processes independently of
the CPU module, such as counting, positioncontrol, and closed-loop control.
• Communication processors (CP)
• Modular communication processors connect SIMATIC stations with networks,
such as Industrial Ethernet, PROFIBUS, Actuator/Sensor interface or serial point-
to-point connection.
SIMATIC Manager – EssosElectronic By SaifAli 15
16. Change I/O addresses
SIMATIC Manager – EssosElectronic By SaifAli 16
الخطوات
مالحظاتك...
HW CONFIG > right click on module > object properties >
addresses > deselect system selection
Set address as you like > OK
Then save & compile
17. Change I/O measuring type
SIMATIC Manager – EssosElectronic By SaifAli 17
الخطوات
مالحظاتك...
HW CONFIG > double click on module > properties > inputs >
Measuring type > select
Measuring range > select > OK
Save & compile
18. Local expansion RACK
SIMATIC Manager – EssosElectronic By SaifAli 18
الخطوات
مالحظاتك...
HW CONFIG > IM-360 IM XXX > slot 3
Add RACK-300 > rail > double click
PS-300 > select PS
IM-300 > IM 361 receive > slot 3
Save & compile
19. Configure CPU interrupt
SIMATIC Manager – EssosElectronic By SaifAli 19
الخطوات
مالحظاتك...
HW CONFIG > select CPU > right mouse click > object properties >
Time of day properties > Active > select execution type >
Select start date > time of day > OK
Save & Compile
20. Set CPU network address
SIMATIC Manager – EssosElectronic By SaifAli 20
الخطوات
مالحظاتك...
HW CONFIG > select CPU > right mouse click > object properties >
General > properties > parameters >
Change address > 2 – 3 – 4 – 5 ….. > select >
Subnet type > OK > OK
Save & compile
21. Set PROFIBUS-DP device address
SIMATIC Manager – EssosElectronic By SaifAli 21
الخطوات
مالحظاتك...
Select PROFIBUS devices > right click > object properties >
General > PROFIBUS > parameter > select address > 3 – 4 – 5 – 6 … >
OK > OK
Save & compile
22. What are the main characteristics of MPI
Every S7-300 and 400 CPU is equipped with the Siemens Multi-Pont Interface (MPI) connection. This is
both a programming and peer-to-peer networking connection.This interface establishes a subnet in
which CPU’s, user interface and programming devices can simultaneously exchange data with each
other.
• Characteristicsinclude:
• Standard SIEMENS specific
• TransmissionRate 187.5 kbit/s (Up to 12 Mbaud)
• TransmissionMedium Electrical: Shielded, twisted pair cable
Optical: Glass or plastic fiber optic cable
• Max. No.of Stations max 32
• Network expansion Electrical: Up to 1.1 km with repeaters
Optical: Up to 100 km with optical link
• Topology bus, tree star, ring
• Applications · Deterministic access and high data integrity
• · Integrated network to address multiple services
• · Test and Diagnosis
• · Remote programming
• · Peer to peer global communication (GD)
• · Multiple active online connection
SIMATIC Manager – EssosElectronic By SaifAli 22
23. What are the main characteristics of PROFIBUS
PROFIBUS is a multi-layer protocol used for master/slave, peer-to-peer, and dynamic
communication strategies. There are protocols for different communication layers in the open
PROFIBUS standard. PROFIBUS DP is commonly used to transfer the data between master and
slaves for the Decentralized Periphery (remote devices) such as SIMATIC S7 slaves or even non-
Siemens PROFIBUS compatible devices.
• Standard volume 2 of EN 50170
• TransmissionRate Up to 12 MBaud
• TransmissionMedium Electrical: Shielded, twisted pair cable
Optical: Glass or plastic fiber optic cable
Wireless: Infrared
• Max. No.of Stations Up to 126
• Networkexpansion Electrical: Up to 1.1km with repeater
Optical: Up to 100km with optical link
• Topology bus, tree, star, and ring, Redundancy concepts
• Applications · Deterministic access and high data integrity
• · Uniform system w/ interfaces for different devices
• · Integrated network to address multiple services
• · Test and Diagnosis
• · Remote programming
• · Access to Windows applications
SIMATIC Manager – EssosElectronic By SaifAli 23
24. What are the main characteristics of Ethernet
Industrial Ethernet is the subnet used for connection of computer and
programmablecontrollers and is commonly used for industrial application
for high-speed exchange of large amounts of data, or connection to the
Intra-, Internet. With the support of baud rates up to 100Mbit/sec, Ethernet
is often the choice for data collection to enhance throughput.
• Standard Ethernet - IEEE 802.3
• TransmissionRate Up to 100 Mbps
• TransmissionMedium Electrical: Double shielded coaxial cable
(10Base5)
Industrial Twisted Pair (ITP)
• Twisted Pair (TP)
Optical: Fiber optic cable (glass)
• Max. No. of Stations 1,024
• Network expansion Electrical: no limits with switching
technology (100mport to port)
• Optical: no limits with switching technology (3000m port to port)
• Topology Bus, tree, star, ring, redundant ring
• Applications · Area and cell network
SIMATIC Manager – EssosElectronic By SaifAli 24
25. Symbolic name
SIMATIC Manager – EssosElectronic By SaifAli 25
الخطوات
مالحظاتك...
S7 programfolder > symbols > write symbol >
Write address > write comment > save >
Block folder > OB1 > view > display with >>
Symbolic representation
Symbolic information
Symbol selection
Comment
Address identification
26. Subroutine
SIMATIC Manager – EssosElectronic By SaifAli 26
الخطوات
مالحظاتك...
Select block folder > insert > S7 block > function >
Write name > write symbolic name > select language > OK
Double click on FC > write documentation > write your logic > Save >
Browsing right catalog > FC blocks
27. reusable subroutine
SIMATIC Manager – EssosElectronic By SaifAli 27
الخطوات
مالحظاتك...
Select block folder > insert > S7 block > function >
Write name > write symbolic name > select language > OK
Double click on FC > expand local variable area > declare variables > name >
type LIKE INT > add comment > TAB to add more input >
ADD output > ADD temp for temporary variables
Browsing right catalog > FC blocks
28. Cross reference
SIMATIC Manager – EssosElectronic By SaifAli 28
الخطوات
مالحظاتك...
Select block folder > options > reference data > display > regenerated? > Yes > OK
Customize > cross-refrence > OK
Ref window > view > assignment > inputs, outputs and memory bits
Ref window > view > assignment > timer & counter
Ref window > view > assignment > programstructure
OR using icons
29. Download
SIMATIC Manager – EssosElectronic By SaifAli 29
الخطوات
مالحظاتك...
Select blocks > select download icon > and Agree
Select blocks > select specific blocks > then hit the download icon >
agree for overwriting
30. Display program status
SIMATIC Manager – EssosElectronic By SaifAli 30
الخطوات
مالحظاتك...
SIMATIC manager > Select online icon > access actual plc program
OB1 > select monitor icon > watch your logic online
31. Use data type
SIMATIC Manager – EssosElectronic By SaifAli 31
الخطوات
مالحظاتك...
• Symbol table
• Local variable > FC1
• Hovering by mouse on instructions
• using below table for some data types
32. What are OBs, FBs, FCs, DBs
• Organization Block (OB)
• The OBs provide the interface between the operation system and the user program. The operation system of
the CPU calls the organization blocks; every scan, cyclic time period, time events, hardware or software
faults. The operating system manages the coordination of the timing and the interrupt handling when more
than one OB executes at a time.
• Function Blocks – FBs
• An FB is a subroutine where you can write code to solve part of your automation task. This subroutine can
accept information from another code block (parameter passing) and then execute its respective logic using
this information (variables). A function block also stores a copy of these variables automatically in a memory
area called an instance data block; a data block whose data is updated the instant the function block is used.
• Functions – FCs
• An FC is also a subroutine. It might be a simple group of code that works on specific variables each time, or as
with the FB, you can pass information (variables) to the FC for its execution. The difference between the FB
and the FC is that the function does not make an automation copy of the passed variables into a data block.
• Data Blocks – DBs
• A data block is a grouping of information collected by your program. The size and format of the data block is
determined by the user, and has a great deal of flexibility, both in its structure and its access. Data in data
blocks remain in place until overwritten. Typical applications include simple data collection, error recording,
recipe and setpoint value storage, and grouping information for communication uses.
SIMATIC Manager – EssosElectronic By SaifAli 32
33. Connect PC to PLC
SIMATIC Manager – EssosElectronic By SaifAli 33
الخطوات
مالحظاتك...
Menu > options > set PG/PC interface >
Select your adapter > MPI > properties >
Local connection > COM port > transition rate > 19200 … 38400
Yes > OK > OK > OK
Hit accessibility node icon > browse your PLC
34. Locate PLC fault
SIMATIC Manager – EssosElectronic By SaifAli 34
الخطوات
مالحظاتك...
Accisable nodes icon > click right MPI > PLC > module
information>
Diagnostic buffer > events > open blocks > OK >OK
Modify and edit the logic!
35. Monitor variables
SIMATIC Manager – EssosElectronic By SaifAli 35
الخطوات
مالحظاتك...
Blocks folder > insert > S7 blocks > variable tables >
Add symbolic name > OK >
Open variable table > add your satisfy variable addresses
Press setup connection configurationicon > press monitor icon
That’s it!
36. Modify / Force variable
SIMATIC Manager – EssosElectronic By SaifAli 36
الخطوات
مالحظاتك...
Blocks > open variables table > type new value in modify value field >
Press icon setup connection to PLC > monitor icon > press modify variables icon
Force
Menu > variables > display forced values > type address > type value >
Menu > variables > Force > yes
Menu > variables > Stop Forcing > yes
37. Upload entire station
SIMATIC Manager – EssosElectronic By SaifAli 37
الخطوات
مالحظاتك...
Select project > menu > PLC > upload station > select connection > OK >OK
Select from left catalog > the new SIMATIC station
You can browsing offline
38. Compare blocks
SIMATIC Manager – EssosElectronic By SaifAli 38
الخطوات
مالحظاتك...
Blocks folder > menu > options > compare blocks … >
online/offline > OK
Select Details > for more information
Select Goto > for open both blocks
Select Update > for make change