You are on page 1of 29

PCS7 v8.

2
INFORMATIVNI UVOD
Arhitektura PCS7 sistema

PCS7 sistemska arhitektura se sastoji od :

ES – inženjerske stanice ( razvoj i održavanje sistema)


OS- operatorskog sistema ( samostalne stanice, serverske i klijentske stanice)
AS – automatizacionih stanica ( PLC)
DP – distribuiranih periferija i inteligentnih jedinica
Procesiranje AS (PLC) programa
Konstrukcija PLC Organization blocks (OBs)
Organization blocks (OBs) form the interface between the
operating system and the user program. The entire program can
programa be stored in OB1 that is cyclically called by the operating
system (linear program) or the program can be divided and
stored in several blocks (structured program). There are many
different OBs executing as per different conditions and its
priority.

Function (FCs)
A function (FC) contains a partial functionality of the program.
It is possible to program functions so that they can be assigned
parameters. As a result, functions are also suited for
programming recurring, complex partial functionalities such as
calculations.

Function Block (FBs)


Basically, function blocks offer the same possibilities as
functions. In addition, function blocks have their own memory
area in the form of instance data blocks. As a result, function
blocks are suited for programming frequently recurring,
complex functionalities such as closed-loop control tasks.
Structured Programming
Linear Program
The entire program is found in one continuous program block. This model resembles a hard-wired relay control that was replaced by a programmable logic controller. The CPU
processes the individual instructions one after the other.
Partitioned Program
The program is divided into blocks, whereby every block only contains the program for solving a partial task. Further partitioning through networks is possible
within a block. You can generate network templates for networks of the same type. The OB 1 organization block contains instructions that call the other blocks in a
defined sequence.

Structured Program
A structured program is divided into blocks. The code in OB1 is kept to a minimum with calls to other blocks containing code. The blocks are parameter
assignable. These blocks can be written to pass parameters so they can be used universally. When a parameter assignable block is called, the programming editor
lists the local variable names of the blocks. Parameter values are assigned in the calling block and passed to the function or function bloc
Organizacioni blokovi

https://youtu.be/jbKH2l_aHbo
Start-up
Start Up OBs.
The startup program is executed once during the transition from "STOP" mode to "RUN" mode. Current values from the process
image of the inputs are not available for startup program, nor can these values be set.After the complete execution of the startup
OBs, the process image of the inputs is read in and the cyclic program is started.There is no time limit for executing the startup
routine. Therefore the scan cycle monitoring time is not active. Time-driven or interrupt-driven organization blocks cannot be
used.

OB 100- Warm Restart


OB 101- Hot Restart
OB 102-Cold Restart
Cyclic Program OB OB1 is main Organization block which is executing the
program cycle periodically or cyclically with lowest priority.
Cyclic Interrupt OBs
Hardware Interupt OBs
Asynchronous Error OBs
Obs location in AS program
Redundantni PLC sistemi – S7 400H
Modovi rada S7 400H CPU
PLC performanse
Novi
AS2 AS1 AS1
Razlika u performansama H i Solo
sistema kod sistemskih funkcionalnih poziva

Usled očite razlike u vremenima procesiranja


SOLO mod je bar 30% brži nego REDUNDANTAN!
ALARM_8P 45% sporiji (sastavni deo PCS7 objekata)
TON 290% sporiji
UPDATE PI 20-80% sporiji (u svakom PLC skanu)
UPDATE PO 20-80% sporiji (u svakom PLC skanu)
Izmena hardverske konfiguracije PLC-a
tokom rada
sistema
Konekcija na hardver PLC-a
DP čvorovi za redundantne sisteme

Aktivni bekplajn i bus moduli


Komunikacioni interfejs modul
AS-OS veza

Terminal Bus se ne konfiguriše u NetPro!


Podešavanje komunikacije AS-OS
hardverska konfiguracija

Koristi se SAMO ISO protokol za PLANTBUS


Station Configurator na SV01
Komunikaciona kartica
CP1623 inicijalizovana
pravilno

S7 konekcije na PLC
Pravilno inicijalizovane

Step7 HW Download na SV01


Station Manager
inicijalizovan pravilno
I spreman za SimaticNet
Configure komunikaciju

Da bi SERVER komunicirao
Sa PLC-ovima MORA sve da
Bude kao na slici pravilno
inicijalizovano
Podešavanje Serverske komunikacije

Step7 projekat: Hardverska konfiguracija SV01 Communication Settings na SV01 PC stanici


NetPro - Komunikacija AS-OS

OnLine pregled aktivnih konekcija

OffLine pregled aktivnih konekcija

AS2 nije na RS SV2 SV1


komunikaciji 1 OK OK
OK
Konekcije OS Server – AS S7-417H

NetPro konfiguracija AS1

NetPro konfiguracija SV01


Step7 tipovi pregleda projekta
 Postoje 3 tipa pregleda projekta:
 Plant View – pregled projekta prema funkcionalnim celinama
 Component View – pregled prema komponentama sistema
 Proces Object View – pregled po objektima u programu
Naziv multi-projekta
Step7 projekat
AS1 PLC projekat
(Component view) (Stara drobilana,
nova drobilana, CQMS)
ES01 – glavna inženjerska stanica
ENGV8 – virtuelizovana inž.stanica AS2 PLC projekat
ENGV821 – sekundarna inž.stanica (Nova deponija)
sa HMI aplikacijom za prvu
pomoć u slučaju zaustavljanja
oba servera.
ENGV822 – sekundarna HMI stanica za
prvu pomoć
Klijentski projekti
CL01,02,03,04,05,06,07

OPCPCS7 – veza na CQMS sistem (ABB)


Serverski projekti
SV01 i SV02
Referentni klijentski projekti
(za 1 i 3 monitora)
RS21 PLC projekat
(RS1 kombinovana mašina
Master biblioteka na staroj deponiji)
Step7 projekat (Plant View)
Step7 projekat (Plant View) Update
plant hierarchy

AS assigment za plant hijerarhiju

AS assigment za plant hijerarhiju

OS assigment za plant hijerarhiju

OS assigment za plant hijerarhiju

You might also like