advertisement
from the Instrumentation department...
S7 Plc Programming
PLCs and related questions. topic
Posted by Frobisher Mudenda on 15 December, 2010 - 4:18 am
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:frobisherm1@hotmail.com


Posted by Wiwi Hartono on 15 December, 2010 - 11:06 pm
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.


Posted by Wiwi Hartono on 16 December, 2010 - 12:16 am
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.


Posted by xyz on 16 December, 2010 - 9:54 am
Is FB available in Siemens S7-Programming ?


Posted by Wiwi Hartono on 16 December, 2010 - 3:15 pm
> 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.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
I see a good deal of talk from Washington about lowering taxes. I hope
they do get 'em lowered enough so people can afford to pay 'em.
-- Will Rogers
Advertise here
advertisements
Servo, stepping motor control, analog & web HMI in one system!
Servo, steppers, analog, digital & web HMI - Fully Integrated!
Control.com is the largest Automation community on the web. Learn how to advertise here now...
Time to incorporate data handling, web HMI and motion in one system!
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive