Sie sind auf Seite 1von 48

Les API-Siemens

KUKTEM
Serie S7 Mono-bloc: S7-200

Logiciels: Step7 Micro-Dos VXX


Step7 Micro-Win VXX

Serie S7 Modulaires: S7-300


S7-400

Logiciels: Simatic Manager VXX

Adriad CHOO Siemens S7 introduction 01/29/2021 1/30


Les API-Siemens
KUKTEM

Serie S5

Logiciels: Step5 VXX

Adriad CHOO Siemens S7 introduction 01/29/2021 2/30


Les API-Siemens
KUKTEM

Serie S5

Logiciels: Step5 VXX

Adriad CHOO Siemens S7 introduction 01/29/2021 3/30


S7-400 KUKTEM

S7-300

S7-200
LOGO
Adriad CHOO Siemens S7 introduction 01/29/2021 4/30
Les API-Siemens
KUKTEM

PLC:S7-1200

PLC:S7-1500

Logiciel: TIA-portal VXX

Adriad CHOO Siemens S7 introduction 01/29/2021 5/30


Les API-Siemens
KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 6/30


KUKTEM

Progrmmation des API-Siemens


S7-300/400
Avec Simatic Manager

Adriad CHOO Siemens S7 introduction 01/29/2021 7/30


Sommaire

 Présentation d’un système commandé par API-S7300 KUKTEM


 Lancement de STEP 7 et création d’un projet
 Configuration matérielle et connection

 Définition des symboles

 introduction au langage Ladder


 Création d’un programme utilisateur

 Génération des données de réference

 Chargement et mise au point d’un programme

 Copie de la Ram vers la Rom

Adriad CHOO Siemens S7 introduction 01/29/2021 8/30


KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 9/30


Vision Globale de SIMATIC
SIMATIC HMI SIMATIC PG
SIMATIC PC
KUKTEM
SIEMENS

S IM A T IC O P 17

PG 740

K1 K2 K3 K4 K5 K6 K7 K8 H E LP

S HIFT

K9 K10 K 11 K12 K13 K 14 K15 K16

E SC
7 8 9 0
D E F ACK

4 5 6 .
A B C
IN S
1 2 3 S H IF T
DE L
HEL P ENT E R

Red - MPI
SIMATIC NET Ethernet Industrial
SIMATIC NET
PROFIBUS

PLC
SIMATIC

SIE MENS SF I0.0 Q0.0 CPU 212


RUN I0.1 Q0.1
STOP I0.2 Q0.2
I0.3 Q0.3
I0.4 Q0.4
I0.5 Q0.5
I0.6
I0.7
SIMATIC
S7-200

PROFIBUS-DP

SIMATIC DP FM

SV
ASI

Adriad CHOO Siemens S7 introduction 01/29/2021 10/30


S7-300:API Modulaire
KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 11/30


S7-300: API Modulaire
KUKTEM

PS CPU IM(S/R) M: SM: SM: SM: FM: CP:


Entrée: (optionel) DI DO AI AO - Compteurs - Point à Point
AC:120-230 Envoyer/ - Servo Moteur - PROFIBUS
Sortie: 24V Recevoir - PID Control - Ethernet Industrial
-2A
-5A
-10A
CP: Module de communication
SM: Module de signal PS: Power Suppy

FM: Module de Fonction IM: Interface Module


Adriad CHOO Siemens S7 introduction 01/29/2021 12/30
KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 13/30


S7-300: CPU
Indicateurs Signification Explication
SIEMENS CPU315-2 DP

SF SF DP SF (rouge) Liste d’erreurs Les modules capables de diagnostiquer


BATF
DC5V
BUSF
KUKTEM
affichent ici une liste d’erreurs.

FRCE
RUN BF (rouge) Erreur de bus (si disponible) Indique les perturbations du PROFIBUS
STOP DP

