Skip to main content

Posts

Showing posts with the label Programming

How to Read the PLC Datasheet?

A PLC's datasheet contains a wealth of information that covers nearly every feature the PLC is capable of offering. The technical specifications of the PLC, such as the supply voltage, input and output types, and power rating of these IO points, will be your main concern if you are the installation engineer. The historical data may not be as important to you if you are only a PLC programmer. Instead, you will concentrate on information about the PLC memory, the amount of IO available, and the ability to add new modules. The following details in the PLC data sheet must be examined, depending on the different manufacturers: - PLC Memory  - Current and Voltage Rating  - Addressing Various Blocks and Data Areas - Specifications for Inputs and Outputs - Interfaces and Protocols for Communication - The Ambient Situation Different PLCs will have different features and capabilities, hence different information will be displayed on different PLC data sheets. Depending on whether you ar...

What is Master Control Relay in PLC?

A PLC's Master Control Relay (MCR) is defined by experts as a unique relay utilized in ladder logic programming to regulate the operation of several rungs or parts of a ladder diagram. In essence, it uses certain conditions to determine whether to enable or disable particular software sections. All rungs between the MCR and the associated end instruction are executed when the MCR is turned on. These rungs cannot run if the MCR is deactivated because they are circumvented. Large portions of a program can be controlled with a single condition because to this functionality, which enhances program organization and efficiency. In first photo, Master Control Relay is used as normally opened coil, called Master Coil. As you can see when the "Start" is triggered, Master Coil will be closed contact and executes the multiple rungs. If "Stop" is triggered, Master Coil is disable the execution of the other rungs. Similarly, in second figure, I...

Latch and Unlatch with Instruction and Sealing

All of the PLC come along with Latch and Unlatch in built. These instructions have been given different names by various manufacturers. Siemens PLCs have (S) for Set and (R) for Reset, while Allen Bradley PLCs have -(L)- for Latching and -(U)- for Unlatching commands. Likewise, KEEP instruction is used for latching in Omron PLCs. So, let's define what is latch and what is unlatch. The definition given by professionals, in PLC programming, a latch is a way to hold onto a state until an explicit command modifies it. In essence, a latch stays active even if the initial activating condition is removed once it has been set. The unlatch command, on the other hand, flips the latch's status and deactivates it until it is triggered once more. There are two major types of using Latch and Unlatch. By using the manufacturer's given instructions or Sealing also known as without using instructions. In this scenario, I'm using Omron's Sysmac Studio. As shown the fig...

Function Block Overview

Function Block ဆိုတာဘာလဲ?     Function Block ​ခေါ် အတို​ကောက် FB ဆိုတာက Process ရဲ့  Programming ​တွေကို ရိုးရှင်း​အောင်​​ရေးသားတဲ့နည်းတစ်မျိုးပါပဲ။ တစ်နည်း​ပြောရရင်, Programmer က​ရေးထားတဲ့ Programming Length ​တွေ, Programming ရှုပ်​ထွေးမှု​တွေကို ​လျော့ချ​ပေးတဲ့နည်းတစ်မျိုးပါပဲ။ How does Function Block(FB) work?     Function Block ဆိုတာ သူ့ကိုတည်​ဆောက်ပြီးတာနဲ့အလွယ်တကူ Main Program မှာအသုံးပြုလို့ရတဲ့ပုံစံတစ်ခုပါ။ Function Block တည်​ဆောက်ဖို့ ဘယ် Programming ​တွေလိုလဲ​မေးရင်, IEC 61131-3 ကသတ်မှတ်ထားတဲ့ Programming Language​ ငါးခုထဲကမှ Sequential Flow Chart (SFC) ကလွဲလို့ ကျန်တဲ့ Ladder Diagran, Instruction List (IL) , Function Block (FB) နဲ့ Structured Text (ST or STL) တို့ကိုသုံးပြီး​တော့ ​ရေးရပါတယ်။​      အောက်ကပုံကိုကြည့်မယ်ဆိုရင် Function Block ကို Ladder Diagram နဲ့​ဆောက်ထားပါတယ်။ သူ့ရဲ့  Input, Output ​တွေကို Tag_Name ​တွေကို သူနဲ့သက်ဆိုင်တဲ့ Data Type ထဲမှာသိမ်းရပါတယ်။ Tag_Name ဆိုတာက အခုပြထားတဲ့ Ladder Diagram ထဲကလိုမျိုး...