Lenze PMSS1000 Simple Servo User Manual

Page 2

Advertising
background image

Indexer-Programmer-Manual.pdf REV 1.3


TABLE OF CONTENTS

1. GETTING STARTED ............................................................................................................................... 4

1.1 Introduction......................................................................................................................................... 4

1.2

Programming flow overview ........................................................................................................... 7

1.3

MotionView Studio .......................................................................................................................... 8

1.4

Programming Basics....................................................................................................................... 9

1.5

Using advanced debugging features ............................................................................................ 13

1.6

Inputs and Outputs ....................................................................................................................... 14

1.7

Events ........................................................................................................................................... 18

1.8

Variables and Define statement ................................................................................................... 19

1.9

IF/ELSE statements...................................................................................................................... 20

1.10

Motion ....................................................................................................................................... 21

1.11

Subroutines and Loops ............................................................................................................. 25

2.

PROGRAMMING ............................................................................................................................. 26

2.1

Introduction ................................................................................................................................... 26

2.2

User Variables .............................................................................................................................. 27

2.3

Arithmetic's ................................................................................................................................... 28

2.4

Logical expressions and operators............................................................................................... 28

2.5

Bitwise operators .......................................................................................................................... 29

2.6

Boolean Operators........................................................................................................................ 29

2.7

Comparison operators .................................................................................................................. 30

2.8

Summary of User Variables.......................................................................................................... 30

2.9

System Variables and Flags......................................................................................................... 30

2.10

System Variables and Flags Summary..................................................................................... 31

2.12

Scanned Event Statements ...................................................................................................... 39

2.13

Motion ....................................................................................................................................... 40

2.14

System Status Register (DSTATUS register) ........................................................................... 47

2.15

Fault Codes (DFAULTS register).............................................................................................. 48

2.16

Limitations and restrictions ....................................................................................................... 49

3.

LANGUAGE REFERENCE .............................................................................................................50

KEYWORD

Long Name Type........................................................................................................ 50

ASSIGN

Assign Input As Index Bit Statement.................................................................................. 51

DEFINE

Define name Pseudo-statement....................................................................................... 51

DISABLE

Turns servo OFF Statement .......................................................................................... 52

DO UNTIL

Do/Until Statement........................................................................................................ 52

ENABLE

Enables servo Statement............................................................................................. 53

END

END program Statement................................................................................................... 53

2

Advertising