RUN-P
BATF (rouge) Erreur de batterie Indique si la batterie mémoire tampon ne
RUN délivre pas assez de tension ou carrément
STOP pas du tout
M RES DC5V (vert) Alimentation DC5V pour la Indicateur pour l’alimentation interne
CPU et le bus panneau arrière fonctionnelle 5V de la CPU
SIMATIC
S7-300 FRCE (vert) Forçages Indicateurs d’état de la CPU, dans les
entrées et les sorties par une fonction de
test de forçage de commande
Batteríe MPI DP
RUN (vert) Etat de fonctionnement RUN Clignote lors du démarrage de la CPU –
Fixe lorsque la CPU est dans l’état Run

STOP Etat de fonctionnement STOP Clignote lorsque le formatage est demandé


(orange) – Fixe lorsque la CPU est à l’état arrêt

Le programme est traité, toutes les fonctions PG


sont autorisées
Le programme est traité, seules les fonctions PG en
lectures sont autorisées
Le programme n’est pas traité ; toutes les fonctions
PG sont autorisées
Dans cette position, vous pouvez procéder à un
formatage comme expliqué ci-dessous

Adriad CHOO Siemens S7 introduction 01/29/2021 14/30


les règles d’enfichage:

Structure maximale d’une SIMATIC S7-300/CPU314


Mise en place jusqu’à 32 modules (CPU 312IFM, CPU 312C et CPU 313 seulement 8 modules),
pour chaque rack (Ligne) jusqu’à 8 modules.
KUKTEM

Local

Emplacement
Enfichage

Adriad CHOO Siemens S7 introduction 01/29/2021 15/30


CPU 312C CPU 313C CPU 313C-2DP
KUKTEM
CPU 314C-2DP

Durée de la commande 0.2 / 4 / 40μs 0.1 / 2 / 20μs 0.1 / 2 / 20μs 0.1 / 2 / 20μs.
(Binaire/flottant/référence)

Mémoire de travail 16 KB 32 KB 32 KB 48 KB

Carte mémoire micro SIMATIC De 64 KB à 4 MB De 64 KB à 4 MB De 64 KB à 4 MB De 64 KB à 4 MB

Périphérie embaquée (On


board) 10 / 6 24 / 16 16 / 16 24 / 16
DE/DA -/- 4+1*/2 -/- 4+1* / 2
AE/AA *PT100

Fonctions technologiques 2 (10KHz) 3 (30KHz) 3 (30KHz) 4 (60KHz)


- Compter/Fréquence 2 (2,5 KHz) 4 (2,5 KHz) 4 (2,5 KHz) 4 (2,5 KHz)
- Sorties d’impulsion non oui oui oui
- Régulation non non non 1
- Positionnement

Interfaces oui oui oui oui


- MPI 187,5 kBaud non non Maître/Esclave Maître/Esclave
- Fonctionnalité DP

Adriad CHOO Siemens S7 introduction 01/29/2021 16/30


KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 17/30


KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 18/30


Blocs d’organisation
Les blocs d’organisation (OB) constituent l’interface entre le système d’exploitation
de la CPU et le programme utilisateur. Ils vous permettent de déclencher l’exécution
KUKTEM
de certaines parties de programme :
Programme cyclique (OB1)
Le système d’exploitation de la CPU S7 exécute l’OB1 de manière cyclique : aussitôt
son traitement achevé, il le démarre à nouveau. L’exécution cyclique de l’OB1
commence quand la mise en route est terminée.
TRAITEMENT LINÉAIRE DE PROGRAMME

, OB
1 1. Instruction
2. Instruction
3. Instruction

BE

Adriad CHOO Siemens S7 introduction 01/29/2021 19/30


TRAITEMENT STRUCTURÉ DU PROGRAMME

On répartit le programme d’un ensemble volumineux de tâches de commande en blocs de


KUKTEM
programmes petits, clairs, associés à des fonctions. Cela présente l’avantage de pouvoir tester
les blocs de manière individuelle et de les faire fonctionner ensemble par une fonction globale.

OB 1 FB 1 FC 21 DB 11
Call FB1, DB10 Call FC21 DB globale
Pour tous les
FB
BE FC
OB

DB 10
Instance-DB
Données locales
seulement FB1
BE

FC 2

UC FC2
OB = Bloc d’organisation
FB = Bloc de fonctions
FC = Fonction
BE DB = Bloc de données

Adriad CHOO Siemens S7 introduction 01/29/2021 20/30


KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 21/30


