modul plc makasar_rev.doc

46
BUKU MATERI PLC Siemens S7 BUKU MATERI PLC Siemens S7 Politeknik Negeri Ujung Politeknik Negeri Ujung Pandang Pandang

Upload: muhammad-fadly-ishak

Post on 20-Jan-2016

67 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Modul PLC Makasar_rev.doc

FX. Suryadi, Ing. FHPOLITEKNIK ATMI SURAKARTA

BUKU MATERI PLC Siemens S7BUKU MATERI PLC Siemens S7Politeknik Negeri Ujung PandangPoliteknik Negeri Ujung Pandang

Page 2: Modul PLC Makasar_rev.doc

Pengenalan Otomatisasi

1. Otomatisasi merupakan tingkatan tertinggi di dalam “proses pengembangan tehnik” dan

mempunyai pengaruh yang sangat besar dalam perkembangan kehidupan

manusia di dunia.

2. Keuntungan dan kerugian otomatisasi

Keuntungan

Tempat yang dibutuhkan lebih sedikit ( ringkas )

Kepresisian/Keseragaman lebih sempurna ( untuk produk massal )

Lebih efisien

Kerugian

Manusia menjadi lebih malas, karena terlalu percaya pada mesin

Menambah pengangguran

Pengembangan dan pemrograman memerlukan biaya yang mahal

3. Perkembangan menuju Otomatisasi :

Dengan alat bantu dari tenaga manusia:

Bergerak lewat kekuatan otot manusia walaupun sudah menggunakan alat Bantu

Contoh : Menggergaji dengan gergaji, menempa (Konventional)

Dengan mesin :

Pekerjaan untuk otot manusia sudah berkurang dengan adanya alat bantu mesin (mechanical).

Dengan otomatisasi :

Seluruh proses kerja akan dapat berjalan sendiri lengkap dengan pengontrolnya. Yang perlu

diketahui bahwa proses kerja yang berjalan sendiri itu diadopsi dari pemikiran manusia yang

diterjemahkan kedalam program. (otomatic).

2/44

Page 3: Modul PLC Makasar_rev.doc

Pengenalan PLC Siemens

Perkembangan teknologi yang berkembang saat ini, tidak bisa dilepaskan dari perkembangan sistem

pengendalian saat ini. Sistem pengendalian saat ini dituntut untuk lebih flexibel, lebih efisien dan

mudah penggunaannya. Salah satu sistem pengendalian yang banyak diminati saat ini yaitu PLC

( Programmable Logic Control ), selain Microcontroler dan Microprosesor.

PLC merupakan Kontrol suatu proses yang dibuat berdasarkan pemrograman dengan komputer

Sampai saat ini PLC terus berkembang. Banyak produsen-produsen yang memproduksi kontrol ini,

diantaranya Siemens, Omron, Festo, LG, Mitsubishi, Fanuc.

Walaupun diproduksi oleh beberapa produsen tetapi secara prinsip teknik pemrograman yang

digunakan sama.

Dari beberapa produk tersebut kita akan mendalami PLC Siemens.

1. Pembagian PLC Siemens

PLC Siemens dapat dibedakan menjadi 2:

a. Hardware

Hardware Dibagi 2 : Modular dan Kompak

Modular : Modul dalam PLC tersebut tidak menjadi satu ( Modul terpisah )

Kompak : Setiap modul dalam PLC menjadi satu.

b. Software

Software dibagi 2 : Software dan Slot

Software : PLC yang digunakan menjadi satu dengan Software

Slot : Bentuk dari PLC berbentuk Slot

3/44

Page 4: Modul PLC Makasar_rev.doc

2. Contoh Produk dari PLC Siemens :

4/44

Siemens LOGO

Page 5: Modul PLC Makasar_rev.doc

3. Contoh penggunaan PLC:

Penggerak motor servo

Fungsi dan desain PLC Siemens

5/44

Page 6: Modul PLC Makasar_rev.doc

The controller has the task of leading single operations of a machine or a machine plant that depend

on sensor signals after a given function execution.

1. TYPES OF SIGNALS IN CONTROL SYSTEM TECHNOLOGY

The electrical signals which are applied at the inputs and outputs can be, in principle, divided into two different groups:

1.1 BINARY SIGNAL

Binary signals can take the value of 2 possible states. They are as follows:

