1 / 41

Basic Programming Simatic S7-300

Basic Programming Simatic S7-300. By: Andri Kuncoro. 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

Download Presentation

Basic Programming Simatic S7-300

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Programming Simatic S7-300 By: Andri Kuncoro

  2. SIMATIC Overview

  3. SIMATIC Controller (PLC) S7-400 S7-200 S7-300

  4. 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”

  5. 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

  6. Starting with SIMATIC Manager

  7. SIMATIC Manager menus and toolbars

  8. Standard Library

  9. Context-Sensitive Help in S7 F1

  10. Creating a project

  11. Insert Station

  12. Starting Hardware Configuration Editor

  13. Generating a Hardware setpoint Configuration

  14. Addressing S7 Modules

  15. Module Address Overview

  16. Variable Addressing 2x

  17. CPU Properties 2x

  18. Saving the HW Configuration and Downloading it in the Module

  19. Inserting S7 Block

  20. Inserting S7 Block

  21. Block architecture and Block editor Maximun Nesting Depth : S7-300 : 8 (16 for CPU 318) S7-400 :24 OB : Organization Block FB : Function Block FC : Function SFB : System Function Block SFC : System Function DB : Data Block

  22. Program Structure

  23. Binary Operation ASSIGNMENT AND - OPERATION

  24. Binary Operation OR - OPERATION

  25. Binary Operation EXCLUSIVE - OR - OPERATION

  26. Binary Operation RESET DOMINANT SET DOMINANT

  27. Binary Operation POSITIVE EDGE

  28. Binary Operation NEGATIVE EDGE

  29. Binary Operation JUMP UNCONDITIONAL (JU) JUMP CONDITIONAL (JC)

  30. Digital Operation BIT BYTE For a unit of 8 binary characters, the term BYTE is used. A byte has the size of 8 bits. WORD A word also has the size of 2 bytes or 16 bits. DOUBLE-WORD 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.

  31. Digital Operation Beberapa operand di S7 : • Operand input(I) Bit I 0.0 - … Byte IB 0 - … Word IW 0 - … Double Word ID 0 - … 2. Operand Output(Q) Bit Q 0.0 - … Byte QB 0 - … Word QW 0 - … Double Word QD 0 - … 3. Operand Flag(M) Bit M 0.0 - … Byte MB 0 - … Word MW 0 - … Double Word MD 0 - … 4. Operand Timer(T) T 0 5. Operand Counter(C) C 0 6. Operand Peripheral(PI) Input Byte PIB 0 - … Input Word PIW 0 - … Output Byte PQB 0 - … Output Word PQW 0 - … 7.Operand Data(D) Bit DBX 0.0 - … Byte DBB 0 - … Word DBW 0 - … Double Word DBD 0 - …

  32. Digital Operation PULSE TIMER

  33. Digital Operation EXTENDED PULSE TIMER

  34. Digital Operation ON –DELAY TIMER

  35. Digital Operation OFF-DELAY TIMER

  36. Digital Operation COUNTER OPERATIONS

  37. Digital Operation COMPARISON FUNCTIONS == 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

  38. Digital Operation

  39. Data Block ???

  40. Scale & Unscaled ???

  41. Matur Suwun…

More Related