Extension du logiciel de base STEP 7

Applications techniques
KUKTEM

SCL CFC
HiGraph
Téléservice
PDIAG (Continuous
(Structured
GRAPH est
(pour
offre
est un
Control
S7
un langage
Function
la possibilitéde
uniquement)
langage Chart).pour
Language)
de programmation
de S7configuration
programmation
est
permet
programmer
un langage
la et M7
permettant
et est un
évolué
permettant
d'effectuerlangage
textuella
laladescription
homogène de programmation
conforme
description à aisée
maintenance de de
du diagnostic
la
aisée
normede duDIN EN
permettant
HARDPRO
61131-3.processus
systèmes
processus
commandesestasynchrones
l'interconnexion
Il comporte
d'automatisation
pour SIMATIC non
le séquentielles
système de
des éléments graphique
séquentiels
S7configuration
S7-300/400.
et
(programmation
de
M7langage
depuisde
Lesous
que
lafonctions
forme
matérielle
diagnostic
PGde
l'on
ou de
existantes.
pour
graphes
trouve
le du
PCgraphes
S7-300
processus
via Ces
d'état.
séquentiels).
également
le réseaufonctions
A cet
quipermet
assiste
sous
Le deeffet,
une couvrent
déroulement
forme
unM7-ProC/C++
large éventail (pour M7 uniquement) permet d'intégrer àl'environnement
l'installation
l'utilisateur
similaire
téléphonique.
détecter
du dans dans
processus
des est
son
lesétatsy allant
énorme
langages
est deprogrammation
subdivisée
erronés combinaisons
subdivisé
de horsenen
tâche unités
dudeétapes.
système logiques
fonctionnelles
configuration
Celles-ci
Pascal simples
de pouvant
solutions
d'automatisation
etcontiennent
C. SCL des régulations
prendre
convient
(p.ex.
en particulier
position
donc etdes non
différents
d'automatisation
particulièrement
finale
de
complexes. développement
commandes
états. complexes.Borland
Un pour les
grand langages
nombre de fonctions
programmation
depassage
ces C et C++
est disponible sousVousla forme
aux utilisateurs
atteinte).
Avec actions
DOCPRO, déjà
pour lahabitués
commande
vous pouvezà se servir
des d'un
sorties.
organiser langage
Le
toutes de d'une
les donnéesprogrammation
deétape évolué.
à la suivante
configuration est
créées
deà
Cesl'environnement
blocs
unités
dans de développement
fonctionnelles
une bibliothèque.
peuventLa se STEP 7.
programmation
synchroniser par
se des
fait
l'échange
en copiant
de très
messages.
descomplexes
blocs sur un
pouvez,
avecsoumis
par
STEP exemple,
à7 des
dans conditions
faire appel
un dossier de àtransition.
desSCL pour
schémas programmer
de l'installation. fonctions
Ceci facilite la gestion ou se
diagramme
répétant souvent. et en reliant les connecteurs de blocs par des lignes.
des données de configuration et garantit la conformité aux normes lors de la
préparation à l'impression.

Adriad CHOO Siemens S7 introduction 01/29/2021 22/30


KUKTEM

Adriad CHOO Siemens S7 introduction 01/29/2021 23/30


Logiciels exécutables

KUKTEM

M7-SYS
PRODAVE
RTM7-DDE
Le serveur contient
MPI est
(leDynamic
système
une palette
d'exploitation
Data d'outils permettant
Exchange) M7 RMOS
permet l'échange
de32 et des
relier deprogrammes
des données du
applications
système.
processus
Windows Ilàest
desentre
indispensable
SIMATIC
variables à l'utilisation
S7, SIMATIC
du processus dansdesM7progiciels
et SIMATIC
SIMATIC M7,M7-ProC/C++
C7.
sans Elle réalise
qu'une et CFC depour
manière
SIMATIC
autonomeM7.l'échange
programmation de données
supplémentaire via l'interface
ne soit nécessaire.MPI.

Adriad CHOO Siemens S7 introduction 01/29/2021 24/30


Interfaces homme/machine (Human Machine Interfaces ; HMI)

KUKTEM

