Lenze PMSS1000 Simple Servo Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Lenze PMSS1000 Simple Servo. Lenze PMSS1000 Simple Servo User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer

Résumé du contenu

Page 1 - Programmer's Manual

Indexer-Programmer-Manual.pdf REV 1.3 Indexing Digital Servo Drive Programmer's Manual Applied to Models: SSi1004 SSi10

Page 2 - TABLE OF CONTENTS

Indexer-Programmer-Manual.pdf REV 1.3 After the text has been entered, select <Compile and load> from <Indexer> menu. After compilation

Page 3

Indexer-Programmer-Manual.pdf REV 1.3 Faults When fault condition has been detected by the drive, the following events occur: Stat

Page 4 - Safety Warnings

Indexer-Programmer-Manual.pdf REV 1.3 Here is an example: ; ;This program handles faults correctly ; UNITS=1 . . . {Some initialization code} . P

Page 5 - Parameters

Indexer-Programmer-Manual.pdf REV 1.3 1.5 Using advanced debugging features Click on <Indexer><Reset> menu to restart program from the

Page 6 - Compensation

Indexer-Programmer-Manual.pdf REV 1.3 1.6 Inputs and Outputs Analog Input and Output SSi has one analog input and one analog output directly access

Page 7 - Security

Indexer-Programmer-Manual.pdf REV 1.3 Some inputs could have additional special functionality like Travel Limit, Registration etc. Special functions

Page 8 - 1.3 MotionView Studio

Indexer-Programmer-Manual.pdf REV 1.3 Read Digital Inputs We will now modify our test program to look for the input to go on before doing the first

Page 9 - 1.4 Programming Basics

Indexer-Programmer-Manual.pdf REV 1.3 Limit switches input functions Inputs A1 and A2 have secondary functions as Hard Limit Switch Negative and Har

Page 10

Indexer-Programmer-Manual.pdf REV 1.3 1.7 Events Scanned Events A Scanned Event is a small program that runs independently of the main program. To e

Page 11

Indexer-Programmer-Manual.pdf REV 1.3 1.8 Variables and Define statement In the previous program for programmable limit switch we used hard coded nu

Page 12

Indexer-Programmer-Manual.pdf REV 1.3 TABLE OF CONTENTS 1. GETTING STARTED ...

Page 13

Indexer-Programmer-Manual.pdf REV 1.3 1.9 IF/ELSE statements IF/ELSE statement allows you to execute one or more statements conditionally. You can

Page 14 - 1.6 Inputs and Outputs

Indexer-Programmer-Manual.pdf REV 1.3 1.10 Motion SSi position and velocity regulator's diagram P termI termKff termI term Limit andunti wind-u

Page 15

