Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: Create a Function (FC) for a Valve Logic in Siemens PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Create a Function (FC) for a Valve Logic in Siemens PLC

Create a Function (FC) for a Valve Logic in Siemens PLC

Last updated: March 4, 2021 2:43 pm
Editorial Staff
PLC Tutorials
No Comments
Share
5 Min Read
SHARE

Let us study how to create a Function Block (FC) for a Valve Control Logic in PLC. This article focuses on Siemens function block programming for the control valve with example.

Contents
Valve LogicCreate a Function (FC) in Siemens PLCFC Block

Valve Logic

There are two valve functions in this application. Valve opening and closing can be controlled by giving OPEN and CLOSE commands. So Consider two outputs for valve open command and valve close command.

Valve Control Logic

When we need to write a logic for many valves in a plant then we use the FC blocks. So here we will write the logic for the valve by using the FC block.

For example, we have one valve to control it manually from PLC. So we need two buttons in the graphics for controlling the valve position, i.e. for valve opening and valve closing.

An operator will press the valve open button for the valve opening position. Similarly, the operator press the valve close button for the valve closing position.

Valve has the two proximity switches installed on it to know the valve position. So, two feedback signals will be generated for the open position and also for the close position. So PLC will receive these feedback signals and display the valve status on the graphics.

In this example, we will take FC block and write the logic for the valve. Declare all temporary variables in the table.

After configuration of FC, take OB 1 and call FC in OB 1. You Call this FC block many times in the logic. Use the FC block for each time when you want to implement the control logic for the valves.

For example, we will consider one valve control logic.

PLC Valve Control Example

List of Inputs:-

  • I0.0:- valve Open
  • I0.1:- Valve close

List of Outputs:-

  • Q0.0:- Valve ON
  • Q0.1:- Valve Open Command
  • Q0.2:- Valve Close Command

Create a Function (FC) in Siemens PLC

OB1:- Organization block for valve control logic. FC 1 is called in OB 1. As shown in the below figure we can drag FC 1 in OB 1 for valve control logic.

Create a Function (FC) Siemens PLC

FC Block

We have called FC 1 only for one valve in the OB1. Generally, FC can be called multiple times. If there are more valves in the application, FC 1 can be called for another valve also, no need to write logic every time.

For FC, no need to create separate DB like FB configuration. Here when we press the valve open (I0.0), the valve (Q0.0) will be ON and if the valve close (I0.1) is pressed, the valve will be closed.

Control Valve Function in PLC

FC 1:- In Simatic manager, we can configure FC or another block by clicking on insert new object.

Add Function in the program as shown in the below figure.

Configure FC block in Simatic Manager

After FC configuration, declare all temporary variables in the table as shown in the below figure.

FC configuration in PLC

Network 1:-

In this network, we have taken a temporary variable for valve ON/OFF. By pressing the valve open, valve can be opened and by pressing the close button, valve can be closed.

Valve Open Ladder Logic

Network 2:-

If the valve (Q0.0) is ON, Valve open command (Q0.1) should be ON.

Valve Open Command in PLC

Network 3:-

If the valve (Q0.0) is ON, valve close command (Q0.2) should be ON.

Valve Close Command in PLC

As per the above explanation, you can write the logic for other valves also. Call FC in OB 1 for the second valve and configure the inputs and outputs.

Note:- This is the simple example for the FC block used for valve application in PLC, we can use this concept in other examples also.

Author: Bhavesh

If you liked this article, then please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

Control Valve Ladder Logic

PLC Tank Filling Logic

Proximity Switch Principle

Solenoid Valve Working

Motor Control using PLC

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

4–20 mA Process Control Loops
Timer-Based Sequential PLC Program with One Button
#19 PLC Best Practices – Monitor PLC Memory Usage
4-20 mA Transmitter Wiring Types : 2-Wire, 3-Wire, 4-Wire
Shift Bit Register in PLC
UPS Selection Factors for a Control System
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

Process Interlocks and Trips
Latching and Unlatching in PLC Programming Example
Function Block (FB) for Motor Control Logic
Quiz: Identifying I/O Examples in PLC Systems
PID with Practical Example
Problem on PLC, HMI, VFD, and Motor Circuit
PLC based Gas Detection System using Ladder Logic Project
Basics of Loop Checks

Keep Learning

Single Push button to ON and OFF a Bulb using Ladder Logic

Single Push button to ON and OFF a Bulb using Ladder Logic

Data Instance in PLC

Tia Portal – Different Instances of Calling a Function Block

Why Baud Rate is Important in Modbus Network

Why Baud Rate is Important in Modbus Network?

How-to do Security of SCADA Systems

How-to do Security of SCADA Systems?

How to Download Rslogix Free

Download Allen Bradley RSLogix PLC Software

PLC based 4 Way Traffic Light Control System

PLC based 4 Way Traffic Light Control System

PLC Cabinet

PLC Programming Videos

PLC Ladder Logic for Demultiplexer

1 to 8 Demultiplexer PLC ladder diagram

Learn More

Induction Motor Protection Interview Questions

Induction Motor Protection Interview Questions Answers

Free Industrial Control System (ICS) Cyber Security Training Course

Free Industrial Control System (ICS) Cyber Security Training Course

Career Scope in Mechanical Engineering

Career Scope in Mechanical Engineering

open vs closed loop

Open Loop and Closed Loop Animation

Globe Valve Disk and Stem Connections

Globe Valve Seat and Disk

Solar Energy

Types of Renewable Energy Sources

Insulation Resistance Test

What is an Insulation Resistance Test? – Types, Applications

Electrical Traction Multiple Choice Questions and Answers

Electrical Traction Multiple Choice Questions and Answers

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?