Software PLC Module for Electromechanical Systems Control About Implementation of Cam Law of Movement