Le système
ProAgent permetdeunvisualisation duprocessus
processusprécis
diagnostic ProTool/Lite
du SIMATIC et WinCC
rapide estles
dans uninstallations
système de base
et
SIMATIC ProTool
indépendant et
des SIMATIC
branches et technologiessont des applications
d'utilisation qui modernes
comporte toutes les
machineslaenconfiguration
permettant fournissantdesdes informations
visuels SIMATIC etrelatives à la localisation
des appareils compacts et à la cause des
fonctions
erreurs. C7.
SIMATIC
indispensables au contrôle-commande.

Adriad CHOO Siemens S7 introduction 01/29/2021 25/30


ancement de STEP 7 et creation d’un projet KUKTEM
Double click sur l’icone SIMATIC Manager

Click sur next,

Adriad CHOO Siemens S7 introduction 01/29/2021 26/30


KUKTEM
Selection du type CPU 313C

L’addresse MPI, est requise pour


La communication entre la CPU et
La PG ou le PC
(0-31Avec 0 et 1 reservé pour le PC)
Mettre 2

Clickez sur suivant

Adriad CHOO Siemens S7 introduction 01/29/2021 27/30


KUKTEM
Selectionnez le Bloc d’organisation
OB1 (si il n’est pas déja sélectionné
C’est le programmme principal.

Choisissez votre langage de


programmation

Confirmez vos selection avec Suivant

Adriad CHOO Siemens S7 introduction 01/29/2021 28/30


KUKTEM
Nom du Projet
ex;
Exercise1 ou Exercise_1

Click Finish pour générer


Le nouveau projet

Adriad CHOO Siemens S7 introduction 01/29/2021 29/30


tructure du projet dans Simatic Manager et appel de l’aide de Step7
KUKTEM
tructure du Projet
Ouvrir, Organiser et Charger le programme et
Imprimer les projets surveiller le matériel
Choisir la représentation et la disposition des
Editer les blocks et inserer
Les éléments du programme fenêtres, choisir la langue et selectionner
diverses options pour les données du processus Appeler l’aide de step 7

Le contenu de la fenetre de droite affiche les objets et les dossiers


Du dossier sélectionné à gauche

Le contenu de la fentre de
gauche affiche la structure Tous les programmes sont sauvgardés dans ‘Blocks’
du projet
Adriad CHOO Siemens S7 introduction 01/29/2021 30/30
onfigure hardware and connection KUKTEM
Click once at SIMATIC 300 Station folder follow by double click the Hardware symbol

Rack with individual slot

Hardware Catalog (If not


appear, click View and
choose Catalog)

Configuration table with the MPI


& I/O address

Information on the selected element

Adriad CHOO Siemens S7 introduction 01/29/2021 31/30


KUKTEM

Reserve pour la carte d’alimentation (PS-300)


Re-confirm the
order number at the Reserve pour les cartes d’extension (IM-300)
configuration table
equal to the actual
order number printed
Carte Signal module (SM-300)
on the hardware
(Black S7 box,
bottom left)

Adriad CHOO Siemens S7 introduction 01/29/2021 32/30


KUKTEM

Confirm the
card replacement
with Yes button

Search until you find


the correct CPU
(Simatic300>CPU300>
CPU313C) then drag and
drop the correct CPU
number into slot 2

Adriad CHOO Siemens S7 introduction 01/29/2021 33/30


KUKTEM

Double click to modify


the I/O address

Adriad CHOO Siemens S7 introduction 01/29/2021 34/30


KUKTEM

This is pre-assigned or
recommended. Modify
the start address to 0.
Repeat for Output start
address.

Uncheck the system


selection

Adriad CHOO Siemens S7 introduction 01/29/2021 35/30


KUKTEM

Click the “Save and


Compile” button to
prepare the data
transfer to CPU. Finally
close this screen.

Adriad CHOO Siemens S7 introduction 01/29/2021 36/30


Configure connection between STEP 7 and CPU KUKTEM
Configure local connection MPI network address (2) Connection times out (recommended 10s)

PC COM port

Select interface using Configure interface properties

Click on options

Confirm configuration
with OK
Select PG/PC
Determine by using (PC Adapter(AUTO)) interface
Depend on the Adapter used
follow by network detection
(19.2 or 38.4)
Depends on the CPU (31) Confirm local connection setting with
OK
Adriad CHOO Siemens S7 introduction 01/29/2021 37/30
Test connection between STEP 7 and CPU KUKTEM

Click once Simatic300 follow by the “Online” button

To prepare for hardware download, double click on Hardware

Adriad CHOO Siemens S7 introduction 01/29/2021 38/30


Download hardware configuration to the CPU KUKTEM
Click the download
button

Confirm the racks no

Confirm the slot no

OK to proceed
downloading

Confirm target MPI address

OK to continue download

Adriad CHOO Siemens S7 introduction 01/29/2021 39/30


I/O checking KUKTEM

Click to monitor input

Click the station button Click the open ONLINE Key in new
value

Click this button


to modify
Right click on the I/O Select the Monitor/Modify
module

Adriad CHOO Siemens S7 introduction 01/29/2021 40/30


Define symbol KUKTEM

Double click to open Symbol component

Click on the S7 Program

Overwrite with Main Program Type the comment – Main Program


Enter new symbols

Save the entries or changes you make in the symbol table and close the window

Adriad CHOO Siemens S7 introduction 01/29/2021 41/30


Creating a program in OB1 KUKTEM

Double click sur OB1

Adriad CHOO Siemens S7 introduction 01/29/2021 42/30


KUKTEM
 Program a circuit in Ladder logic
Click in the Title area of Network 1 and enter a Title (Steriliser 1 start)
for example. OK to be left blank.

Click to select the current path for your first element.

Click the button in the tool bar and insert a normally open contact.

Click the button in the tool bar and insert a normally close contact.

Click the button in the tool bar and insert an empty box.

The address for the contacts and the function for the empty box still missing

Check whether the symbolic representation is activated (click all)

Adriad CHOO Siemens S7 introduction 01/29/2021 43/30


KUKTEM
Click the ??.? sign and enter the symbolic name “STR1_START”.
Symbolic name MUST be similar to what that had been defined earlier.
Press “Enter” to confirm.

Enter the symbolic name “STR1_STOP” for the normally close contact
Press “Enter” to confirm.

Enter “S” to select a set function


Press “Enter” to confirm.

Enter the symbolic name “STR1_START_BIT”


Confirm with enter.

Adriad CHOO Siemens S7 introduction 01/29/2021 44/30


Download and debugging program KUKTEM
 Switch on the power supply
 Reset the S7 CPU (using the following method sequences)
• Turn the operating switch to MRES position and hold it that for at least 3 second until “STOP” red LED start flashing slowly
• Release the switch, wait for one second turn it back to MRES position. When “STOP” red LED start flashing quickly,
the CPU has been reset.
• If the “STOP” red LED does not start flashing quickly, repeat the same reset procedure.

 Turn the operating switch to “RUN”


 Start Simatic manager and open the project

Select the PLC menu Select download


Confirm with Yes
Click
Confirm with OKthe block folder
Confirm with Yes Click Online
Confirm with Yes Select the view menu

Select All

Adriad CHOO Siemens S7 introduction 01/29/2021 45/30


KUKTEM
 Testing the program with program status

Open OB1

OnActivate
status the online monitor
Modify the status of the contact
Off status
to 1
Select the normally
open contact then
click the right
mouse button

Adriad CHOO Siemens S7 introduction 01/29/2021 46/30


KUKTEM
 Evaluating the diagnostic buffer
• CPU goes in to STOP while processing S7 program
• Cannot switch the CPU to run after you have downloaded the program

Select PLC Latest event, the cause of the stop is


displayed.

Open block disable because there was no


error in the block for this project. If there
was an error on the block click the open
Select Module Information
block it will guide you to the block and
network where the error happen.

Adriad CHOO Siemens S7 introduction 01/29/2021 47/30


Copie RAM to ROM KUKTEM
 Quand le projet est mis au point
 CPU doit être en mode STOP

Confirm
Confirm with
with OK
Yes Select PLC

Select Copy RAM to ROM

Adriad CHOO Siemens S7 introduction 01/29/2021 48/30

Das könnte Ihnen auch gefallen