0% menganggap dokumen ini bermanfaat (0 suara)
72 tayangan3 halaman

Fungsi dan Cara Kerja Counter PLC

Dokumen ini menjelaskan cara pemrograman counter dan up/down counter pada PLC Omron. Counter digunakan untuk menghitung jumlah masukan, sedangkan up/down counter dapat menambah atau mengurangi nilai masukan. Langkah-langkah pemrograman termasuk penempatan tombol dan pengaturan alamat serta komentar untuk setiap elemen dalam ladder diagram.

Diunggah oleh

donizrt809
Hak Cipta
© All Rights Reserved
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai PDF, TXT atau baca online di Scribd
0% menganggap dokumen ini bermanfaat (0 suara)
72 tayangan3 halaman

Fungsi dan Cara Kerja Counter PLC

Dokumen ini menjelaskan cara pemrograman counter dan up/down counter pada PLC Omron. Counter digunakan untuk menghitung jumlah masukan, sedangkan up/down counter dapat menambah atau mengurangi nilai masukan. Langkah-langkah pemrograman termasuk penempatan tombol dan pengaturan alamat serta komentar untuk setiap elemen dalam ladder diagram.

Diunggah oleh

donizrt809
Hak Cipta
© All Rights Reserved
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai PDF, TXT atau baca online di Scribd

INSTRUKSI-INSTRUKSI CX PROGRAMER

UP COUNTER
Secara makna, counter berarti penghitung. Pada PLC Omron, fungsi
counter adalah untuk menghitung berapa kali masukan pada suatu sistem
yang diinginkan.

Sintak penulisan adalah sebagai berikut:


CNT(spasi) alamat (spasi) #nilaicounter.

Contoh CNT 0000 #3  Counter 00 akan aktif setelah diberi masukkan


sebanyak tiga kali

Contoh aplikasi counter


Menyalakan lampu setelah tombol ditekan 3 kali.

Langkah membuat ladder adalah sebagai berikut:


1) Pasang tombol START dengan addres 0000
2) Pasang Counter:
 Ketik I (new Instruction)
 Ketik CNT 0000 #3, klik OK (Gambar 4.7)
 Ketikan komentar COUNTER 3X, klik OK

Gambar 4.7 Mengatur Counter

Gambar 4.8 Ladder setelah counter terpasang


3) Pasang tombol NO untuk RESET dengan adrres 001
 Ketik C, masukkan addres 001 dan komentar RESET (Gambar
4.9)
 Panjangkan garis dengan menekan tombol Ctrl dan panah
kanan

Gambar 4.9 Ladder setelah tombol RESET terpasang

4) Masukkan ke output
 Pasang tombol NO, berikan addres C0000
 Pasang Output, berikan addres 10000 dan comment LAMP
(Gambar 4.10)

Gambar 4.10 Program Counter lengkap

Cara kerja counter tersebut adalah ketika input 0.00 ditekan sebanyak 3
kali, maka counter C0000 akan aktif sehingga mengaktifkan output dengan
alamat 100.00. Untuk membuat hitungan counter kembali ke 0, maka
tombol RESET harus diaktifkan.
UP/DOWN COUNTER
Hampir sama dengan up counter, pada up/down counter juga berfungsi
sebagai penghitung jumlah masukan. Akan tetapi dengan up/down
counter, nilai masukan bisa ditambah maupun dikurangi secara berurutan.
Cara memrogram up/down counter sama dengan up counter akan tetapi
perintah CNT diganti dengan CNTR.

Langkah pemrograman:
 Pasang tombol NO , beri address 000, dan comment COUNT UP
 Pasang Counter Up/Down: Ketiikan I, masukkan CNTR 0000 #6
 Pasang tombol NO, beri address 001, dan comment COUNT DOWN
 Pasang tombol NO, beri address 002, dan comment RESET
 Pasang tombol NO, beri address C0000
 Pasang coil NO, beri address 10000 dan comment LAMP
Hasilnya ditunjukkan pada Gambar 4.11

Gambar 4.11 Ladder Up/Down Counter

