Step7

wglespaul

Member
Join Date
Jul 2003
Location
Macclesfield, UK
Posts
19
Is OB1 the fundamental block in a program that is used to call other functions back to it. Then Function blocks used to perform the tasks of the program and data blocks to store the information for the program. what other blocks exist.
Can anyone verify this as correct? I have the siemens manuals but they tend to tell you how rather why on most things.
Tom
 
OB1 is invoked automatically by the firmware. It can be used to call other program blocks.
In Step7, you can have FC (functions) and FB (function blocks).
As a rough guide, I use FCs for general this and that, while FBs can be used to perform a more complex commonly repeated task.
Both, however, can be parameterised i.e. the code can be used again and again and 'slotting in' parameters, the difference with an FB is that it can have a DB (data block) associated to it so the data is stored. This is called an Instance data block.
An FCs local data (as it's called) is valid for that one execution of the block only.

Data blocks exist without being tied to an FB, and as you say can be used to store info.
 

Similar Topics

This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
128
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
141
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
126
Hi all, I am trying to convert RSLogix 5000 program to Step7. I need to bit shift left my array of double integers for tracking the product on...
Replies
2
Views
519
I have a word in some DB which I want to load to AR1 and use as a pointer. In order to do this I need to write L DBxy.DBW xy SLD 3 LAR1 I...
Replies
3
Views
533
Back
Top Bottom