fb and db

panthripu

Member
Join Date
Mar 2004
Posts
228
Hi all
i am new in siemens s7 plc programming one of my doubts is
where the FB ,FC and DB should be used in a program?or what part of program should be written in FB, FC and DB?
 
That's a difficult one to answer. Up to a certain limit it's up to you. Of course there are limits. A DB cannot contain PLC code, but only data. And if you want to parameterize your blocks, you're better of with FB's. But, you can do with FC's all the same, you'll only need to use more memorybits to store data.

Kind regards,
 
fb,fc , db

if someone can give me some example to know exact working of fc,fb and db.I would be able to understand it clealy.pls.
 
Maybe THIS thread can put you in the right direction.

In addition to the mentioned "instance" type of DB, there is also a "shared" type DB. Shared DBs can be thought of as a way to add general data memory that is used for functions that arent closely tied to one FC or FB.
Instance DBs can also be accessed outside the FB that is associated with it. But the idea is that the instance DB is "processed" by its associated FB, like a machine that has a number of pushbutton and lamps for the "outside" world to use.

Hope the above makes sense. :rolleyes:
 
Back
Top Bottom