Crash course in SIemens programming

Join Date
Mar 2010
Location
Gothenburg
Posts
39
Hello.

In my last post I wished everyone good bye. I planned to retire and spend time with my hobbies. Ha ha!! It is difficult to make forecasts, especially about the future!
I was headhunted to a Volvo-project in China. This is an offer you cant refuse!
So, to make a long story short. I am supposed to spend some months with Siemens programming, using Step7. A program I have limited knowledge about.
My major concern is the relation between OB1, OB2, ------ OBx.
And the same for FC1, FC2, ------ FCx and FB1, FB2, ------ FBx.

Where can I find information about this?

Peter
 
General information

Hello.

In my last post I wished everyone good bye. I planned to retire and spend time with my hobbies. Ha ha!! It is difficult to make forecasts, especially about the future!
I was headhunted to a Volvo-project in China. This is an offer you cant refuse!
So, to make a long story short. I am supposed to spend some months with Siemens programming, using Step7. A program I have limited knowledge about.
My major concern is the relation between OB1, OB2, ------ OBx.
And the same for FC1, FC2, ------ FCx and FB1, FB2, ------ FBx.

Where can I find information about this?

Peter


http://www.amazon.com/STEP-Steps-Implementing-Programmable-Controllers/dp/1889101036

http://www.plcdev.com/siemens_simatic_step_7_programmers_handbook

Not sure why it would matter which hardware you are using , Step7 is Step7.

Not understanding the association between OB1,OB2 etc and the FC FB relationship is the same.

The basic PLCs are different due to hardware limits and use a different software.

TIA portal is different, but the blocks work similarly.


A real basic explanation to your general questions:

OB1 is the "main" part of the program. And is called every scan.

The other OBs are called under certain conditions, all this is in the help.

Some OBs are called on a cycle every X milliseconds, other OBs are called if there is a hardware fault. What ever code is in the OB is only run when that OB's condition is met.

FCs are functions like in C. They can have an interface and accept parameters. They have no internal memory.

FBs are similar to FCs but an FB has internal memory and some of the rules of the interface are different. The exceptions in Step 7 make up a long list.

The FB / FC could be thought of as a subroutine.

Note, the number of the FC is only to identify it. It is not sacred. You can rename FC4 to FC12 and it is still the same.

SFCs are System Function Blocks. You don't edit those.

If you write an FB3 and use it again, it will require a new number to differentiate the instance of one from the other as they have maintain separate memory (instance DB)

The DBs are very interesting and useful in Step7.

They are like an excel spreadsheet with only one column, but they are still useful.

2D data blocks would be so nice.
 
Hello.

In my last post I wished everyone good bye. I planned to retire and spend time with my hobbies. Ha ha!! It is difficult to make forecasts, especially about the future!
I was headhunted to a Volvo-project in China. This is an offer you cant refuse!
So, to make a long story short. I am supposed to spend some months with Siemens programming, using Step7. A program I have limited knowledge about.
My major concern is the relation between OB1, OB2, ------ OBx.
And the same for FC1, FC2, ------ FCx and FB1, FB2, ------ FBx.

Where can I find information about this?

Peter

Need any help in China? I love it over there and love the people!
 

Similar Topics

Hello gurus!! I would be really grateful if you could help me with sorting this out. As you see, line 5 to 15 is conditions for sending the...
Replies
4
Views
4,388
I am a newbie to Macros and am looking for a crash course: I have an exisiting application running CompactLogix and using a panelview plus to...
Replies
1
Views
3,387
A couple months ago we had a little siemens I/O module go out and in the process of replacing it with one with a different rev level it ended up...
Replies
16
Views
5,600
Just wondered if anybody had any good videos (in english) of starting out with eplan p8 electrical?? Got to do a crash course, but don't really...
Replies
7
Views
6,830
Nope, I'm not giving one, I'm hoping someone else will. ;) I have LOTS of experience with RSLogix 500 and the processors that go with it...
Replies
5
Views
5,188
Back
Top Bottom