Signal state “1“ = voltage available = e.g. Switch on

Signal state “0“ = voltage not available = e.g. Switch off

In control engineering, a frequent DC voltage of 24V is used as a “control supply voltage“ A

voltage level of + 24V at an input clamp means that the signal status is “1“ for this input.

Accordingly 0V means that the signal status is “0“. In addition to a signal status, another

logical assignment of the sensor is important. It’s a matter of whether the transmitter is a

“normally closed” contact or a “normally open” contact. When it is operated, a “normally

closed” contact supplies a signal status of

“0“ in the “active case“. One calls this switching behavior “active 0“ or “active low“. A “normally

open” contact is “active 1”/“active high“, and supplies a “1“ signal, when it is operated.

In closed loop control, sensor signals are “active 1“. A typical application for an “active 0“

transmitter is an emergency stop button. An emergency stop button is always on (current flows

through it) in the non actuated state (emergency stop button not pressed). It supplies a signal

of “1“(i.e. wire break safety device) to the attached input. If operation of an emergency

stop button is to implement a certain reaction (e.g. all valves close), then it must be triggered

with a signal status of “0“

1.2 ANALOG SIGNAL

Contrary to a binary signal that can accept only signal statuses („Voltage available +24V“ and

“Voltage available 0V“, there are similar signals that can take many values within a certain

range when desired. A typical example of an analog encoder is a potentiometer. Depending

6/44

Page 7: Modul PLC Makasar_rev.doc

upon the position of the rotary button, any resistance can be adjusted here up to a maximum

value.

Examples of analog measurements in control system technology:

Temperature -50 ... +150°C

Current flow 0 ... 200l/min

Number of revolutions 500 ... 1500 R/min

Etc.

These measurements, with the help of a transducer in electrical voltages, are converted to

currents or resistances. E.g. if a number of revolutions is collected, the speed range can be

converted over a transducer from 500... 1500 R/min into a voltage range from 0... +10V. At a

measured number of revolutions of 865 R/min, the transducer would give out a voltage level of

+ 3.65V.

If similar measurements are processed with a PLC, then the input must be converted into

digital information to a voltage, current or resistance value. One calls this transformation

analog to digital conversion (A/D conversion). This means, that e.g. a voltage level of 3.65V is

deposited as information into a set of equivalent binary digits. The more equivalent binary

digits for the digital representation will be used, in order for the resolution to be finer. If one

would have e.g. only 1 bit available for the voltage range 0... +10V, only one statement could

be met, if the measured voltage is in the range 0.. +5V or +5V....+10V. With 2 bits, the range

can be partitioned into 4 single areas, (0... 2.5/2.5... 5/5... 7.5/7.5... 10V). Usually in control

engineering, the A/d converter is changed with the 8th or 11th bit. 256 single areas are

normally provided, but with 8 or 11 bits, you can have 2048 single areas.

2. TERMS FROM COMPUTER SCIENCE

7/44

Page 8: Modul PLC Makasar_rev.doc

In connection with programmable controllers, terms such as BIT, BYTE and WORD are

frequently used in the explanation of data and/or data processing.

2.1 Bit

Bit is the abbreviation for binary digit. The BIT is the smallest binary (bivalent) information

unit, which can accept a signal status of “1“ or “0“.

0 No voltage available24 V0 V 1Voltage available

2.2 BYTE

For a unit of 8 binary characters, the term BYTE is used. A byte has the size of 8 bits.

2.3 WORD

A word is a sequence of binary characters, which is regarded as a unit in a specific

connection. The word length corresponds to the number from 16 binary characters. With

words, the following can be represented:

0000000011111111W O R D1 Byte1 ByteSignal state

A word also has the size of 2 bytes or 16 bits.

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

Further units are kilo-bit or kilo-byte, which stand for 210, or 1024 bits, and the mega-bit or

mega-byte which stands for 1024 kilo-bits.

2.5 BIT ADDRESS

So that individual bits can be addressed within a byte, each individual bit is assigned a bit

location. In each byte the bit gets the bit location 7 on the leftmost side and the bit location 0

on the rightmost side.

8/44

Page 9: Modul PLC Makasar_rev.doc

2.6 BYTE ADDRESS

The individual bytes also receive numbers called byte displacements. Additionally, the

operand is still marked, so that e.g. IB 2 stands for input byte 2 and QB4 stands for output

byte 4. Individual bits are clearly addressed by the combination of bit and byte displacement.

The bit location is separated from the byte displacement by one point. The bit location stands

to the right of the point, and the byte displacement to the left.

2.7 WORD ADDRESS

The numbering of words results in a word address.

Note: The word address is always the smallest address of the two pertinent bytes when

using words, e.g. input word(IW),output word(QW), bit memory word(MW), etc. (e.g.

With a word that comes from IB2 and IB3, the address is IW2).

Note: During word processing it is to be noted that e.g. the input word 0 and the input word 1

are in a byte overlap. In addition, when counting bits, one begins at the rightmost bit.

For example the bit0 from IW1 is the bit of I2.0, bit1 is I2.1.... bit7 is I 2.7, bit8 is I1.0....

bit15 ois I1.7. A jump exists between the bits 7 and 8.

2.8 DOUBLE-WORD ADDRESS

The numbering of double-words results in a double-word address.

Note: When using double-words e.g. ID,QD,MD etc. the double-word address is the smaller

word address of the two pertinent word.

9/44

IW0 IW2

IB0 IB1 IB2 IB3

IW1

Word address

ID0

IW0 IW2

IB0 IB1 IB2 IB3

IW1

Double Word Adress

Page 10: Modul PLC Makasar_rev.doc

CONFIGURATION OF A PLC

Programmable logic controllers are manufactured devices in series, which are designed with general

problems in mind. All that is required for control engineering are logic elements, memory functions,

time elements, counters, etc., which are designated from the manufacturer and are

connected to a functional controller by programmed code. The controllers are offered in different

functional units. They differ mainly by the number of possible:

inputs and outputs,

memory space,

counters,

timers,

bit memory functions,

other functions,

operating speed,

as well as the kind of program processing.

Larger controllers are individually built in modular construction from individual modules. With this

modular system, controllers run from the basic hardware, that PLC systems arrange, which can be

adapted to the application accordingly. For smaller control tasks, compactly developed controllers are

offered. They represent self closed units with a pre-defined number of inputs and outputs.

The following, in principle, belong to a programming controller:

Automation equipment essentially contains

10/44

Page 11: Modul PLC Makasar_rev.doc

Design of a program controller :

1. PROGRAM PROCESSING

1.1 PROGRAM MEMORY

During program processing, there are two different possibilities which are dependent on the

programming and the used controller. The treatment of an individual instruction requires a

certain time (microsecond range). This time for a unique treatment of all instructions is called a

cycle time which is the unique runtime of a program (the program scan cycle).

1.2 LINEAR PROGRAM PROCESSING

With linear programming the instructions are worked on by the controller in the order in which

they are deposited (stored) in the program memory. If the end of the program (BE) is reached,

the program processing begins again from the first step.

In terms of cyclic treatment.

The time which equipment needs for a unique treatment of all

instructions, is called cycle time. Linear program processing is

usually used for simple controllers and can be realized in only

one OB.

11/44

Page 12: Modul PLC Makasar_rev.doc

1.3 STRUCTURED PROGRAM PROCESSING

One partitions a program into small, visible and program blocks arranged according to functions

by using complex control tasks. This has the advantage of being able to individually debug the

program sections of an overall function unit for functionality. The program blocks must be called

over block call instructions (call xx/UC xx/CC xx). If a block end was recognized, the previous

block is returned to and further processed.

1.4 USER BLOCKS

STEP 7 offers the following user blocks for structured programming:

• OB (Organization block):

An OB is cyclically called by the operating system and forms the interface between user

program and operating system. In this OB, the program that should be edited is transmitted to

the control mechanism of the AG over the block call instructions.

• FB (Function block):

The FB has an assigned storage area. If a FB is called, it can be assigned a data block (DB).

From the data in this instance, the DB can be accessed by a call from the FB. A FB can be

assigned different DBs. Further FBs and FCs can also be called over block call instructions in

a function.

12/44

Page 13: Modul PLC Makasar_rev.doc

• FC (Function):

An FC does not possess an assigned storage area. The local data of a function is lost after the

editing of the function. Further FBs and FCs can be called over block call instructions in a

function.

• DB (Data block):

DBs are used around storage location for data variables. There are two kinds of data blocks:

Global DBs, where all OBs, FBs and FCs can read or write data into the DBs, and instance

DBs, which are assigned to a certain FB.

1.5 SYSTEM BLOCKS FOR STANDARD- AND SYSTEM FUNCTIONS

System blocks concern finished functions, which are deposited into the CPU.

These blocks can be called by the user and used in the program.

STEP 7 offers the following system blocks:

• SFB (System function block)

Deposited in the operating system of the CPU and are of the user callable functional block.

• SFC (System function)

Deposited in the operating system of the CPU and are of the user callable functional block.

• SDB (System data block)

Storage areas in the program, which are provided by different STEP 7-Tools (e.g.: S7

Configuration, Communication Configuration ... ) in order to store data about system settings

for the automation system.

2. Sistem Pengalamatan

Untuk penunjukkan atau penandaan beberapa Input atau beberapa Output dalam pembuatan

program digunakan pengalamatan atau addressing.

Input dan Output dalam PLC terdapat dalam satu group atau yang dinamakan Byte, yang terdiri

dari delapan digit digital Input dan atau delapan Output. Setiap digit tersebut dinamakan Bit.

Jadi setiap 1 Byte = 8 Bit.

Sebagai contoh sebuah PLC memiliki 2 Byte Input ( 0 dan 1 ) dan 2 Byte Output ( 4 dan 5 ).

Gambar :

13/44

Page 14: Modul PLC Makasar_rev.doc

Pengalamatan di PLC Siemens secara prinsip sama dengan PLC yang lainnya.

Untuk versi Inggris:

Input memiliki inisial I Output memiliki inisial Q Memori memiliki inisial M

Susunan penulisannya sebagai berikut : Signal Byte Address. Bit Address

Jadi misal untuk PLC Siemens S-300, Input dan Output yang dimiliki :

Input : 24 Digital InputByte address 0,1 dan 2Alamat I 0.0 sampai I 0.7

I 1.0 sampai I 1.7I 2.0 sampai I 2.7

Output : 16 Digital Output Byte address 0 dan 1

Alamaat Q 0.0 sampai Q 0.7 Q 1.0 sampai Q1.7

Gambar :

Untuk penulisan memori susunannya sama dengan Input dan Output

Misal : Byte yang ke 0 berarti memori yang dimiliki dari M 0.0 sampai M 0.7

Byte yang ke 1 berarti memori yang dimiliki dari M1.0 sampai M 1.7

3. Sistem Pemrograman yang digunakan dalam PLC Siemens Ladder Diagram ( LAD ) Statement List ( STL ) FBD ( Function Block Diagram ) Graph Bahasa Tingkat Tinggi : C ++, Pascal

14/44

Page 15: Modul PLC Makasar_rev.doc

DASAR INSTRUKSI PEMROGRAMAN

Instruksi pemrograman yang tercantum dibawah ini, merupakan instruksi dasar dari pemrograman.

Untuk mengetahui detail mengenai instruksi dan fungsi dari tiap element dapat diketahui dengan

menggunakan perintah Help atau F1.

1. Output ( = )

2. Instruksi AND

3. Instruksi OR

15/44

Pada Output Logical Operation Result (RLO)

atau kondisi nya tergantung pada inputan.

Jadi Kondisi output dipengaruhi oleh input.

Operasional AND sama dengan hubungan seri

dalam circuit diagram.

Output Q 0.0 akan memiliki kondisi “ 1 “ (Aktif),

jika semua Input ( I 0.0 dan I 0.1 ) bernilai “ 1”.

Jika salah satu atau semua Input bernilai “ 0 “,

maka Output akan bernilai “ 0 “.

Operasional dari OR sama dengan

hubungan parallel dalam circuit diagram.

Output Q 0.1 akan bernilai “ 1 “ apabila

salah satu atau semua Input bernilai “ 1 “

Ouput Q 0.0 hanya akan bernilai “ 0 “

apabila semua Input bernilai “ 0 “

Page 16: Modul PLC Makasar_rev.doc

4. Instruksi AND – OR

AND - OR terbentuk dari Hubungan Parallel, dimana inputannya dari Hubungan Seri.

Input berasal dari 2 Hubungan Seri yang diparalel. Output Q 0.1 akan bernilai “ 1 “, apabila semua

Input dari salah satu hubungan atau semua hubungan seri bernilai “ 1 “.

Output Q 0.1 akan bernilai “ 0 “ apabila salah satu atau dua dari input hubungan seri bernilai “ 0 “.

5. Instruksi OR – AND

OR – AND terbentuk dari 2 hubungan parallel kemudian dari kedua hubungan tersebut dijadikan

menjadi hubungan seri.

Dari hubungan tersebut Output ( Q 0.1 ) akan bernilai “ 1”, jika salah satu atau kedua dari hubungan

parallel yang pertama dan yang kedua bernilai “ 1”

6. Exlusive OR ( EXOR )

16/44

Exlusive OR ( EXOR ) akan memiliki nilai

“ 1 “ pada output, jika salah satu input

bernilai “ 1 “ dan input

yang lain tetap bernilai “ 0 “.

Page 17: Modul PLC Makasar_rev.doc

7. Instruksi Set dan Reset

Instruksi Set digunakan untuk memberikan operand bit ON atau kondisi “ 1 “saat dilaksanakan

pengkondisian ON dan tidak akan berubah operand Bitnya walaupun dilaksanakan pengkondisian

OFF atau kondisi “ 0 “.

Sedangkan instruksi RESET akan memberikan operand bit OFF atau kondisi “ 0 “ saat dilaksanakan

pengkondisian ON dan tidak akan berubah status operand bitnya walaupun dilaksanakan

pengkondisian OFF atau kondisi “ 0 “

7.1 Reset Dominan

Instruksi S-R berfungsi untuk memberikan kondisi Set atau Reset, jika input berfungsi satu per satu.

Apabila Set dan Reset aktif bersamaan maka Reset akan lebih dominan, sehingga yang aktif yaitu

Reset.

7.2 Set Dominan

Instruksi R-S berfungsi untuk memberikan kondisi Set atau Reset, jika input berfungsi satu per satu.

Apabila Reset dan Set aktif bersamaan maka Set akan lebih dominan, sehingga yang aktif yaitu Set

8. EDGE OPERASIONAL

Edge ( Pulsa ) merupakan sebuah sinyal yang mengalir dan akan memberikan kondisi tertentu

pada Input

17/44

Page 18: Modul PLC Makasar_rev.doc

8.1 POSITIVE EDGE (FP)

Jika sebuah sinyal positive ( berubah dari “ 0 “ ke “ 1 “ ) maka P ( M 2.0 ) atau Positive (I 0.2 )

akan mendeteksi perubahan tersebut kemudian akan mengalirkan sinyal 1 melalui Output ( Q 4.0 )

secara cepat ± 1 dt lalu mati

8.2 NEGATIVE EDGE (FN)

Jika sebuah sinyal negative ( berubah dari “ 1 “ ke “ 0 “ ) maka N ( M 2.0 ) atau Negative (I 0.2 )

akan mendeteksi perubahan tersebut kemudian akan mengalirkan sinyal 1 melalui Output ( Q 4.0 )

secara cepat ± 1 dt lalu mati.

18/44

Page 19: Modul PLC Makasar_rev.doc

9. TIMER FUNCTIONS

Instruksi Timer digunakan sebagai timer ON delay atau OFF delay yang lama waktu

penundaannya dapat ditentukan dengan mengatur Timer Value ( TV ).

Format penulisan timer value dalam PLC siemens L S5T# aH_bbM_ccS_dddMS –

Keterangan : a = hours,

bb = minutes,

cc = seconds

ddd = Milliseconds

9.1 ON –DELAY TIMER (SD)

Jika Input I 0.0 memiliki kondisi “ 0 “ maka T1 akan berjalan, namun Q 4.0 belum aktif “ 0 “ selama

t dt ( 2 S ), setelah selesai maka Output ( Q 4.0 ) akan aktif.

Jika Input I 0.0 berubah dari “ 1 “ ke “ 0 “ maka T1 akan berhenti menghitung.

Jika Input I 0.0 berubah lagi dari “ 0 “ ke “ 1 “ maka T1 akan menghitung ulang

Jika input I 0.1 memliki kondisi “ 1 “ maka T1 akan berhenti.

19/44

Page 20: Modul PLC Makasar_rev.doc

9.2 OFF-DELAY TIMER (SF)

Jika Input I 0.0 memiliki kondisi “ 0 “ maka Q 4.0 akan aktif “ 1 “ selam t dt

Jika Input I 0.0 berubah dari “ 1 “ ke “ 0 “ maka T1 akan menghitung (Q 4.0 memiliki kondisi “ 1 “)

selama t dt lalu berhenti (Q 4.0 memiliki kondisi “ 0 “).

Jika I 0.0 berubah dari “ 0 “ ke “ 1 “ saat T1 berjalan maka T1 akan berhenti menghitung

(Q 4.0 = “ 1 “)

Jika Input I 0.0 berubah lagi dari “ 1 “ ke “ 0 “ maka T1 akan menghitung dari awal.

Jika input I 0.1 memiliki kondisi “ 1 “ maka T1 akan direset.

10. COUNTER OPERATIONS

Counter digunakan untuk menghitung operasional bilangan.

Counter Up (CU ) digunakan untuk menghitung naik

Counter Down ( CD ) digunakan untuk menghitung mundur

Counter Up-Down ( CUD ) digunakan untuk menghitung naik dan turun ( mundur ).

Contoh Up-Down Counter :

20/44

Page 21: Modul PLC Makasar_rev.doc

10.1 SET COUNTER (S)

Set Counter digunakan untuk mengeset, dimana nilai yang diset sama dengan nilai yang ada

di Preset Value ( PV ).

Format penulisan nilai PV : C# Nilai yang diset

Misalnya : C# 5 berarti jika Input set aktif maka counter akan langsung menghitung 5.

10.2 COUNTER VALUE (CV)

Jika sebuah counter diset, maka ACCU 1 akan melakukan proses penghitungan. Namun

hanya digunakan untuk menghitung dalam binary atau BCD code.

Perintah yang digunakan :

Input word IW ..

Output word QW ..

Memory bit word MW ..

Data word DBW/DIW ..

Local data word LW ..

Constant C#5, 2#...etc.

21/44

Page 22: Modul PLC Makasar_rev.doc

10.3 RESET COUNTER (R)

Reset Counter digunakan untuk memberikan kondisi “ 0 “ pada counter, jika Input dari Reset

tersebut memiliki nilai “ 1 “.

11. COMPARISON FUNCTIONS

Comparasion Functions ( Comparator ) berfungsi untuk membandingkan besaran nilai. Type atau

format data yang dibandingkan dapat berupa

two integers ( 16 Bit Symbol: I )

two integers ( 32 Bit Symbol: D )

two real numbers (Floating point numbers. 32 Bit, Symbol: R )

Ada 6 proses dalam perbandingan

Sama dengan =

Lebih kecil <

Lebih besar >

Lebih kecil sama dengan <=

Lebih besar sama dengan >=

Tidak sama dengan <>

Proses pembandingan tersebut adalah sebagai berikut :

Proses Comparasion akan membandingkan nilai yang ada dalam ACCU 1 dengan ACCU 2.

Pada contoh diatas nilai yang ada dalam ACCU 1, disimpan pada IW 0 dan nilai yang ada dalam

IW 2 disimpan dalam IW 2. Output dari perbandingan tersebut yaitu Q 4.7

22/44

Page 23: Modul PLC Makasar_rev.doc

METODE PEMROGRAMAN DENGAN MENGGUNAKAN STATE DIAGRAM ( PETRINET )

1. Struktur Pemrograman

2. Bentuk State Diagram

Dalam pemrograman transisi diberi inisial T

State diber inisial P

a. Bentuk Sederhana

b. Bentuk Bercabang

23/44

Page 24: Modul PLC Makasar_rev.doc

b. Bentuk Mix

3. Keuntungan dan kelemahan

Keuntungan :

Cocok untuk program yang menggunakan proses sequence atau berurutan

Pemrograman bisa menggunakan state diagram yang telah dibuat

Kelemahan :

Membutuhkan banyak memori

24/44

Page 25: Modul PLC Makasar_rev.doc

LANGKAH PENGGUNAAN SOFTWARE SIEMENS SIMATIC MANAGER STEP 7 V5.4

1. Buka Simatic Manager dari Start > All Programs > Simatic > Simatic Manager

2. Akan muncul window Simatic Manager dengan sub window Step 7 Wizard: ‘New Project’, pilih cancel3. Buka menu File > New

25/44

Page 26: Modul PLC Makasar_rev.doc

4. Akan muncul sub window New Project, beri nama project di cel name, storage location bisa dipilih dengan menekan button browse

5. Jika sudah tekan OK, kemudian muncul window program yang disimpan tadi

26/44

Page 27: Modul PLC Makasar_rev.doc

Untuk membuat program baru, klik kanan pada kolom kiri window program yang tadi, jika menggunakan hardware PLC (Simatic 300 Station) pilih insert new object > Simatic 300 Station.

6. Akan muncul di kolom kanan Simatic 300, bisa diganti namanya, doubel klik, kemudian akan muncul hardware kemudian doubel klik juga, dan akan muncul window HW Config

27/44

Page 28: Modul PLC Makasar_rev.doc

7. Di kolom sebelah kanan ada catalog untuk jenis PLC yang dibutuhkan, jika tidak muncul buka menu View > Catalog

8. Pertama buka catalog simatic 300 > rack-300, ada rail, klik dan tarik ke kolom kiri

28/44

Page 29: Modul PLC Makasar_rev.doc

9. Kemudian ambil dari catalog CPU-300 > CPU-313C > 6ES7 313-5BF03-0AB0 > V2.0 masukkan ke kolom sebelah kiri di baris 2 atau baris yang berwarna hijau

10. Dobel klik pada baris yang bertuliskan DI24/DO16 akan muncul window properties, pindah pada tab Addresses, uncheck system default dan ganti start input dan output menjadi nol (0) kemudian OK

29/44

Page 30: Modul PLC Makasar_rev.doc

11. Buka menu Station, kemudian pilih Save and Compile, tutup window HW Config

12. Doubel klik Symbol

13. Masukkan input, output yang ada pada system

30/44

Page 31: Modul PLC Makasar_rev.doc

14. Di window simatic manager muncul CPU 313C, klik hingga muncul S7 Program15. Doubel klik sampai kolom sebelah kanan muncul OB1, dobel klik pada OB1 tersebut16. Selamjutnya pilih bahasa pemrograman yang akan digunakan, pilih di Created in Language,

contoh LAD, kemudian OK

31/44

Page 32: Modul PLC Makasar_rev.doc

17. Akan terbuka window LAD/STL/FBD, yaitu window kita untuk membuat program PLC, di sebelah kiri ada tool untuk program, jika tidak ada buka menu View > Overview, tool ini untuk membuat program di PLC, tool yang standard ada di bit logic, timers, counters

18. Doubel klik di tool yang akan dimasukkan ke program atau di toolbar atas ada beberapa symbol yang juga dapat digunakan

32/44

Page 33: Modul PLC Makasar_rev.doc

19. Jika ingin mensimulasikan terlebih dahulu, buka program pada menu Start > All Programs > Simatic > Step 7 > S7-PLCSIM Simulating Modules

20. Akan muncul window S7-PLCSIM dengan sub window CPU, Input dan Output

33/44

Page 34: Modul PLC Makasar_rev.doc

21. Jika kurang bisa ditambahkan dari menu insert22. Nomor byte pada input atau output bisa diganti23. Kemudian dari window LAD/STL/FBD buka menu PLC > Download

24. Jika ingin melihat aliran program buka menu Debug > Monitor

34/44

Page 35: Modul PLC Makasar_rev.doc

25. Kemudian pada window S7-PLCSIM pilih checkbox RUN dan pilih checkbox input yang akan diaktifkan

26. Untuk menghentikan simulasi pilih checkbox STOP, kemudian tekan MRES untuk menghapus program yang di-download ke simulasi.

35/44

Page 36: Modul PLC Makasar_rev.doc

27. Kemudian matikan monitor-mode dengan Debug > Monitor pada window LAD/STL/FBD, untuk mensimulasikan kembali ulangi langkah nomor 24

28. Jika ingin mencoba program langsung pada hardware, matikan S7-PLCSIM, untuk setting alat transfer buka menu Start > All Programs > Simatic > Step 7 > Setting the PG-PC Interface atau dari window Simatic Manager > Options > Set PG-PC Interface

29. Jika belum ada PC Adapter pilih Select pada Interface, pilih PC Adapter dan install, kemudian OK

36/44

Page 37: Modul PLC Makasar_rev.doc

30. Save program yang akan di-download ke PLC, buka window Simatic Manager, Pilih Simatic 300 pada kolom kiri, buka menu PLC > Download

37/44