Common questions

Didukung oleh AI

When incorporating a counter in a PLC system for industrial automation, several considerations must be addressed such as the accuracy and speed of counting to match the application's requirements, the capacity of the counter to handle the expected range of counts, and the integration with other system components like sensors and actuators. It is also important to account for potential errors, such as electrical noise which could falsely trigger counts, and ensure that the counter's reset mechanism is accessible and reliable. Scalability and adaptability to different operational scenarios are crucial for future expansion or reconfiguration of the system .

To reset the counter in an Omron PLC program, install a NO button at address 001 with a comment 'RESET'. This button is incorporated into the ladder diagram to provide a physical or logical input that, when activated, will reset the counter's value to zero. This reset functionality is essential for initiating new counting cycles and is achieved through the inclusion of a dedicated reset path in the program's logic .

The up counter in an Omron PLC counts the number of times an input is activated and triggers an event once a preset value is reached. It uses the CNT instruction. An up/down counter, on the other hand, not only increments the count with an input signal but also decrements it using a second input, allowing it to adjust the count both up and down. It uses the CNTR instruction, enabling more dynamic counting capabilities .

The reset function is critical in PLC counting programs as it allows for the reinitialization of the counter value back to zero, enabling the process to restart. This is especially important in applications where subsequent operations depend on recurring counting cycles. Without the reset function, the counter would permanently hold its terminal count, preventing further cycles and halting operations dependent on repeated counts. Therefore, the reset function ensures continuity and repeatability in automated processes .

The use of multiple input addresses with up/down counters in a PLC allows for versatile control over the counter operation. By assigning one address for incrementing (COUNT UP), another for decrementing (COUNT DOWN), and a third for resetting, the counter can adapt to various processes dynamically. Each address acts independently, providing the flexibility to respond differently to each input signal. This setup enables advanced operations, such as adjusting counts in response to changing conditions or user inputs, thereby increasing the complexity and adaptability of automation systems .

To set up an up counter, start by installing a START button at address 0000. Next, insert the counter using the instruction CNT 0000 #3, adding a comment 'COUNTER 3X'. Create a RESET button at address 001 and extend the ladder diagram. Finally, configure the output: add a NO button at address C0000 and an output coil at address 10000 with the comment 'LAMP'. When the input 0.00 is pressed three times, counter C0000 activates, turning on the output at address 10000. Reset the count using the RESET button when needed .

'Lamp activation' in a PLC program is achieved by linking the counter to an output coil in the ladder diagram. Once the counter reaches its preset value, as determined by the input conditions, it sends a signal to the output coil (address 10000 in the given example) to turn on, thereby activating the lamp. The output coil acts as the trigger mechanism that completes the circuit, allowing the lamp to be powered .

Programming instructions in PLC systems, like CNT for up counters and CNTR for up/down counters, define the logic and behavior of the counting mechanisms. They are essential as they specify the input conditions needed to change the counter state and set thresholds for triggering subsequent actions. These instructions allow for precise control over timing and sequence of operations in industrial automation. Without them, counters would not be functional, limiting the complexity and capability of the PLC to manage tasks that require counting events, such as in batching operations or quality control systems .

Ladder diagrams in PLC programming offer several advantages for counters, including simplicity, visualization, and ease of troubleshooting. They graphically represent electrical circuits, making it intuitive for engineers to design, understand, and implement logic in a format similar to traditional relay logic. This visual approach helps in quickly identifying and resolving issues, understanding the sequence of operations, and providing a clear method to modify programs as needed. Additionally, ladder diagrams allow easy integration and scaling of counters for complex automation tasks .

To modify the ladder diagram to decrement the count, use an up/down counter (CNTR) instead of a regular up counter (CNT). Insert a NO button with address 001 labeled 'COUNT DOWN' in the ladder diagram. When this input is activated, it will decrement the counter rather than incrementing it. Both increment and decrement buttons can share the CNTR instruction but use different inputs to change the counter value, offering flexible control over the counting process .

Anda mungkin juga menyukai