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
  • Request
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: FC Function 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
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > FC Function in Siemens PLC

FC Function in Siemens PLC

Last updated: March 4, 2021 12:33 pm
Editorial Staff
PLC Tutorials
No Comments
Share
3 Min Read
SHARE

In this article, we will discuss the use of FC function in Siemens TIA PORTAL.

FC function is used in the PLC programming where a function or task use over and over.

We all know that designing PLC programs is sophisticated and tedious work especially when you have to write the same program again and again in different applications.

To overcome such an issue, we just have to write PLC programs once using the FC block and can easily call that program using the organization block (OB).

FC Function in Siemens PLC

Let’s learn how to create FC

1. Open the TIA PORTAL environment.

2. Create a new project.

3. Click on the write plc program.

4. Following window will, pop-up click on the below-shown icon.

TIA Portal

6. The following window will open.

FC Function in Siemens PLC

7. Click on add new block and select function as shown in the above window and click add.

Here, we will create a simple PLC program of Addition. Each time Function is called it increment value.

In the FC environment to create input, we have to select a variable from the section option.

FC Function

Here, I have selected Local In. In local in whenever FC called in OB logic must be set every time as in our example, we want to do addition. so, the number will change each time FC called.

Global in use when a block has to retain its value until their value is changed by a function or by other logic.

The same rule is applicable to define the output.

what is fc in siemens plc

Here, in the above window, I have created logic in function to add number 5 each time FC is called from OB.

Siemens PLC Programming OBs in Siemens TIA Portal

Follow the step as shown in the window and the program which we have created in FC, now drag here into OB.

Introduction of Siemens PLC

Example: FC Function for Valve Logic

You can see above the window in which I have to give a name to input and output and use a variable for the addition.

In the previous FC window, I took 5 to add. When this program executes and I make I0.1 make true it will add 5 + the number which wants to add. Here in our case, I use 45 so the last answer is 50.

So, every time OB executes it will call FC to make an addition.

Author: Suhel Patel

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:

  • Ladder Logic Examples
  • PLC, HMI, VFD, and Motor
  • Pulse Generation using Timer
  • Liquid Mixing PLC Logic
  • Two Hand Control Logic
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

PLC FBD Example for Tank Liquid Heating Control by Steam Flow
How does SMPS Works? – Switched Mode Power Supply
#16 PLC Best Practices – Create Trend for Cycle Time on HMI
PLC Programming Example for Motor Forward and Reverse Control
PLC Basics – Manual Control, Closed Loop, ON-OFF with Hysteresis
PLC Analog Input Card Resolution Effects on Accuracy
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
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

PLC Program for Conditional Control Logic
Problem on PLC, HMI, VFD, and Motor Circuit
PLC Panel and MCC Panel Interface Signals
Electrical Cabinet Air Conditioner – Enclosure Cooling, Maintenance
What is Ladder Diagram Programming ?
Siemens PLC Mathematics Instructions
How to Blink Lights in Ladder Logic?
How to do Force in GE PLC Proficy Machine Edition?

Keep Learning

Tags in Functional Block Diagram in Studio 5000

Sheets, Tags, Elements in Functional Block Diagram of Studio 5000

Distributed IO for Siemens PLC

How to Configure Distributed IO in a PLC Project?

Auto Sugar Bag Filling Station

Auto Sugar Bag Filling Station

PLC Logic for Stairway Lighting

Smart Automation Solutions: PLC Logic for Stairway Lighting

plc-analog-input-card-conversion-formula

PLC Analog Input Conversion Formula

Switch NO or NC Contact

Normally-open and Normally-closed Switch Contacts

Face Mask Making Machine using PLC and HMI

Face Mask Making Machine using PLC and HMI

PLC Program using Logic GATEs

PLC Logic GATE Program

Learn More

siemens plc db addressing

FB Block in Siemens PLC Programming

Flow Measurement Questions and Answers

80+ Flow Measurement Interview Questions and Answers

Level Transmitter configuration in PLC

Scaling with Parameters (SCP) Instruction in PLC

Power Electronics Objective Questions

Power Diode Quiz

Types of Pressure

Basics of Pressure Measurement

Electrical Machines Questions and Answers

Alternator Voltage Regulation Quiz

Generator Action in a Motor

Generator Action in a Motor

Motor Operated Valve Functional Testing

Motor Operated Valve Functional Testing

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

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?