Professional Documents
Culture Documents
EXPERIMENT NO. 2
2. Develop FBD program using basic digital and analog function blocks.
THEORY: In the previous experiment the hardware and software associated with Distributed
Control System is discussed.
In this experiment the software and programming concept is discussed.
There are several programming languages used for logic development.
The IEC 61131 standard part3 specifies these languages as:
Generally in DCS Functional Block Diagram (FBD) is used for programming and Sequential Flow
Charts (SFC) is preferred for batch control applications.
This language basically is a graphical language wherein the users are allowed to program elements
in the form of blocks. The blocks then can be wired together like electrical circuits. It describes a
function between input and output variables.
It is a graphical method of programming DCS. Functional algorithms and control strategies for a
particular plant can be implemented by FBD. The control modules are treated as unique entity in
DCS system. Each function block contains specific algorithm such as AI, AO, DI, DO, PID and the
parameters required for the algorithm. Function blocks ranges from simple input conversion block
to a complex control strategy.
5. Analog Control
6. Advanced control
· Definition name: This is the name by which the block is identified in the library.
· Usage name: This name can be user defined as per his/her convention.
· Parameters: These are part of the function block available for standard connection.
· Execution number: The number by which the function block is executed.
2. Math Library
Add
Comparator
Divide
INDUSTRIAL AUTOMATION DEEPANSH SRIVASTAV
AND PLC LAB (KEN 751) (1803221037)
Multiply
Subtract
Absolute value
Integrator
2. Logical Library
And
Or
Condition
Not
Negative Edge Trigger
Let us discuss about the commonly used Input/ Output library function blocks.
Logical Library:
Commonly used logical blocks under logical library are described here.
AND function block is used as an AND operator. For 2 input AND gate if both the inputs are high the output
of the function block is high.
OR Function Block:
OR function block is used as an OR operator. For 2 input OR gate if any one inputs is high, the output of the
functions block is high. The function block and the truth table is as given below :
INDUSTRIAL AUTOMATION DEEPANSH SRIVASTAV
AND PLC LAB (KEN 751) (1803221037)
NOT function block is used as NOT operator, wherein if the input to the block is high or active the
output is opposite i.e., low and vice versa. The function block and the truth table are as given
below:
PROCEDURE:
Step:
1.First left click on AI block available under IO tab. Drag this block to required
position.
4. Now click on Compile tab. If any compilation errors are there, it will be shown.
5. When user clicks on Run tab, default value of AI will get displayed on wired
connection.
To change the input value and observe the output change, right click on the AI block.
Select edit and enter an input value in the range 0-100. You will observe the change at
the AO block output.
When you click on the block, the properties of the block gets displayed.
To delete the connection, click on the wire question mark.
Other options like delete, disable and configure are available on right clicking the block.
For modifying the logic, user need to first press Stop tab and enter into Configure tab.
2. Left click on any logic function block e.g. AND function from Logic Tab.
4. Now click on Compile tab. If any compilation errors are there, it will be shown.
5. Now change one of the inputs to AND gate by toggling DI value from 0 to 1.
6. Change another input to AND gate in the similar manner and observe.
REFERENCE:
BOOKS:
[1] Popovic Bhatkar, “Distributed Computer control for Industrial Automation”.
[2] Gregory K. McMillan, Douglas M. Considine, “Process/industrial instruments and controls
handbook”.
INDUSTRIAL AUTOMATION DEEPANSH SRIVASTAV
AND PLC LAB (KEN 751) (1803221037)