differents between FCs and FBs

FC's are best for calculation and logic that require no static memory or worth monitoring. Example: Finding the highest number or average of 3 numbers.
Value1
Value2
Value3

Temp1 = Value1 + Value2
Temp1 = Value3 + Temp1
Result = Temp1/3
Your not interested in the intermediate results etc.
This would be perfect for FC. I only do the simplest stuff in FC's. I use FB's probably 80% of the time.

If you need timers or other static data FB's are best. I do all my larger code sections in FB's. Multi-Instance FB's I use extensively. Very powerful and efficient.
 

Similar Topics

Hi friends, this is my first post in this forum. I am Implementing an application that works like this: I want use the RS-485 interface of...
Replies
15
Views
4,722
I’m attempt to establish a communication between two simulator M580 CPUs, using a READ_VAR, I have two vitalization Windows 10 in VMWare and each...
Replies
0
Views
55
I have Woodward Controller EASYGEN-3500XT and Phoenixcontact make IO CAN-CUPLER part no: 2702230, Analog Input card: 2861412, Analog Output Card ...
Replies
0
Views
39
Hello Everyone, I have a issue with communication between two different PLCs. So here is the facts, The Master PLC is Guard Logix 5069 with IP...
Replies
4
Views
98
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
126
Back
Top Bottom