IMS 17 Operating Instructions Manual page 35

Motion control
Table of Contents

Advertisement

L B
The MDrive Motion Control also offers the user the convenience of naming programs, subroutines and processes to ease in
branching from one part of a program to another, or calling a subroutine.
These labels, once set, will act as pointers to locations in program memory space.
The LB, or Label Instruction, allows the user to assign a 2 character name to a program or branch process within a program or
subroutine.
The restrictions for this command are:
1]
A label cannot be named after a MDrive Motion Control Instruction, Variable or Flag.
2]
The first character must be alpha, the second character may be alpha-numeric.
3]
A label is limited to to characters.
4]
A program labeled SU will run on power-up
Please Note: Any program labeled "SU" will execute on power-up.
Switch to program mode at address 200
Label command will name the program
Program named by LB command
Switch out of program mode
B R
Used to branch conditionally or unconditionally to a routine.
Switch to program mode at address 200
Label command will name the program
Program named by LB command
Unconditional branch to Program1
Switch out of program mode
E
Designates the end of a program.
Switches to program mode at address 200
Label command will name the program
Program named by LB command
Unconditional branch to K1
Designates the end of the program
Switches out of program mode
PG 200
LB K1
xxxxx
xxxxx
xxxxx
PG
PG 200
LB K1
xxxxx
xxxxx
xxxxx
BR K1
PG
PG 200
LB K1
xxxxx
xxxxx
xxxxx
BR K1
E
P
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Excellence in motion mdrive17

Table of Contents