Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Ladder Logic any experts here?

Ladder Logic any experts here?

Scheduled Pinned Locked Moved The Lounge
questionannouncement
29 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G glennPattonWork3

    Hi All, I have been given the task (read 'saddle with') of reverse engineering and modifying a Siemens conveyor system. The thing uses a version of Ladder Logic (if you don't know it's a Programming system that was designed to be easy to read, I think we all know what that creates). I used a simple form Allen-Bradley form back at college (many moons ago!) I appear to have lost all reference I had for it. The situation is the system works, I don't want to risk breaking it. So if anyone has a reference it would be very nice! Glenn

    N Offline
    N Offline
    Nelek
    wrote on last edited by
    #17

    I can help you out with that, Glenn. I am maybe not as good as Ralf aobve, but I am pretty good too. Give me a PM here and I will answer you per mail, where we can continue writing or arrange a live conversation

    M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

    G 1 Reply Last reply
    0
    • F fgs1963

      Glenn, The latest Siemens PLC development tool is called TIA (Totally Integrated Automation). It is a free download and has a 14 day demo license. It also includes full help files. I think its at v17 or v18. If you don't find what you need elsewhere, this might be an avenue to get there. BTW: Previous to TIA they used Step 7 (v5.x) and it had the same free d/l, demo and help system concept. It might be more appropriate if you're dealing with "old" logic. Not sure if its still available from Siemens.

      N Offline
      N Offline
      Nelek
      wrote on last edited by
      #18

      v17.x.x

      fgs1963 wrote:

      It also includes full help files.

      And they actually are not that bad.

      fgs1963 wrote:

      It might be more appropriate if you're dealing with "old" logic.

      Not only might, should. There are "breaking" changes in some important libraries

      M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

      1 Reply Last reply
      0
      • F fgs1963

        Yup - been a Siemens customer for ~25 years. Step 7 from the start and TIA for the last 5 years. As for the Siemens site being a nightmare... 100% agree but its way better than it used to be. X|

        G Offline
        G Offline
        glennPattonWork3
        wrote on last edited by
        #19

        Quote:

        As for the Siemens site being a nightmare... 100% agree but its way better than it used to be. Dead | X|

        Oh dear :bob: worse? :wtf:

        1 Reply Last reply
        0
        • N Nelek

          I can help you out with that, Glenn. I am maybe not as good as Ralf aobve, but I am pretty good too. Give me a PM here and I will answer you per mail, where we can continue writing or arrange a live conversation

          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

          G Offline
          G Offline
          glennPattonWork3
          wrote on last edited by
          #20

          Hi, Thanks for that, I was having a minor panic attack! I have been billed as an expert, I am not, I have used Allen-Bradley (strangely while I was doing a contract at Siemens). Before that a course at college too long ago. I have access to experts Yayy CP! Glenn

          N 2 Replies Last reply
          0
          • G glennPattonWork3

            Hi, Thanks for that, I was having a minor panic attack! I have been billed as an expert, I am not, I have used Allen-Bradley (strangely while I was doing a contract at Siemens). Before that a course at college too long ago. I have access to experts Yayy CP! Glenn

            N Offline
            N Offline
            Nelek
            wrote on last edited by
            #21

            I even tried a time ago to open a section about it in the forums, articles. But there was not a big resonance and I dropped the idea.

            M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

            1 Reply Last reply
            0
            • G glennPattonWork3

              The Siemens stuff is odd, Siemens web site is very awkward to navigate, you need to login to get access to bits and can be awkward and is generally awkward to use... I point people to it as a "don't do this" example.

              M Offline
              M Offline
              milo xml
              wrote on last edited by
              #22

              Their website is the worst.

              1 Reply Last reply
              0
              • G glennPattonWork3

                I think we are using TIA version 17... if that makes sense, the ladder appears inside funtion blocks (which confused me!) I will get over to the Forum you suggested, I know the registering process can take a little time. The source code is a collection of three files (does that sound right?). I'm having to pick up a project that got part done, then Covid happened and the guilty party (person that had all the knowledge) left!

                F Offline
                F Offline
                fgs1963
                wrote on last edited by
                #23

                glennPattonWork3 wrote:

                the ladder appears inside function blocks (which confused me!)

                It's actually pretty cool and very functional (pardon the pun). It's been like this for decades so Siemens was actually ahead of the curve compared to many PLCs. Here are a few basics that might help. OB1 is the "main" cyclic function that loops endlessly. OB100 is a "first scan" function that runs one time at PLC power-on before OB1 starts looping. OB## are interrupt functions that only occur when a fault occurs (hardware or software). FC## are functions with inputs and outputs but no internal storage FB## are functions with inputs, outputs and internal persistent storage (called STATS) DB## are data blocks that maintain persistent storage. Every FB call requires an associated DB but DBs can also stand alone. With "Multi-Instance" calls you can call an FB multiple times. Each instance has it's own unique inputs, outputs and DB (persistent storage). Think of it as a class in C++.

                1 Reply Last reply
                0
                • G glennPattonWork3

                  Hi All, I have been given the task (read 'saddle with') of reverse engineering and modifying a Siemens conveyor system. The thing uses a version of Ladder Logic (if you don't know it's a Programming system that was designed to be easy to read, I think we all know what that creates). I used a simple form Allen-Bradley form back at college (many moons ago!) I appear to have lost all reference I had for it. The situation is the system works, I don't want to risk breaking it. So if anyone has a reference it would be very nice! Glenn

                  I Offline
                  I Offline
                  iplaykeys
                  wrote on last edited by
                  #24

                  My advise is to find out how it's supposed to work, then get a Click PLC from Automation Direct and re-implement it.

                  1 Reply Last reply
                  0
                  • G glennPattonWork3

                    Hi All, I have been given the task (read 'saddle with') of reverse engineering and modifying a Siemens conveyor system. The thing uses a version of Ladder Logic (if you don't know it's a Programming system that was designed to be easy to read, I think we all know what that creates). I used a simple form Allen-Bradley form back at college (many moons ago!) I appear to have lost all reference I had for it. The situation is the system works, I don't want to risk breaking it. So if anyone has a reference it would be very nice! Glenn

                    P Offline
                    P Offline
                    petechic
                    wrote on last edited by
                    #25

                    You can email me. In engineering, it is a very common programming standard, along with other standard you would be more familiar with. It can be converted to a more procedural style with fancy Allen-Bradley tooling, modified, then converted back. You usually want a systems integrator to do it, because you’re running equipment. Give me a shout. pjschieck@aol.com

                    Pete Schieck Legal/business refs: build-a-concert.com/legal

                    G 1 Reply Last reply
                    0
                    • P petechic

                      You can email me. In engineering, it is a very common programming standard, along with other standard you would be more familiar with. It can be converted to a more procedural style with fancy Allen-Bradley tooling, modified, then converted back. You usually want a systems integrator to do it, because you’re running equipment. Give me a shout. pjschieck@aol.com

                      Pete Schieck Legal/business refs: build-a-concert.com/legal

                      G Offline
                      G Offline
                      glennPattonWork3
                      wrote on last edited by
                      #26

                      Cheers, the issue is I have do a bit a college many moons ago. I remember enough to be dangerous. Didn't know anyone in address my book, I know VHDL, C, C++, C#, Java, VB not ladder! :)

                      P 1 Reply Last reply
                      0
                      • G glennPattonWork3

                        Cheers, the issue is I have do a bit a college many moons ago. I remember enough to be dangerous. Didn't know anyone in address my book, I know VHDL, C, C++, C#, Java, VB not ladder! :)

                        P Offline
                        P Offline
                        petechic
                        wrote on last edited by
                        #27

                        The coolest tip I can give to a C programmer would be that 110V is on one side of the ladder, and NEUTRAL is the other side. Each step (rung) of the ladder is a Boolean switch (or multiple) to turn ON a light. FYI: Rockwell inspection rungs are different than standard Boolean logic, so it can be tricky. But, with your procedural knowledge, it just takes a bit of converting bools to electrical ‘switches.’ PLCs (the controller) are simply arrays of Boolean-mapped (as in truth tables) relays in an electrical panel … really, really small relays. I always have to take a refresher video when I convert, as I program in C and ladder. Typical Rockwell ladder rung: If (on the left side of the ladder rung) the switch is closed (e.g. light switch)… then complete the circuit to the light circuit, which is represented as a COIL on the right of the rung. Execution order (PLC ‘scan’) is top-to-bottom of rungs. Rockwell uses ‘tasks’ to break ladders into logical sections. Good luck. Rockwell is the best.

                        - Pete

                        1 Reply Last reply
                        0
                        • G glennPattonWork3

                          Hi, Thanks for that, I was having a minor panic attack! I have been billed as an expert, I am not, I have used Allen-Bradley (strangely while I was doing a contract at Siemens). Before that a course at college too long ago. I have access to experts Yayy CP! Glenn

                          N Offline
                          N Offline
                          Nelek
                          wrote on last edited by
                          #28

                          Hi Glenn... I am cleaning up my inbox and I found this answer. It has been a while and I wondered how this topic evolved. My offer is still up, if you need anything just contact me.

                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                          G 1 Reply Last reply
                          0
                          • N Nelek

                            Hi Glenn... I am cleaning up my inbox and I found this answer. It has been a while and I wondered how this topic evolved. My offer is still up, if you need anything just contact me.

                            M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                            G Offline
                            G Offline
                            glennPattonWork3
                            wrote on last edited by
                            #29

                            Thanks alot, but that since has died a death. I'll give you the full story, my previous employer had a system for moving moulds on a conveyor belt, this was not used as it wasn't powerful enough to move the moulds (also the rollers were linked with silicon belts, rather than a chain drive). So the unit was preposed to be upgraded as they had bought next door and were going to expand into. At which point it was moved with haste not allowing me to follow through what was connected to what and dumped. In sorting through the mess I found some interesting details such as the PLC and three phase power unit were connected incorrectly all the interconnecting cables were blue and no idents on them. Jumped ship due to that and another unconnected issue when I was offered a better job else where.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups