Lenze PM94P01C User Manual
Positionservo, Programming manual for pc-based motionview

***************************** HEADER ***************************************
;Title:
Pick and Place example program
;Author:
Lenze - AC Technology
;Description:
This is a sample program showing a simple sequence that
;
picks up a part, moves to a set position and drops the part
;**************************** I/O List ************************************
;
Input A1
-
not used
;
Input A2
-
not used
;
Input A3
-
Enable Input
;
Input A4
-
not used
;
Input B1
-
not used
;
Input B2
-
not used
;
Input B3
-
not used
;
Input B4
-
not used
;
Input C1
-
not used
;
Input C2
-
not used
;
Input C3
-
not used
;
Input C4
-
not used
;
Output 1
-
Pick Arm
;
Output 2
-
Gripper
;
Output 3
-
not used
;
Output 4
-
not used
;********************** Initialize and Set Variabl
UNITS = 1
ACCEL = 75
DECEL =75
MAXV = 10
;V1 =
;V2 =
;********************** Events *******************
;Set Events handling here
;********************** Main Program ************
RESET_DRIVE:
;Place holder fo
WAIT UNTIL IN_A3:
;Make sure tha
continuing
ENABLE
PROGRAM_START:
MOVEP 0
;Move to Pick po
OUT1 = 1
;Turn on output
WAIT TIME 1000
;Delay 1 sec to
OUT2 = 1
;Turn on output
WAIT TIME 1000
;Delay 1 sec to
OUT1 = 0
;Turn off output
MOVED -10
;Move 10 REVs to
OUT1 = 1
;Turn on output
WAIT TIME 1000
;Delay 1 sec to
OUT2 = 0
;Turn off output
WAIT TIME 1000
;Delay 1 sec to
OUT1 = 0
;Retract Pick ar
GOTO PROGRAM_START
END
;********************** Sub-Routines ***************
Enter Sub-Routine code here
;********************** Fault Handler Routine ***************
;
Enter Fault Handler code here
ON FAULT
ENDFAULT
Programming Manual for PC-based MotionView
PositionServo
Document Outline
- 1. Introduction
- 2. Programming
- 2.1 Program Structure
- 2.2 Variables
- 2.3 Arithmetic Expressions
- 2.4 Logical Expressions and Operators
- 2.5 Comparison Operators
- 2.6 System Variables and Flags
- 2.7 System Variables Storage Organization
- 2.8 System Variables and Flags Summary
- 2.9 Control Structures
- 2.10 Scanned Event Statements
- 2.11 Motion
- 2.11.1 How Moves Work
- 2.11.2 Incremental (MOVED) and Absolute (MOVEP) Motion
- 2.11.3 Incremental (MOVED) Motion
- 2.11.4 Absolute (MOVEP) Move
- 2.11.5 Registration (MOVEDR MOVEPR) Moves
- 2.11.6 Segment Moves
- 2.11.7 MDV Segments
- 2.11.8 S-curve Acceleration
- 2.11.9 Motion SUSPEND/RESUME
- 2.11.10 Conditional Moves (MOVE WHILE/UNTIL)
- 2.11.11 Motion Queue and Statement Execution while in Motion
- 2.12 System Status Register (DSTATUS register)
- 2.13 Fault Codes (DFAULTS register)
- 2.14 Limitations and Restrictions
- 2.15 Homing
- 2.15.1 What is Homing?
- 2.15.2 The Homing Function
- 2.15.3 Home Offset
- 2.15.4 Homing Velocity
- 2.15.5 Homing Acceleration
- 2.15.6 Homing Switch
- 2.15.7 Homing Start
- 2.15.8 Homing Method
- 2.15.9 Homing Methods
- 2.15.9.1 Homing Method 1: Homing on the Negative Limit Switch
- 2.15.9.2 Homing Method 2: Homing on the Positive Limit Switch
- 2.15.9.3 Homing Method 3: Homing on the Positive Home Switch & Index Pulse
- 2.15.9.4 Homing Method 4: Homing on the Positive Home Switch & Index Pulse
- 2.15.9.5 Homing Method 5: Homing on the Negative Home Switch & Index Pulse
- 2.15.9.6 Homing Method 6: Homing on the Negative Home Switch & Index Pulse
- 2.15.9.7 Homing Method 7: Homing on the Home Switch & Index Pulse
- 2.15.9.8 Homing Method 8: Homing on the Home Switch & Index Pulse
- 2.15.9.9 Homing Method 9: Homing on the Home Switch & Index Pulse
- 2.15.9.10 Homing Method 10: Homing on the Home Switch & Index Pulse
- 2.15.9.11 Homing Method 11: Homing on the Home Switch & Index Pulse
- 2.15.9.12 Homing Method 12: Homing on the Home Switch & Index Pulse
- 2.15.9.13 Homing Method 13: Homing on the Home Switch & Index Pulse
- 2.15.9.14 Homing Method 14: Homing on the Home Switch & Index Pulse
- 2.15.9.15 Homing Method 17: Homing without an Index Pulse
- 2.15.9.16 Homing Method 18: Homing without an Index Pulse
- 2.15.9.17 Homing Method 19: Homing without an Index Pulse
- 2.15.9.18 Homing Method 21: Homing without an Index Pulse
- 2.15.9.19 Homing Method 23: Homing without an Index Pulse
- 2.15.9.20 Homing Method 25: Homing without an Index Pulse
- 2.15.9.21 Homing Method 27: Homing without an Index Pulse
- 2.15.9.22 Homing Method 29: Homing without an Index Pulse
- 2.15.9.23 Homing Method 33: Homing to an Index Pulse
- 2.15.9.24 Homing Method 34: Homing to an Index Pulse
- 2.15.9.25 Homing Method 35: Using Current Position as Home
- 2.15.10 Homing Mode Operation example
- 3. Reference