basic programming simatic s7-300.ppt
TRANSCRIPT
![Page 1: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/1.jpg)
By:Andri Kuncoro
![Page 2: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/2.jpg)
SIMATIC Overview
![Page 3: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/3.jpg)
SIMATIC Controller (PLC)
S7-200
S7-300
S7-400
![Page 4: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/4.jpg)
S7 – 300Features : 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”
![Page 5: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/5.jpg)
S7 – 300
MRES = Memory reset functionSTOP = Stop mode, program not executedRUN = Program executionRUNP = Program execution, read/write access
SF = Group error, internal CPU or fault in moduleBATF = Battery faultDC5V = Internal 5 VDC voltage indicatorFRCE = FORCERUN = Flashes when the CPU is starting up,
then steady light in Run modeSTOP = Show steady light in Stop modeSF DP = Physical bus faultBUSF = No configuration or incorrect configuration
Mode Selector
Status Indicator
![Page 6: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/6.jpg)
Starting with SIMATIC Manager
![Page 7: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/7.jpg)
SIMATIC Manager menus and toolbars
![Page 8: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/8.jpg)
Standard Library
![Page 9: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/9.jpg)
Context-Sensitive Help in S7
F1
![Page 10: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/10.jpg)
Creating a project
![Page 11: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/11.jpg)
Insert Station
![Page 12: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/12.jpg)
Starting Hardware Configuration Editor
![Page 13: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/13.jpg)
Generating a Hardware setpoint Configuration
![Page 14: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/14.jpg)
Addressing S7 Modules
S
R
1 2 3 4 5 6 7 8 9 10 11
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
R3 (PS) IM 96 100 104 108 112 116 120 124
![Page 15: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/15.jpg)
Module Address Overview
![Page 16: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/16.jpg)
Variable Addressing
2x
![Page 17: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/17.jpg)
CPU Properties
2x
![Page 18: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/18.jpg)
Saving the HW Configuration and Downloading it in the Module
![Page 19: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/19.jpg)
Inserting S7 Block
![Page 20: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/20.jpg)
Inserting S7 Block
![Page 21: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/21.jpg)
Block architecture and Block editor
OB : Organization BlockFB : Function BlockFC : FunctionSFB : System Function BlockSFC : System FunctionDB : Data Block
Maximun Nesting Depth :
S7-300 : 8 (16 for CPU 318)
S7-400 :24
![Page 22: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/22.jpg)
Program Structure
![Page 23: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/23.jpg)
Binary Operation
AND - OPERATION
ASSIGNMENT
![Page 24: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/24.jpg)
Binary OperationOR - OPERATION
![Page 25: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/25.jpg)
EXCLUSIVE - OR - OPERATION
Binary Operation
![Page 26: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/26.jpg)
Binary OperationRESET DOMINANT
SET DOMINANT
![Page 27: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/27.jpg)
Binary OperationPOSITIVE EDGE
![Page 28: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/28.jpg)
Binary OperationNEGATIVE EDGE
![Page 29: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/29.jpg)
Binary OperationJUMP UNCONDITIONAL (JU)
JUMP CONDITIONAL (JC)
![Page 30: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/30.jpg)
Digital OperationBIT
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
![Page 31: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/31.jpg)
Beberapa operand di S7 :1. 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 05. Operand Counter(C) C 0
Digital Operation
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 - …
![Page 32: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/32.jpg)
PULSE TIMER
Digital Operation
![Page 33: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/33.jpg)
EXTENDED PULSE TIMER
Digital Operation
![Page 34: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/34.jpg)
ON –DELAY TIMER
Digital Operation
![Page 35: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/35.jpg)
OFF-DELAY TIMER
Digital Operation
![Page 36: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/36.jpg)
COUNTER OPERATIONS
Digital Operation
![Page 37: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/37.jpg)
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
![Page 38: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/38.jpg)
Digital Operation
![Page 39: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/39.jpg)
???
Data Block
![Page 40: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/40.jpg)
???
Scale & Unscaled
![Page 41: Basic Programming Simatic S7-300.ppt](https://reader033.vdocuments.mx/reader033/viewer/2022061509/55cf9361550346f57b9d64d4/html5/thumbnails/41.jpg)
Matur Suwun…