s7-1212c Course Training

Download as pdf or txt
Download as pdf or txt
You are on page 1of 45

SIMATIC S7-1200

Totally Integrated Automation

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


The S7-1200 controller provides the flexibility and power to control a wide variety of devices
in support of your automation needs. The compact design, flexible configuration, and
powerful instruction set combine to make the S7-1200 a perfect solution for controlling a
wide variety of applications.

The CPU combines a microprocessor, an integrated power supply, input and output circuits,
built-in PROFINET, high-speed motion control I/O, and on-board analog inputs in a compact
housing to create a powerful controller. After you download your program, the CPU contains
the logic required to monitor and control the devices in your application. The CPU monitors
the inputs and changes the outputs according to the logic of your user program, which can
include Boolean logic, counting, timing, complex math operations, motion control, and
communications with other intelligent devices.

The CPU provides a PROFINET port for communication over a PROFINET network.
Additional modules are available for communicating over PROFIBUS, GPRS, RS485,
RS232, RS422, IEC, DNP3, and WDC (Wideband Data Communication) networks.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


① Power connector
② Memory card slot under top
door
③ Removable user wiring connectors
(behind the doors)
④ Status LEDs for the onboard
I/O
⑤ PROFINET connector (on
the bottom of the CPU)

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


SIMATIC S7-1200: The Modular Mini-PLC

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


SIMATIC S7-1200: The Modular Mini-PLC

Slot Rules
• CM left of the CPU (number depends on the CPU)
• Signal modules (digital, analog) right of the CPU (number depends on the CPU)

Signal Modules
• Digital input, output or mixed modules (24VDC, relay)
• Analog input, output or mixed modules (voltage, current, resistance, thermocouple)

Communication Modules (CM - Communication Module, CP - Communication Processor)


• Point-to-point connection (RS232, RS485)
• PROFIBUS
• ASi-Master
• Telecontrol (GPRS functionality)

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Expansion Board

With this the CPU can be expanded by onboard I/O or an interface.


A battery board ensures the long-term battery backup (buffering) of the real-time clock.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Application

These boards are used for application-specific adaptation of the CPU to the requirements of the
plant. The physical size of the CPU remains unchanged.
Signal Board (SB)
• Digital signal board
− only inputs
− only outputs
− inputs and outputs
• Analog signal board
− only inputs
− only outputs
Communication Board (CB)
• RS485 interface
Battery Board (BB)
A battery board (housing for CR1025 battery) ensures the long-term battery backup (buffering) of
the real-time clock.
• Buffering time without battery board typically 20 days / minimum 12 days at 40°C
• Buffering time with battery board approximately 1 year

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


SIMATIC S7-1200: Installation and Mounting Positions

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


SIMATIC S7-1200: Installation and Mounting Positions

Installation
The modules are mounted on a standard mounting rail or alternatively screwed into the control
cabinet.
S7-1200 Expansion Cable
It offers additional flexibility in configuring the S7-1200 system. One expansion cable can be used
for each CPU system.
• Either between the CPU and the first SM or between two SMs
Bus Connector
It is located as a mechanical slide on the left side of the SM modules.
It is mechanically attached on the right side of the CMs/CPs.
Mounting Positions
A horizontal or vertical mounting is possible.
Caution!
With a vertical mounting, the maximum allowed ambient temperature is 10 °C lower.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Accessing the data of the S7-1200

The CPU provides several options for storing data during the execution of the user program:
● Global memory: The CPU provides a variety of specialized memory areas, including
inputs (I), outputs (Q) and bit memory (M). This memory is accessible by all code blocks
without restriction.
● PLC tag table: You can enter symbolic names in the STEP 7 PLC tag table for specific
memory locations. These tags are global to the STEP 7 program and allow programming
with names that are meaningful for your application.
● Data block (DB): You can include DBs in your user program to store data for the code
blocks. The data stored persists when the execution of the associated code block comes
to an end. A "global" DB stores data that can be used by all code blocks, while an
instance DB stores data for a specific FB and is structured by the parameters for the FB.
● Temp memory: Whenever a code block is called, the operating system of the CPU
allocates the temporary, or local, memory (L) to be used during the execution of the
block. When the execution of the code block finishes, the CPU reallocates the local
memory for the execution of other code blocks.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


INPUT ADDRESS

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
1 bit I0.0,Q0.0,M0.0

8 BIT= 1 BYTE

IB0,QB0,MB0

16 BIT= 2 BYTE=1WORD

IW0,QW0,MW0
Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
32 BIT= 4 BYTE=2 WORD

ID0,QD0,MD0

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Integer data types
Integer data types (U = unsigned, S = short, D= double)

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Floating-point real data types
Floating-point real data types (L=Long)

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Time and Date data types

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Numerical System

# Decimal :

A Decimal Number (based on the number 10) .

1,2,3,4,5,5.5,6.6

# Binary :

A Binary Number is made up of only 0s and 1s

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
Convert 1310 to binary:

Conversion steps:
1.Divide the number by 2.
2.Get the integer quotient for the next iteration.
3.Get the remainder for the binary digit.
4.Repeat the steps until the quotient is equal to 0

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
CPU memory
The CPU provides the following memory areas to store the user program, data, and
configuration:

