Good thought on setting addresses after using. As pointed out, in a PLC (this one anyhow), everything happens at the end of the ladder, and since one ADC channel (there are
is being used to get 4 (with this chip could be up to
different readings and store them in a variable, it must be one reading for each cycle. I do this by using a counter that is incremented at the end if the Basic function and then an if/endif for each read, watching the counter value which is incremented at the end of the function. As an alternative, the incrementing can occur in a basic function on another ladder rung, executed on say a 1 second clock (this thing is just watching batteries, utility and generator voltages on a standby generator) or substitute the clock for an input contact to a keypad key for troubleshooting I can increment on my command.
I tend to be conservative and like setting the addresses when I am there, but will think about and probably try setting them early.
Good thoughts.