Hauke David,
You said you are confused with how the “step counter” functions. I’m just guessing here but I think that you might actually be confused with the “symbols” which the original programmer has used for the “step counters”. In case you are not familiar with Allen-Bradley symbols, let me give you a few tips which may help. A “symbol” is a “nickname”. In other words, when the original programmer used the symbol “S2STEP_CTR.ACC” as “Source A” in an EQU (equal to) box, he was actually using the “nickname” for a regular-old, run-of-the-mill type CTU counter. Try this:
In RSLogix500, right-click on an EMPTY area of the ladder display window. A small window should pop up with “Properties” as one of the selections. Click “Properties” and then go to the “Comment Display” tab on the window which opens next. Near the bottom of this window, turn on the selection for “Show Symbol & Address” then click the “OK” button.
Now when you look at the same rungs which you showed in your previous post, you should see the “symbol” (example: S2STEP_CTR.ACC” above the EQU box. Inside the EQU box, you will see the actual address of the counter (example: C5:0.ACC). Once again, I’m just guessing here, but I’ll bet that when you see the address displayed this way, then your “step counters” will start making more sense to you. When you look at the “output coils” on the end of your rungs (let’s use your rung number 0177 for example) you will see the symbol/nickname “S2STEP_1” above the coil – and you should also see an address too. Since I don’t have your complete program, I can’t tell what that address will be – so I’ll just use “B3/1” as an example.
Let’s go a little further. Using C5:0 as an example, the “symbol/nickname” (example: S2STEP_CTR) actually applies just to the counter C5:0. Notice (very important) that this time I did NOT type “.ACC” on the end of the symbol. That part of the address refers to the Accumulated value inside the counter. In other words, “How high has this counter counted?” I’ll bet that there is a CTU (count up) counter somewhere in your program which is being used to keep track of what “step” has been reached in your welding process. Here’s how to track down that counter. At the top of the RSLogix screen is a white entry area. It’s not really marked but it is located just to the left of some little binocular icons. Click in that box and type the address of the counter you’re looking for. In my example, I’d type “C5:0” – you might have to type a different address. Use the counter which your original programmer used in the EQU box. And DO NOT type “.ACC” at the end of the address - and don’t type the quote marks either - work with me here. Now click the little binocular icon which has a file behind it. This is for “Find All”. A window should open giving you a list of all of the places where this counter is used in your program. (Important note: if the “Find All” feature won’t work at all, just click somewhere (anywhere) on the ladder display window and then try the “Find All” feature again. The ladder display window must have “focus” before the “Find All” will work. It’s a Windows thing).
Now scroll down through the list and click the line which has CTU on it. Your program display should instantly shift to the rung which controls the “step counter”. If you know enough about ladder logic to interpret the conditions in this rung, you should be able to figure out what makes your “step counter” advance.
Here’s how to interpret the rungs which you posted. I’ll use your rung number 0177 and counter C5:0, and bit B3/1 as examples).
Using the examples I mentioned, rung 0177 says: If the value in counter C5:0’s Accumulator is EQUal to 1, then bit B3/1 will be ON. But if the value in counter C5:0’s Accumulator is NOT equal to 1, then bit B3/1 will be OFF.
Again I’m just guessing, but I’ll bet that your “S2STEP_1” bit (example: B3/1) is used throughout the rest of your program to turn things (like clamps, actuators, etc.) off and on as the steps of your welding process advance. It should be easy to find where this bit is used. You could type it into the “search for” entry window just like you did the counter’s address – or just try this: Go back to your rung 0177 – right click the “output coil” S2STEP_1 – then click “Find All” from the window which pops up. You should be able to click on each line in the list and find all of the places in your program which use this bit address.
You should be able to figure out how the other “step” bits in your program work. They just come on and off based on different values in the “Step Counter’s” Accumulator.
I hope I’ve guessed correctly as to what is confusing you. If not, please post again and let us know where you’re having trouble. You’re probably going to have to be pretty specific in describing your confusion. And yes, I know that’s a pretty steep order, but it’s hard for us to cover EVERYTHING about a program which we can’t really see. In fact, you might want to consider zipping your .RSS program file and attaching it to any future posts.