Logika tangga
Logika tangga (Ladder logic) adalah bahasa pemrograman yang dipakai untuk menggambarkan secara grafis diagram rangkaian elektronika dan perangkat keras komputer berdasarkan logika berbasis-relay yang banyak dijumpai pada aplikasi Programmable Logic Controllers (PLC) dan kendali industri. Sesuai dengan namanya, program ini menggunakan gambar anak tangga yang terdiri dari garis-garis tegak dan garis mendatar untuk menyajikan fungsi logika rangkaiannya.[1]
Contoh
[sunting | sunting sumber]Fungsi logika rangkaian: S = X AND ( Y OR Z ) dinyatakan dalam bentuk logika tangga sebagai berikut:
1. ----[ ]---------|--[ ]--|------( ) X | Y | S | | |--[ ]--| Z
Contoh lain adalah T = S AND X di mana S digambarkan pada diagram 1, dan T pada diagram 2, seperti di bawah ini.
1. ----[ ]-----------|---[ ]---|----( ) X | Y | S | | |---[ ]---| Z 2. ----[ ]----[ ]-------------------( ) S X T
Rujukan
[sunting | sunting sumber]- ^ http://ecmweb.com/archive/basics-ladder-logic "Ladder logic uses switch or relay contacts to implement Boolean expressions. In years past, ladder logic was made possible with discrete relays and was sometimes termed “relay logic."
Pranala luar
[sunting | sunting sumber]- Dasar Ladder Logic
- Ladder Logic
- "Chapter 6: ladder logic" oleh Tony R. Kuphaldt (Design Science License); seperti di "Chapter 10: Multivibrators" (mirror site)
- Rangkaian multivibrator
- PLC Programming Handbook
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.