S7 Plc Programming

F

Thread Starter

Frobisher Mudenda

I am seeking help on how to become a proficient S7 PLC programmer.I am able to program S7 PLCs using the OB block but have difficult in the use of other blocks.

Best Regards,
Frobisher Mudenda
E:Mail:[email protected]
 
W

Wiwi Hartono

Simply, OB1 is the main program. And, FC and FB are the subprograms. You have to call these subprogram in the main program if you want to run them.

The difference between FC and FB is that FB can be reused with different set of data. So, there are input and output variables to be defined and utilized in the program.

For start, program with various FCs calling from OB1.
Hope this help.
 
W

Wiwi Hartono

Simply, OB1 is the main program. And, FC and FB are the subprograms. You have to call these subprogram in the main program if you want to run them.

The difference between FC and FB is that FB can be reused with different set of data. So, there are input and output variables to be defined and utilized in the program.

For start, program with various FCs calling from OB1.
Hope this help.
 
W

Wiwi Hartono

> Is FB available in Siemens S7-Programming ?

Yes, there are various FBs in the library catalog of S7 Simatic Manager. You could also define your very own FB. Whenever you call FB in OB1, you are to define DB(Data Block for data storage.

Within each CPU, it comes with a series of SFC and SFB(system FB) embedded in the CPU(ROM). You are able to call these SFC and SFB in your OB1.

Hope this help.
 
Top