STEP 7 - Operation

rubik2511

Member
Join Date
Sep 2010
Location
South Lake Tahoe
Posts
7
I read several papers on the blocks in s7 300 and wanted to know
if someone could explain more about the following blocks as the
readings of the manual does not say much:
OB: Organization block
FC: Function
FB: Function block
DB: Data block
SFC: System functions
SFB: System function block
SDB: System data block

taken from the following website: http://support.automation.siemens.c...&viewreg=WW&nodeid0=10805384&objaction=csview

some initial information that may allow progress and better understand the concepts without getting lost. thanks
 
Hello Rubik;
The best level of information on this subject is located in this basic document, Programming with Step 7 (see ch.4):
http://support.automation.siemens.com/WW/view/en/18652056

Basically:
-OBs are called by the operating system, not by the user. OB1 is the only one that the programmer uses to setup his program cycle;all higher numbered OBs can interrupt it if the OS requireds it. Think of a main() function in C programming.

-FCs are small blocks of programming used to setup the logic of a particular machine or operation. They are called from OB1 or another block. Think of C procedures.

-FBs are almost the same as FCs, but they have an memory block (an instance DB) attached to them permanently. They are used when it is required that you can have access to the memory area at all times in the progrmming; anything that requires counting or timing will find this useful, runtime meters and totalizers are only some uses for them.

-DBs are areas of user memory, structured for a special use by the programmer. For repetetive creation of DBs, create a UDT (user-defined type) and use that to create identical DBs as required; one example, create a UDT called MNotor control, weith all required bits, INTs and REALs needed, then create your DBs for each motor you will control.

-SFC and SFB are pre-programmed blocks (FB and FC) made available by Siemens for intricate programming: communication blocks, PIDs, diagnostics, etc.:
http://support.automation.siemens.com/WW/view/en/44240604
Not all SBCs and SFBs are available for every S7 CPU; the CPU firmware limits the selection.

-SDBs are system datablocks generated by the HWConfig editor when you create a hardware configuration for the project. The user may not open or modify them, as they may then lose consistency.
Hope this helps,
Daniel Chartier

Step 7 blocks.jpg
 
Last edited:

Similar Topics

What is a operation system Best for Simatic step 7 1. Windows XP Pro. 2. Windows XP Pro SP2 3. Windows XP Pro SP3 4. Windows Server 2003 Standard...
Replies
8
Views
3,632
I am having a step7 v5.4 program where the blocks are encrypted and locked. And the manufacturer is stopped the support. Is there any ways to...
Replies
2
Views
178
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
249
HI! HOW COULD I OBTAIN THE NAMES OF THE STEPS OF A ROUTINE IN SFC LANGUAGE IN STUDIO5000? Or is there a system variable that gives me those...
Replies
0
Views
339
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
547
Back
Top Bottom