The PositionServo drive is a fully functioning positioning servo drive that can be programmed for multiple motion sequences. Below we have provided several examples of programs that can be written for the PositionServo drives. All these example programs can be imported into MotionView Studio from the sub folder"\Help\940Examples" under the MotionView installation folder. Simple1.txt This simple program demonstrates a minimal amount of programming and parameter configuration to perform a simple motion. EnableInput.txt This program processes input A4 as a software controlled Enable/Disable input. When A4 activates program starts moves. If during the move A4 becomes deactivated, the program disables drive immediately and waits for A4 again to be activated. TorqueRef.txt You will have to set mode to "Torque" and reference to "Internal" before running this program. FeedAndReturn.txt This program performs feed and return moves. TuneV.txt A velocity tuning program. TuneP.txt A sample program for tuning position gains. Pick-and-Place.txt This is a simple program that picks up a part, moves to a place position and places the part. MOVEP commands are used, outputs are actuated and delays are used for timing. Pick-and-Place-with-Fault-Monitor.txt This is the standard Pick and Place program will a fault routine added. Input A1 is used as a reset switch. Pick-and-Place-with-Inputs.txt The Standard Pick and Place program is modified to use inputs as proximity sensors for the extend and the retract of the pick and place arm. Pick-and-Place-Events.txt This simple program demonstrates a minimal amount of programming and parameter configuration to perform a simple motion. Pick-and-Place-Continue-Motion-Complete.txt The Pick and Place program is modified to use the Continue command to turn on and off a spray gun based on position. Homing Example - Basic homing This example uses a carriage and lead screw as an example for creating a homing routine from the User Program. The code executes a "home" function on system start up and when requested by a "homing" input. PDF Example Program Code Homing Example - with homing functions This example shows the use of the PositionServo predefined homing functionality. The code executes one of the pre-defined homing routines on start up, and then whenever it is requested by a "homing" input. Following a successful home sequence the program carries out a pre-defined sequence of Motion Commands, until either the enable is removed or homing is requested again. PDF Example Program Code