Indexer-Programmer-Manual.pdf REV 1.3 Point To Point Moves SSi supports two types of moves: absolute and incremental. The statement MOVEP (Move to Po

Page 16 - 0 0 0 0BITS 8-31 (not used)

Indexer-Programmer-Manual.pdf REV 1.3 From the following table, write a program to execute the move profile shown, and run it. Segment Number Dista

Page 17

Indexer-Programmer-Manual.pdf REV 1.3 S-Curve Acceleration Very often it is important for a move profile to be as smooth as possible. This could be t

Page 18 - 1.7 Events

Indexer-Programmer-Manual.pdf REV 1.3 On the other hand, MDV statement execution never suspends the program because each individual statement sets p

Page 19

Indexer-Programmer-Manual.pdf REV 1.3 2. Programming 2.1 Introduction One of the most important aspects of programming is developing a structure fo

Page 20 - 1.9 IF/ELSE statements

Indexer-Programmer-Manual.pdf REV 1.3 The header section of the program contains definitions of the names for user variables and constants used in t

Page 21 - 1.10 Motion

Indexer-Programmer-Manual.pdf REV 1.3 Volatility All Sis variables are volatile i.e. they don't maintained their values after power is removed.

Page 22

Indexer-Programmer-Manual.pdf REV 1.3 2.5 Bitwise operators The following bitwise operators are supported Operator Symbol AND & OR | XOR

Page 23

Indexer-Programmer-Manual.pdf REV 1.3 EVENT Starts Event handler Statement ...

Page 24

Indexer-Programmer-Manual.pdf REV 1.3 2.7 Comparison operators Following operators are supported: Operator Symbol more > less < Equ

Page 25 - 1.11 Subroutines and Loops

Indexer-Programmer-Manual.pdf REV 1.3 2.10 System Variables and Flags Summary Below is the table of System Variables and Flags, sorted by type. Vari

Page 26 - 2. Programming

Indexer-Programmer-Manual.pdf REV 1.3 NOTE 1 If 0 (Zero) value assigned to variable UNITS set USER UNITS to QUAD ENCODER COUNTS. This is default uni

Page 27 - 2.2 User Variables

Indexer-Programmer-Manual.pdf REV 1.3 NOTE 1 Flag logic is shown below : If TPOS-INPOSLIM < APOS < TPOS+INPOSLIM && F_MCOMPLETE

Page 28 - 2.3 Arithmetic's

Indexer-Programmer-Manual.pdf REV 1.3 WHILE Structure This statement is used if you want a block of code to execute while a condition is true. The

Page 29 - 2.6 Boolean Operators

Indexer-Programmer-Manual.pdf REV 1.3 Subroutines A subroutine is a group of SML statements that is located at the end of the main body of the progra

Page 30

Indexer-Programmer-Manual.pdf REV 1.3 IF Structure The if statement is used to execute an instruction or block of instructions one time if a conditi

Page 31

Indexer-Programmer-Manual.pdf REV 1.3 IF/ELSE Structure The IF/ELSE statement is used to execute an statement or a block of statements one time if a

Page 32

Indexer-Programmer-Manual.pdf REV 1.3 GOTO/Label The GOTO statement can be used to transfer program execution to a new point marked by a label. This

Page 33

Indexer-Programmer-Manual.pdf REV 1.3 2.12 Scanned Event Statements Scanned event statements establish conditions that are scanned on regular basis

Page 34

Indexer-Programmer-Manual.pdf REV 1.3 1. Getting Started 1.1 Introduction Definitions The SimpleServo Indexer (SSI) is a digital motion controller

Page 35

Indexer-Programmer-Manual.pdf REV 1.3 Scanned Event Statements Summary The following table contains a summary of instructions that relate to scanned

Page 36

Indexer-Programmer-Manual.pdf REV 1.3 Incremental (MOVED) and Absolute (MOVEP) Motion MOVED and MOVEP statements are used to create incremental and

Page 37

Indexer-Programmer-Manual.pdf REV 1.3 Incremental (MOVED) motion Incremental motion is defined as a move of some distance from the current position.

Page 38

Indexer-Programmer-Manual.pdf REV 1.3 MDV Segments Segments are created using a sequence of MDV statements. The simplified syntax for the MDV (Move D

Page 39

Indexer-Programmer-Manual.pdf REV 1.3 ;Segment moves MDV 3 , 56 MDV 3 , 12 MDV 4 , 16 MDV 2 , 57 MDV 2.5 , 57 MDV 3 , 11 MDV 5 , 20 MDV 5 , 0

Page 40 - 2.13 Motion

Indexer-Programmer-Manual.pdf REV 1.3 Caution should be taken when using MOVED,MOVEP and MOVE statements. If any of the MOVE instructions without &q

Page 41

Indexer-Programmer-Manual.pdf REV 1.3 This program starts motion and moves for maximum 100 revs. While in motion if it sees sensor (or switch) it tur

Page 42

Indexer-Programmer-Manual.pdf REV 1.3 case when MDV moves are very short (take very short time to execute) use MOTION SUSPEND statement first to exec

Page 43

Indexer-Programmer-Manual.pdf REV 1.3 2.15 Fault Codes (DFAULTS register) Whenever fault has occurred it will be recorded in special system variable

Page 44

Indexer-Programmer-Manual.pdf REV 1.3 2.16 Limitations and restrictions Communication Interfaces usage restrictions Simultaneous connection to R

Page 45

Indexer-Programmer-Manual.pdf REV 1.3 Getting started with SSi Before SSi can execute motion program it has to be properly installed and configured.

Page 46 - Queue INPUT pointer

Indexer-Programmer-Manual.pdf REV 1.3 3. Language Reference Format Each statement, system variable or operand is documented using the format shown be

Page 47

Indexer-Programmer-Manual.pdf REV 1.3 ASSIGN Assign Input As Index Bit Statement Purpose Assign keyword causes specific input act as particular

Page 48

Indexer-Programmer-Manual.pdf REV 1.3 DISABLE Turns servo OFF Statement Purpose DISABLE turns power to the motor OFF and disables servo. Synt

Page 49

Indexer-Programmer-Manual.pdf REV 1.3 ENABLE Enables servo Statement Purpose Turns power to the motor on and enables the servo Syntax ENABL

Page 50 - 3. Language Reference

Indexer-Programmer-Manual.pdf REV 1.3 Following statements can't be used within event's handler: MOVE,MOVED,MOVEP,MOVEDR,MOVEPR,MDV, MOTIO

Page 51

Indexer-Programmer-Manual.pdf REV 1.3 Example: V0=0 V1=0 EVENT InEvent INPUT 1 RISE V0 = V0+1 ;count ENDEVENT ; EVENT period TIME 1

Page 52

Indexer-Programmer-Manual.pdf REV 1.3 EVENT ON/OFF Turn events on or off Statement Purpose turns events created by EVENT handler statement O

Page 53

Indexer-Programmer-Manual.pdf REV 1.3 Example: EVENT Event1 IN_A1 RAISE ; switch event JUMP EventCodeProcess ENDEVENT EVENT Event2 IN_A1 RAI

Page 54

Indexer-Programmer-Manual.pdf REV 1.3 GEAR ON/OFF Gearing Mode Statement Purpose GEAR ON enables gearing mode. Gear OFF disables gearing mode

Page 55

Indexer-Programmer-Manual.pdf REV 1.3 GOSUB Go to subroutine Statement Purpose GOSUB transfers control to <subname> subroutine. Syn

Page 56

Indexer-Programmer-Manual.pdf REV 1.3 • Group ID This parameter is used to combine different SSIs in functional groups. SSIs with the same group ID

Page 57

Indexer-Programmer-Manual.pdf REV 1.3 Syntax JUMP <label> <label> any valid program label Remarks Can be used in EVENT

Page 58 - GOTO Go To Statement

Indexer-Programmer-Manual.pdf REV 1.3 Example: EVENT LimitSwitch IN_A1 RAISE ; limit switch event Jump LimitSwitchHandler ; jump to proce

Page 59

Indexer-Programmer-Manual.pdf REV 1.3 operands of a comparison may be user variable, system variables, analog input values, or constants. IN_A1

Page 60

Indexer-Programmer-Manual.pdf REV 1.3 more stack space fault will result. Programmer should check F_MQUEUE_FULL system flag to see if there is availa

Page 61

Indexer-Programmer-Manual.pdf REV 1.3 MOVEP Move to Position Statement Purpose MOVEP performs motion to specified absolute position in User

Page 62 - MOVE Move Statement

Indexer-Programmer-Manual.pdf REV 1.3 Example: {Statements…} MOVEDR 3, 2 ;moves incrementally 3 user units ;if registration was no

Page 63

Indexer-Programmer-Manual.pdf REV 1.3 MDV Segment Move Statement Purpose MDV defines incremental motion segment by specifying distance and

Page 64

Indexer-Programmer-Manual.pdf REV 1.3 ;program is suspended so motion ;will never ;starts You can unlock this situation only by reset or execution M

Page 65

Indexer-Programmer-Manual.pdf REV 1.3 ON FAULT/ENDFAULT On Fault Statement Purpose Statement starts fault handler section. Fault handler is a

Page 66

Indexer-Programmer-Manual.pdf REV 1.3 REGISTRATION ON Registration On Statement Purpose This statement arms registration input (input IN_

Page 67

Indexer-Programmer-Manual.pdf REV 1.3 Indexer Program This will select the MotionView Studio section of the MotionView. Right panel is used to enter

Page 68

Indexer-Programmer-Manual.pdf REV 1.3 RETURN Return from subroutine Statement Purpose Return from a subroutine to the point in the pro

Page 69

Indexer-Programmer-Manual.pdf REV 1.3 STOP MOTION [QUICK] Stop Motion Statement Purpose Stop (abort) motion immediately with deceleration r

Page 70

Indexer-Programmer-Manual.pdf REV 1.3 72 WAIT Wait Statement Purpose Suspend program execution until some condition(s) is met. Condit

Page 71

Indexer-Programmer-Manual.pdf REV 1.3 1.3 MotionView Studio MotionView Studio screen layout MotionView Studio is a powerful tool suite used to ente

Page 72 - WAIT Wait Statement

Indexer-Programmer-Manual.pdf REV 1.3 MotionView Studio toolbar Icons From Left to Right: Compile, Compile and load, Run, Reset Program, Stop and

Commentaires sur ces manuels

Pas de commentaire