If I assign a value (K101) to memory (V2050) within a stage, and I want that value to stay in memory after I jump out of the stage, do I put the LD K101, OUT V2050 instruction line after the jump instruction line? If I understand right, a JMP instruction will turn off all OUT instructions and reset all memory locations to 0. Right?
All instructions within an enabled stage will execute until you disable the stage. JMP is one way to disable a stage, but the remaining instructions following the JMP will still execute on that one last scan. Technically, JMP will enable (SET) the designated stage bit and then disable (RST) the stage containing the JMP. It does not physically Jump to that stage. This is a "higher level" logical jump in a Stage Diagram sense (transition/jump from S1 to S2), not an assembly language sense.
All OUT COILs within a stage will be RESET automagically when you disable the enabled stage.
However, user V memory locations are NOT affected by this. TMRs and CNTs may reset, but not any referenced memory in boxes like LD and OUT numeric boxes.
So, when you do LD/OUT on the same rung that has the JMP, those output boxes could be BEFORE the JMP, or AFTER the JMP in that same rung, but it will basically have the same behavior.