Basic Programming Simatic S7-300
Basic Programming Simatic S7-300
300
TRAINING BY:
MANISH VERMA
POINTS TO BE FOCUS:
SIMATIC OVERVIEW
SIMATIC MANAGER
CPU PROPERTIES
S7 BLOCKS
PROGRAM STRUCTURE
BINARY OPERATION
DIGITAL OPERATION
COMMUNICATION PROTOCOL
QUESTION AND ANSWER
SIMATIC Overview
SIMATIC Controller (PLC)
S7-400
S7-200
S7-300
S7 – 300
Features :
Modular small controll system
Performance graded range of CPU
Extensive selection of modules
Expandable design with up to 32 modules
Backplane bus integrated in the modules
Can be networked with MPI, Profibus or Industrial ethernet
Central PG/PC connection with access to all modules
No slot restrictions
Configuration and parameter setting with the help “HW Config”
S7 – 300
Mode Selector
MRES = Memory reset function
STOP = Stop mode, program not executed
RUN = Program execution
RUNP = Program execution, read/write access
Status Indicator
SF = Group error, internal CPU or fault in module
BATF = Battery fault
DC5V = Internal 5 VDC voltage indicator
FRCE = FORCE
RUN = Flashes when the CPU is starting up,
then steady light in Run mode
STOP = Show steady light in Stop mode
SF DP = Physical bus fault
BUSF = No configuration or incorrect configuration
Starting with SIMATIC Manager
SIMATIC Manager menus and toolbars
Standard Library
Context-Sensitive Help in S7
F1
Creating a project
Insert Station
Starting Hardware Configuration Editor
Generating a Hardware setpoint
Configuration
Addressing S7 Modules
S 1 2 3 4 5 6 7 8 9 10 11
R
R0 PS CPU IM 0 4 8 12 16 20 24 28
R1 (PS) IM 32 36 40 44 48 52 56 60
R2 (PS) IM 64 68 72 76 80 84 88 92
2x
CPU Properties
2x
Saving the HW Configuration and
Downloading it in the Module
Inserting S7 Block
Inserting S7 Block
DB (DATA BLOCK)
OB (OPERATION BLOCK)
FC (FUNCTION)
FB (FUNCTION BLOCK)
Inserting S7 Block
Block architecture and Block editor
AND - OPERATION
Binary Operation
OR - OPERATION
Binary Operation
EXCLUSIVE - OR - OPERATION
Binary Operation
RESET DOMINANT
SET DOMINANT
Binary Operation
POSITIVE EDGE
Binary Operation
NEGATIVE EDGE
Binary Operation
JUMP UNCONDITIONAL (JU)
BYTE For a unit of 8 binary characters, the term BYTE is used. A byte has the
size of 8 bits.
Byte MB 0 - …
Word MW 0 - …
Double Word MD 0 - …
4. Operand Timer(T)
T0
5. Operand Counter(C)
C0
Digital Operation
PULSE TIMER
Digital Operation
EXTENDED PULSE TIMER
Digital Operation
ON –DELAY TIMER
Digital Operation
OFF-DELAY TIMER
Digital Operation
COUNTER OPERATIONS
Digital Operation
COMPARISON FUNCTIONS
Profibus :
Data Transfer – 12 Mbit/s,
Distance – 1 Km without fiber optic cable
Number of nodes – up to 127
Ethernet :
THANK YOU