Good Morning ,
I went to edit a rung , and for some reason I can “ Accept Pending Rung Edits “ , but I can’t assemble rung .
I took notice that I have a capital R , on my original rung , then another small r , on a rung above , and an small i on the rung above . I have 3 rungs .
How do I get out of this mess , LOL ? I would like to do this small edit , online .
Thanks so much in advance ,
What you have observed is perfectly valid, and is wholly repeatable.
I do not know if you are familiar with what the letters to the left of the rungs mean, but for the benefit of others I will explain....
Starting with no online edits present, choose the rung you want to edit, and then do one of the 5 or 6 things that will "Start Pending Rung Edits". For my money, since I already have the mouse in my hand, I always do the option that is not documented anywhere, to my knowledge, and is the simplest of them all.... double-click the rung !
The programming software copies the rung above the original, marking it with a lower-case "i". This indicates that this rung will be "inserted" into the controller code when you "Accept Pending Rung Edits". Note that the "i" rung has inactive power rails, and is the only rung you can make changes to.
The original rung below the new one is marked with a lower-case "r". This means it is the rung you will be replacing when you "Accept Pending Rung Edits".
Make your edits to the "i" rung, and the "i" will change to an "e" whenever the rung is invalid. Once it is valid it goes back to being an "i" rung.
At this moment in time, and importantly, absolutely NOTHING has been done in the controller, everything so far has been done in the programming software, so you could easily walk away without causing any problems. The significance of the letters being lower-case means that the marked rungs are in your PC, not in the controller. If anyone else was online viewing the same rung he/she would not see anything happening. Also the Online Toolbar will show "No Edits"
Now you want to get that edited rung into the controller, by "Accept Pending Rung Edits", and when you do you will notice that the lower-case "i" and "r" become upper-case "I" and "R". The significance of them being upper-case means that you are now seeing what is in the controller, and anyone else being online viewing the same rung will see that also. The online toolbar changes to "Edits Present".
Now that the edited rung is in the controller, you will see that the "I" rung has no "power", that is because the controller is executing the "R" rung, and ignoring the "I" rung.
Now you are the position where you could just "Assemble Edits", or you could elect the "Test Edits". In Test Edits mode, the controller changes over to executing the "I" rung, and ignoring the "R" rung. The power-rail if the "I" rung goes green, and the "R" rung goes inactive. You will also get a warning when switching into "Test Edits", because you will be changing what the controller is executing.
From "Test Edits", if everything is OK, you can "Assemble Edits", and the controller will do the tidying up, removing the "R" rung, and making the "I" rung a permanent feature of the code.
From "Test Edits", if you need to make another change to the rung, perhaps because it didn't work as it should have done, you will have to "Untest Edits" to put the executing code back to how it was. (Again, you will get a warning, because you are changing what code is executed on the next scan).
So you may want to edit the "I" rung again, so you "Start Pending Rung Edits" on it. And it is at this moment that you will see (only you, not anyone else) the 3 rungs marked (top to bottom) "i", "r", and "R". Your display is showing what is going on in the controller AND what is going on in your PC software, and is what you described in your post. The "i" rung is your next shot at getting the code correct, the "r" rung is actually a copy of the "I" rung in the controller, which will be
replaced by your newest "i" rung after you have edited it, and "Accept Pending Rung Edits".
Now you have to go through the "Test Edits" and "Assemble Edits" procedures again, to get the new code up and running.
All of the procedural switches are available as buttons on the "Online Edit" toolbar, and there is a button on the right called "Finalize All Edits in Program". Thank-you saultgeorge, I never knew the short-cut for that button ! What this button does for you , and it can be pressed at any time, will "finish" the online editing process, but you do not get any chance to revert back to the old rung. Once you hit that button, the software will do what it says on the tin - Finalize the Edits.
In reality, there is no such procedure as "Online Editing" - all of the editing is done in your PC, and then given to the controller at "Accept Pending Rung Edits", which will not be allowed if the rung is marked "e" (error).
Just remember the case rule for the rung markers : lower-case = exists only in the programming software : upper-case = exists in the controller.
Apologies for the long post, but it might be useful to some people.