Lenze PMSS1000 Simple Servo User Manual

Page 38

Advertising
background image

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
statement is often used as the action of an IF statement. The destination label may be above or below the
GOTO statement in the application program.

Labels may be any alphanumeric string 64 characters in length beginning with a letter and followed by a
colon ":".

GOTO TestInputs
…statements

TestInputs:
…statements

IF (IN_A1) GOTO TestInputs


Program Structure Instruction Summary
The following table contains a summary of instructions that relate to program branching.

Name Description

GOTO

Call a subroutine

DO/UNTIL

Do once and keep doing until conditions

becomes true

IF and IF/ELSE

Execute if condition is true

RETURN

Return from subroutine

WAIT

Wait fixed time or until condition is true

WHILE

Execute while a condition is true

38

Advertising