×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Siemens Simatic/s7 for Dummies?
3

Siemens Simatic/s7 for Dummies?

Siemens Simatic/s7 for Dummies?

(OP)
I'm currently involved in a materials handling project using an s7-300 controller. I have done similar work in the past with AB and Modicon controllers.

Having started the project, I find myself questioning the use of FB's or FC's for certain parts. Then I question whether i'm headed in the right direction at all...

I guess my question would be:

1. Anyone have a quick and dirty howto on the differences between OB, FB, FC's? The manual isn't real clear on usage cases.

2. Would it be possible for anyone to email a working program (i'm using step 5.2) that I may look at and see how it all works together?

I know I may be asking a lot here, but hopefully I can repay the favor when someone else asks this question again.

Thank you.

Todd

RE: Siemens Simatic/s7 for Dummies?

2
Quick rundown

Consider Organization Blocks (OB's) the same as Modicon’s Segments or AB’s Program files, OB's execute on events, such as Errors (OB122), Interrupts (OB40), Timed (OB20), or good old cyclic cycle (OB1). An OB would contain FB” and FC.

FC are sections of code you create that don’t require stored memory for the next program scan an example would be an ADD block two registers are added together to produce a result that is then used.

FB work like FC But have assigned memory to them a DB, they then would remember the data from scan to scan. An exanple would be a PID loop.


RE: Siemens Simatic/s7 for Dummies?

(OP)
First, thank you for the quick response.....

Let me see if I have this straight,

The OB's contain the logic to call the FB and FC's.

FC's would be used for basic device control, say if switch is ON turn ouput ON

FB's on the other hand, would be used to determine if a liquid level is greater or less than the previous scan.

I must say this experience has proved to be quite humbling. I consider myself better than average as a programmer, but this has thrown me for a loop. Overthinking things perhaps?

I have been slogging my way through to the best of my knowledge, however, I am at a point in the software where I have to route a pallet based on a number. If the number is greater than the previous number it goes one way, if less than it goes the other way. Seems simple enough. I just can't figure the way to store/retrieve/use this data.

RE: Siemens Simatic/s7 for Dummies?

Todd,

Talk to your distributor. There is a CD with movie files that describe all of this. It is call Step 7- Step by Step.
Siemens give these away.

RE: Siemens Simatic/s7 for Dummies?

(OP)
Thank you, i'll check that out.

RE: Siemens Simatic/s7 for Dummies?

If you will be working a lot with Step 7, then it might be worth purchasing the books by Hans Berger (Automating with Step 7 in LAD and FBD or Automating with Step 7 in STL)

Paul

There are 10 types of people in this world.....
Those that understand binary and those that don't!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources