Inst ToolsInst ToolsInst Tools
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Create a Function (FC) for a Valve Logic in Siemens PLC
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
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 LogicList of Inputs:-List of Outputs:-Create a Function (FC) in Siemens PLCFC BlockNetwork 1:-Network 2:-Network 3:-

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 !

Recommended Articles

PLC Multiple Outputs Configuration
Mixing Program with Timers and Counters in Omron PLC
How to Work with Allen Bradley RsLogix Emulator?
One Shot Rising and One Shot Falling Instructions in PLC
What is Trace Function in Tia Portal?
VFD Simulator Download – Free Yaskawa V1000 Software
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

Recent Comments

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

Classic Control Circuits

Motor Classic Control Circuits using Single Push button

Scaling in PLC

How to do Scaling for Analog Input in RSLogix 500?

Free Industrial Control System (ICS) Cyber Security Training Course

Free Industrial Control System (ICS) Cyber Security Training Course

Sequencer Output in PLC

PLC Sequencer Instruction with Example

LogixPro Simulator Software

Introducing PLC Programming using LogixPro Simulator Software

VFD Interview Questions and Answers

VFD Interview Questions and Answers – Electrical Drives

Types of Cables used in Industrial Automation

Types of Cables used in Industrial Automation

Complementary Split Range Control

What is Complementary Split Range Control (CSRC)?

More Articles

Flow meters Tube Fittings

Sanitary Pipe Fittings for the Instruments

Polyphase Induction Motor Multiple Choice Questions and Answers

200+ Polyphase Induction Motor Multiple Choice Questions and Answers

Valve Face to Face Dimension

Face to Face Dimension of Control Valve

PLC Programming Example with Pushbutton and Motor

PLC Programming Example with Pushbutton and Motor

Choke Valve Hydro Test Setup

Choke Valve Hydro Testing Procedure

Where should we terminate the shield and why

Where should we Terminate the Cable Shields ?

Siemens Tia Portal Function Block

Function Blocks in PLC (FBs) – What You Need To Know?

Contact-Type-GWR-Level-Transmitter-Working-Animation

Probe Type GWR Level Transmitter Working Animation

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?