On Habrahabr published an article "Runtime programming of industrial robot on RCML" talks about what can be useful for this type of programming tasks with varying parameters.

Runtime programming is understood as the process of creating an executable program for a robot controller on an external controller. In this case the robot performs the program iteratively, by sending the minimum executable command or batch of commands to it. In other words, in runtime programming, the executable program is sent to the robot in portions, thus the robot does not have, store, or know the entire executable program beforehand. Such an approach allows creating an abstract parameterized executable program, which is generated by the external device "on the fly", i.e., during runtime.