Hello struclearner,
In my opinion, you have to define a motion in that translational joint.After that, in motion settings there is a function builder option. You have to use step function in that tab.
Step function will appear like this step(x,x0,h0,x1,h1).You should change the 'x' to time...