Announcement

Collapse
No announcement yet.

Good programming practise

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts


  • Good programming practise

    Hi
    I have received a program from our supplier with several OB's in a Siemens PLC program.
    The program contains among other OB80, OB121 and OB122.
    My opinion is that when you are in the developing state it's okay to have these OB's in the program, but not in the finished program
    If you have made your program correctly there is no need for these OB's but what are your opinion towards the use of these OB's in af finished program?

    What is your opinion towards "Good programming practise" regarding OB's?


  • #2
    My 2 cents - If I remember correctly, those OBs are special code that Siemens wrote (and other can) that get around some limitation of the Siemens PLC. They have a specific function, which can sometimes be rather obtuse or obfuscated... As I rmember I had one that got around a code short circuit that Siemens did that would not allow me to read a simple encoder using standard logic, while my other PLCs (Omron and Automation Direct) did not have that issue and worked correctly.

    P.S. I don't think there was a "Good Programming Practice" with Siemens PLCs. THe way they worked with STI and Ladder not being compatable made it very difficult.

    Comment



    • #3
      Originally posted by PLC-Jens View Post
      I have received a program from our supplier with several OB's in a Siemens PLC program.
      The program contains among other OB80, OB121 and OB122.
      My opinion is that when you are in the developing state it's okay to have these OB's in the program, but not in the finished program
      If you have made your program correctly there is no need for these OB's but what are your opinion towards the use of these OB's in af finished program?
      Hello,

      Not sure what software you are using but if TIA Portal, see this link on using OB's also Kf2qd is correct, many of the OB's are reserved

      https://support.industry.siemens.com...dti=0&lc=en-PL

      Hope that helps or with the late reply maybe it will help someone

      Comment

      Working...
      X