For the little ones you may work with DO: (in German "B" for Bearbeiten)

L FW 100 Value to write in FW(FW 102)DO FW 102T FW 0 [8)]

Those commands will work for almost every S5 CPU.

For example: FW 100 is loaded with 12, FW 102 is loaded with 104, then FW104=12 when this code is running, the contents of FW102 are OR-ed with the "T FW 0".

For the S5-135U / CPU 928A/B you can use windowing commands with OB180, when you have opened a DB then it is possible to lay a window over the DB and easily add a number for example in a loop to the offset thats already stored;

C DB xL KF 01000JU OB180 [;)]

With the bigger onces, the CPU948 you may use a MBR-Register to do some things relativ in the memory.

And so on, but first of all is the question which CPU do you have? [:P]

Best regards,Late

I hope that the answer will help, if you have still questions, don't hesitate to ask me.

All the best, LateNever say never, think in solutions, not in trouble......