PLC Interview Question #4 WHAT ARE THE MOST POPULAR PLC PROGRAMMING LANGUAGES?

PLC AND ROBOT IIOT Pvt Ltd
PLC AND ROBOT IIOT Pvt Ltd
18 بار بازدید - 3 سال پیش - Book Buy Link -
Book Buy Link - https://amzn.to/3d3sV2J









There are 5 languages that are all a part of the IEC (International Electrotechnical Commission) Section 61131-3 Standard. This IEC Standard allows some ground rules that standardize PLC’s and their languages. Let’s take a deeper look into all these popular PLC Programming Languages
1. Ladder Diagram (LD)

2. Sequential Function Charts (SFC)

3. Function Block Diagram (FBD)

4. Structured Text (ST)

5. Instruction List (IL)


Let’s show you a little bit about each of these. I will start with Ladder Diagram which is a graphical type of PLC Programming Language.

1. Ladder Diagram (LD)

Ladder Diagram was originally modeled from relay-logic which used physical devices, such as switches and mechanical relays to control processes. Ladder Diagram utilizes internal logic to replace all, except the physical devices that need an electrical signal to activate them.


Ladder Diagram is built in the form of horizontal rungs with two vertical rails that represent the electrical connection on relay-logic schematics.

You can program all the necessary input conditions to affect the output conditions, whether logical or physical.


1-1. Ladder Diagram Advantages

The main advantages of the Ladder Diagram language are:

1. The rungs allow it to be organized and easy to follow.

2. It also lets you document comments that are readily visible.

3. It supports online editing very successfully.

1-2. Ladder Diagram Disadvantages

The main disadvantage is that there are some instructions that are not available, which might make it more difficult for programming such as motion or batching.


The next PLC Programming Language that I will talk to you about is the Sequential Function Charts which uses a graphical type of programming.

2. Sequential Function Charts (SFC)

If you have any experience with flowcharts, then this PLC Programming language will feel familiar to you. In Sequential Function Charts, you use steps and transitions to achieve your end results.


Steps act as a major function in your program. These steps house the actions that occur when you program them to happen. This decision can be based on timing, a certain phase of the process, or a physical state of an equipment.

Transitions are the instructions that you use to move from one step to another step by setting conditions of true or false.


Unlike traditional flowcharts, the Sequential Function Charts can have multiple paths. You can use branches to initiate multiple steps at one time.


2-1. Sequential Function Charts Advantages

A couple of the advantages of Sequential Function Charts are:

1. Processes can be broken into major steps that can make troubleshooting faster and easier.


2. You have direct access in the logic to see where a piece of equipment faulted.


3. It can be faster to design and write the logic due to the ability to use repeated executions of individual pieces of logic.


2-2. Sequential Function Charts Disadvantages

Even when you consider the advantages of the Sequential Function Charts, this PLC Programming Language does not always fit every application.

Now we are on to our third PLC Programming Language.

3. Function Block Diagram (FBD)

The Function Block Diagram which is also a graphical type of language. The Function Block Diagram describes a function between inputs and outputs that are connected in blocks by connection lines.


Function Blocks were originally developed to create a system that you could set up many of the common, repeatable tasks, such as counters, timers, PID Loops, etc.

You program the blocks onto sheets and then the PLC constantly scans the sheets in numerical order or is determined by connections which you program between the blocks.


3-1. Function Block Diagram Disadvantages

The code can get disorganized using this PLC Programming Language because you can place the function blocks anywhere on the sheet. This can also make it more difficult to troubleshoot.

3-2. Function Block Diagram Advantages

1. The Function Block Diagram does work well with motion controls.

2. The visual method is easier for some users.

3. The biggest advantage of Function Block Diagram is that you can take many lines of programming and put it into one or several function blocks.


4. Structured Text (ST)

The 4th PLC Programming Language is the Structured Text. This language is a textual based language.

Structured Text is a high-level language that is like Basic, Pascal and “C”.

It is a very powerful tool that can execute complex tasks utilizing algorithms and mathematical functions along with repetitive tasks.

The code uses statements that are separated by semicolons and then either inputs, outputs, or variables are changed by these statements.

You must write out each line of code and it uses functions such as FOR, WHILE, IF, ELSE, ELSEIF AND CASE.


If you have experience with Basic or C languages, this PLC Programming Language will come easier than some of the
3 سال پیش در تاریخ 1400/03/30 منتشر شده است.
18 بـار بازدید شده
... بیشتر