Skip to main content

Posts

Showing posts with the label Mathematics

Minterm vs Maxterm

Note : This post is only for education purpose. When you use the PLC program, you might see some equations in programming more or the less. Most of of the projects, in PLC work based on logical control such as ON and OFF. Sometimes we need to use some mathematics equation to control the process or system. Like Minterm and Maxterm, they are important parts of Boolean Algebra which can solve somehow in digital circuit and practical problems. According to experts definition, Minterm means that is the product of N distinct literals where each literal occurs exactly once. The output of the minterm functions is 1. Minterm is represented by m. In the other hand, Maxterm is the sum of N distinct literals where each literals occurs exactly once. The output of the maxterm functions is 0. Maxterm is represented by M. A sum of minterms is called the Sum Of Products (SOP) and a product of maxterms also called Product of Sum (POS). Example of SOP is shown as below; A’B + AC + BC And then Example of ...

PLC Program to Implement a Combinational Logic Circuit

      ဒီ Program ရဲ့ (Combination Logic Circuit) Input ကတော့ 4-binary number တွေပေါ့။ Output က Y1 နဲ့ Y2 ဖြစ်တယ်။ ဒီ Program ရဲ့ အဓိက Function ကဘာလည်းဆိုတော့။ " အကယ်၍ Input Binary ဟာ 5 သို့မဟုတ် 5‌ အောက်ထက်ငယ်မယ်ဆိုရင် Y1 ဟာ On ပါမယ်။" " အကယ်၍ Input Binary ဟာ 9 သို့မဟုတ် 9 ထက်ကြီးမယ်ဆိုရင် Y2 ဟာ On ပါမယ်။"  ဒါကတော့သူ့ရဲ့လုပ်ဆောင်ချက်ပေါ့။ မှတ်ထားရမှာက ကျွန်တော်တို့က Decimal နဲ့ Comparison လုပ်နေတာမဟုတ်ပဲ Binary နဲ့ Comparison လုပ်နေတာ သတိချပ်စေလိုပါတယ်။     PLC Instruction တွေပိုင်အောင်လုပ်နိုင်ရင်ပြသာနာမရှိနိုင်ပေမယ့် ဒီနေရာမှာ အဆိုပါ Post ရဲ့ စာရေးသူက အဓိကဖော်ပြချင်တဲ့ အရာတစ်ခုရှိပါတယ်။ အဲ့တာကတော့ "Karnaugh-Map" ကို အသုံးပြုထားပါတယ်။   Karnaugh-Map အကြောင်းကို အကျယ်တဝင့်မပြောတော့ပါဘူး။ အဓိကက ဘာလို့သုံးချင်တာလည်းဆိုရင်  " Input နဲ့ Output Table ကိုသုံးပြီး Equation ကိုအသုံးချပြီး Control System မှာအလွယ်တကူသုံးနိုင်တယ်ဆိုတာပါပဲ။" အဲ့တာက အဓိကအချက်ပါ။  Karnaugh မှာ Boolean Function နဲ့သုံးလို့ရသလို Boolean Don't Car...