I'm sharing an unfinished attempt to design a macro rail. At some point in the process of tuning it, I discovered CNC Kitchen's motorized rail and went on to remix his model for my needs. Perhaps it can still be helpful to someone.
The author marked this model as their own original creation.