This is a basic demonstration of modeling a motion system in OpenSCAD using MakerSlide components.
Unzip the file to get a folder containing the small collection of files that support the demo. (These are the same MakerSlide files I've previously posted.)
Open makerslide_gantry_demo.scad in OpenSCAD.
Adjust the x and y axis dimensions.
Try the animation.