You are on page 1of 40

‫‪ SIMATIC Step7‬هو برنامج لضبط اعدادات‪ ,‬عنونة وبرمجة المتحكمات نوع سيمنز ‪ 300‬و ‪400‬‬

‫هذا الكراس يجعلك تحترف بعض الجوانب المهمة من ‪ SIMATIC Manager‬الموسعة والكثيرة‬
‫تم اعداد وتصميم هذه الدورة من قبل "سيف علي موسى" بالتعاون مع "الكترونيك الشرق" لتعليم األتمتة‬

‫‪www.YouTube.com/c/EssosElectronic‬‬

‫‪SIMATIC Manager – EssosElectronic By SaifAli‬‬ ‫‪1‬‬


‫جميع الحقوق محفوظة الى الناشر "سيف علي"‬
‫شركة نفط ميسان ‪ /‬قسم السيطرة والنظم‬ ‫الفكرة وطريقة االستخدام‪:‬‬
‫صممت هذه الملزمة على اقل كمية للوصف الغير مجدي‪ ,‬وذلك لتسهيل‬
‫عملية التعلم وتثبيت المالحظات المفيدة من قبل المتدرب نفسه ‪...‬‬
‫نموذج لطريقة االستخدام‪:‬‬

‫اسم الدرس‬

‫الخطوات المتبعة‬

‫مالحظات المتدرب‬

‫‪SIMATIC Manager – EssosElectronic By SaifAli‬‬ ‫‪2‬‬


Create new Project
‫الخطوات‬

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 3


Change the language
‫الخطوات‬

Open app > option > customize > language > English > OK

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 4


New project
‫الخطوات‬

File > new > Type project name > create top level folder
Insert > station > SIMATIC 300 station > rename it!

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 5


Hardware configuration
‫الخطوات‬
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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 6


Write your first LOGIC
‫الخطوات‬

Open CPU folder > S7 program > Blocks > OB1 > OK
View > LAD
Write YOUR LOGIC > From Right catalog > choose your instruction

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 7


Documentation
‫الخطوات‬

TOP level Description


NETWORK Title
Comment

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 8


Download & monitoring
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 9


Project Wizard
‫الخطوات‬

Menue > file > new “project wizard” > preview > next >
Select your CPU > next >
Select code blocks > LAD > next >
Type project name > finish

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 10


Insert PROFIBUS-DP
‫الخطوات‬

Open HW CONFIG > right click > DP master > insert DP master system >
new > type name > OK
Save & Compile

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 11


Add device to PROFIBUS-DP
‫الخطوات‬

Open HW CONFIG > PROFIBUS DP catalog > ET 200 L > L-16DI/DO >
Drag drop to network > OK
Save & Compile

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 12


Archive & Retrieve
‫الخطوات‬

File > archive > select file name > OK


Select destination directory > save
Retrieve > Select directory > select file > open > OK > yes

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 13


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


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, position control, 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
Change I/O addresses
‫الخطوات‬

HW CONFIG > right click on module > object properties >


addresses > deselect system selection
Set address as you like > OK
Then save & compile

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 16


Change I/O measuring type
‫الخطوات‬

HW CONFIG > double click on module > properties > inputs >
Measuring type > select
Measuring range > select > OK
Save & compile

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 17


Local expansion RACK
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 18


Configure CPU interrupt
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 19


Set CPU network address
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 20


Set PROFIBUS-DP device address
‫الخطوات‬

Select PROFIBUS devices > right click > object properties >
General > PROFIBUS > parameter > select address > 3 – 4 – 5 – 6 … >
OK > OK
Save & compile

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 21


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.
• Characteristics include:
• Standard SIEMENS specific
• Transmission Rate 187.5 kbit/s (Up to 12 Mbaud)
• Transmission Medium 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


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
• Transmission Rate Up to 12 MBaud
• Transmission Medium Electrical: Shielded, twisted pair cable
Optical: Glass or plastic fiber optic cable
Wireless: Infrared
• Max. No. of Stations Up to 126
• Network expansion 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


What are the main characteristics of Ethernet
Industrial Ethernet is the subnet used for connection of computer and
programmable controllers 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
• Transmission Rate Up to 100 Mbps
• Transmission Medium 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 (100m port 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


Symbolic name
‫الخطوات‬
S7 program folder > symbols > write symbol >
Write address > write comment > save >
Block folder > OB1 > view > display with >>
Symbolic representation
Symbolic information
Symbol selection
Comment
Address identification

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 25


Subroutine
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 26


reusable subroutine
‫الخطوات‬
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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 27


Cross reference
‫الخطوات‬

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 > program structure
OR using icons

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 28


Download
‫الخطوات‬

Select blocks > select download icon > and Agree


Select blocks > select specific blocks > then hit the download icon >
agree for overwriting

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 29


Display program status
‫الخطوات‬

SIMATIC manager > Select online icon > access actual plc program
OB1 > select monitor icon > watch your logic online

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 30


Use data type
‫الخطوات‬
• Symbol table
• Local variable > FC1
• Hovering by mouse on instructions
• using below table for some data types

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 31


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


Connect PC to PLC
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 33


Locate PLC fault
‫الخطوات‬

Accisable nodes icon > click right MPI > PLC > module
information >
Diagnostic buffer > events > open blocks > OK >OK
Modify and edit the logic!

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 34


Monitor variables
‫الخطوات‬

Blocks folder > insert > S7 blocks > variable tables >
Add symbolic name > OK >
Open variable table > add your satisfy variable addresses
Press setup connection configuration icon > press monitor icon
That’s it!

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 35


Modify / Force variable
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 36


Upload entire station
‫الخطوات‬

Select project > menu > PLC > upload station > select connection > OK >OK
Select from left catalog > the new SIMATIC station
You can browsing offline

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 37


Compare blocks
‫الخطوات‬

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

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 38


Clear PLC memory
‫الخطوات‬

Select accessible node icon > select your online


connections >
Menu > PLC > operation mode > STOP > Yes > Close
PLC > Clear / Reset > Yes

... ‫مالحظاتك‬

SIMATIC Manager – EssosElectronic By SaifAli 39


‫شكر وتقدير‬
‫في الختام اشكر حضوركم وحسن اصغائكم‬

‫المؤلف‪:‬‬
‫سيف علي موسى‬

‫‪SIMATIC Manager – EssosElectronic By SaifAli‬‬ ‫‪40‬‬

You might also like