Siemens programming

andyf

Member
Join Date
Oct 2006
Location
york
Posts
19
I have a Siemens S7 program to write, Whilst im not new to programming im new to the siemens brand. I have completed the example engine project and read the documentation but am still unsure on the best way to go, i would like your views.
Am i right in thinking
if for example i need to write a section in the program where i need to create a unconditional 1 second on, 1 second off pulse that is moved into a bit for other devices to look at (possible that it may be a block i would use more than once)
Then
I would enter the i/o into the symbol list and Create a FB that contains 2 timers addressed from the symbol list and then pulsing a output that is addressd from the FB variable table
next
i would create a instance DB for that FB and then put an instruction to call the FB from OB1,assigning the puse output a symbol list address

or should i just put it all in OB1 to begin with?

What pitfalls are related to using the FB,FC blocks?

appoligys if it sounds a too simple question

Andy o_O
 
I realise that you're actually looking for the answer to a broader question, but specifically to the pulse generation part, you can define a Marker Byte (in the CPU properties) which will give you eight Bits pulsing in frequencies from 0.5 Hz to 10 Hz, so you don't need to set up your own Timers to do this.
 
You must be using S7-300 or higher version
You have to start with ob1 and if you want to write programs in functions (FC) or function blocks (FB) simply call these blocks in OB1. It is better if you start writing with Functions (FC) first before Function blocks (FB) that requires a Data block (DB) associate with it.
Go through the programming manuals you can write your programs in ladder, FBD or STL

Best Regards

Palitha
 

Similar Topics

Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
880
Hey everyone, I am looking for a version of siemens software to upload and download programs to an S5. I would like a version that runs off of...
Replies
2
Views
476
Hi, There's a problem I face with upgrading the OS from XP which has the Step 7 Lite installed to windows 10. As I can't use a cracked version of...
Replies
2
Views
619
I have a customer who had a faulty Siemens OP7. They sourced a replacement. They have the original program. I downloaded the program to the...
Replies
10
Views
2,532
Hi there, I have three pumps, I have to start first pump for 8 minute and after that it should be turned off and other one start simultaneously...
Replies
11
Views
1,848
Back
Top Bottom