In this paper, The development and simulation results of a computer simulation software is demonstrated for the lateral position control of a moving web in roll-to-roll (R2R) systems. Mathematical models of the web dynamics are described first to explain the lateral motion of a moving web. Based on the second order models, a sliding mode controller is designed for simulating the lateral dynamics of a moving web and controlling a lateral position error in R2R systems.