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
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