By: Andri Kuncoro
SIMATIC Overview
SIMATIC Controller (PLC) S7-200 S7-300 S7-400
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 MRES= Memory reset function STOP= Stop mode, program not executed RUN= Program execution RUNP= Program execution, read/write access 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 Mode Selector Status Indicator
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 R R0PSCPUIM R1(PS)IM R2(PS)IM R3(PS)IM
Module Address Overview
Variable Addressing 2x
CPU Properties 2x
Saving the HW Configuration and Downloading it in the Module
Inserting S7 Block
Block architecture and Block editor OB: Organization Block FB: Function Block FC: Function SFB: System Function Block SFC: System Function DB: Data Block Maximun Nesting Depth : S7-300: 8 (16 for CPU 318) S7-400:24
Program Structure
Binary Operation AND - OPERATION ASSIGNMENT
Binary Operation OR - OPERATION
EXCLUSIVE - OR - OPERATION Binary Operation
RESET DOMINANT SET DOMINANT
Binary Operation POSITIVE EDGE
Binary Operation NEGATIVE EDGE
Binary Operation JUMP UNCONDITIONAL (JU) JUMP CONDITIONAL (JC)
Digital Operation BIT BYTE WORD For a unit of 8 binary characters, the term BYTE is used. A byte has the size of 8 bits. A word also has the size of 2 bytes or 16 bits. A double-word corresponds to the word length of 32 binary characters. A double-word also has the size of 2 words, 4 bytes, or 32 bits. DOUBLE-WORD
Beberapa operand di S7 : 1. Operand input(I) BitI … ByteIB 0 - … WordIW 0 - … Double WordID 0 - … 2.Operand Output(Q) BitQ … ByteQB 0 - … WordQW 0 - … Double WordQD 0 - … 3.Operand Flag(M) BitM … ByteMB 0 - … WordMW 0 - … Double WordMD 0 - … 4.Operand Timer(T) T 0 5.Operand Counter(C) C 0 Digital Operation 6. Operand Peripheral(PI) Input BytePIB 0 - … Input WordPIW 0 - … Output BytePQB 0 - … Output WordPQW 0 - … 7.Operand Data(D) BitDBX … ByteDBB 0 - … WordDBW 0 - … Double WordDBD 0 - …
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 Digital Operation ==IN1 is equal to IN2 <>IN1 is not equal to IN2 > IN1 is greater than IN2 <IN1 is less than IN2 >=IN1 is greater than or equal to IN2 <=IN1 is less than or equal to IN2
Digital Operation
??? Data Block
??? Scale & Unscaled
Matur Suwun…