● Load memory is non-volatile storage for the user program, data and configuration. When
a project is downloaded to the CPU, it is first stored in the Load memory area. This area
is located either in a memory card (if present) or in the CPU. This non-volatile memory
area is maintained through a power loss. The memory card supports a larger storage
space than that built-in to the CPU.

● Work memory is volatile storage for some elements of the user project while executing
the user program. The CPU copies some elements of the project from load memory into
work memory. This volatile area is lost when power is removed, and is restored by the
CPU when power is restored.

● Retentive memory is non-volatile storage for a limited quantity of work memory values.
The retentive memory area is used to store the values of selected user memory locations
during power loss. When a power down or power loss occurs, the CPU restores these
retentive values upon power up.
Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com
Inserting a memory card in the CPU

Check that the memory card is not write-protected.


Slide the protection
switch away from the "Lock" position.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


To insert a memory card, open the top
CPU door and insert the memory card in
the slot. A push-push type connector
allows for easy insertion and removal.
The memory card is keyed for proper
installation.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Configuring the startup parameter of the CPU before copying the project to the
memory card

When you copy a program to a transfer card or a program card, the program includes the
startup parameter for the CPU. Before copying the program to the memory card, always
ensure that you have configured the operating mode for the CPU following a power-cycle.
Select whether the CPU starts in STOP mode, RUN mode, or in the previous mode (prior to
the power cycle).

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Transfer card

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Program card

When used as a program card, the memory card is the external load memory of the CPU. If
you remove the program card, the internal load memory of the CPU is empty.

Firmware update

You use a memory card when downloading firmware


updates from customer support
(http://www.siemens.com/automation/).

https://www.youtube.com/watch?v=UiZjYvDb-nA

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Monitor and modify data in the CPU

Watch tables and force tables

You use "watch tables" for monitoring and modifying the values of a user program being
executed by the online CPU. You can create and save different watch tables in your project
to support a variety of test environments. This allows you to reproduce tests during
commissioning or for service and maintenance purposes.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


User Blocks for the SIMATIC S7-1200

The following user blocks are provided for structured programming:

· OB (organization block):
OBs are called by the operating system cyclically and are the interface between the user program and
the operating system. In this OB, the PLC’s control unit is informed by means of block call commands as
to which program blocks it has to process.

· FB (function block):
For each call (instance), the FB needs an assigned memory area. When an FB is called, a data block
(DB) for example can be assigned to it as instance DB.
The data in this instance DB is then accessed by means of the variables of the FB.
Different memory areas have to be assigned to an FB if it called several times.
Additional FBs and FCs can be called in a function block in turn.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


· FC (function):
A FC does not have an assigned memory area. The local data of a function is lost after the
function is processed.
Additional FBs and FCs can be called in a function in turn.

· DB (data block):
DBs are used to provide memory for the data variables. There are two types of data blocks: global
DBs where all OBs, FBs and FCs can read the stored data or themselves can write data into the DB,
and instance DBs that are assigned to a certain FB.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Move operations

MW0

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Analog Signals
Measuring ranges
At a resolution of 16 bits the theoretically possible 32768 increments are distributed across a
voltage range of 11.852 V, which means that only 27648 increments are actually available
for the resolution of a measuring range of 10 V. The minimum value which can be
represented is therefore 0.3617 mV

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Example of resolution for the 0 to 10 V measuring range of a SIMATIC S7 module

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Principles of analog modules

Analog value conversion

The CPU always processes the analog values in binary format.

Analog input modules convert the analog process signal to a digital format.

Analog output modules convert digital output values to analog signals

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Representation of analog values at a resolution of 16 bits

The digitized analog value applies to input and output values of the same rated range.
Analog values are output as fixed point numbers with two's complement. The resultant
assignment:

Sign

The sign of the analog value is always set at bit 15:


● "0" → +
● "1" → -

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Supported analog value resolutions

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Binary representation of input ranges

Representation of analog values in the ±1 V to ±10 V voltage measuring range

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Representation of analog values in the 0 mA to 20 mA and 4 mA to 20 mA current
measuring ranges

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Representation of the analog values of resistive transducers

Representation of the analog values of 6 kΩ; 10 kΩ and from 150 Ω to 600 Ω


resistive transducers

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Representation of analog values for resistance thermometers Pt x00 and Pt x00

Representation of analog values for resistance thermometers PT 100, 200, 500,1000


and PT 10, 50,100, 500

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


APPLICATIONS:

Project 1

I need 3 pumps in a system and 2 start P.B (N.O) and 1 stop P.B(N.C)

• If you press on START P.B 1 the pump 1and 2 is working, and after pull out
your hand on the p.b start the pump1 stop and pump 2 continue in the work.

* Then press on the START P.B 2 the pump 3 is working if the pump 2 is working.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Operate Stamping of Parts

When a part is placed on the conveyor at position 1, and when a start button is
pressed it moves to position 2. Upon reaching position 2, it stops for the stamping
operation to take place. After stamping it automatically moves to position 3. It stops
at position 3, where the part is removed manually from the conveyor. Assume only
one part is on the conveyor at a time. Add limit switches, interlocks, push buttons,
etc. as required.

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Final project
Station filling gasoline

Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com


Thank you
Eng Ahmad Yousef 0799189997 engahmadyahmad@yahoo.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy