49
MNEMONIC
FUNCTION
TYPE
LB
Label Program/Subroutine
Instruction
DESCRIPTION
The LB, or Label Instruction, allows the user to assign a 2 character name to a program, 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 two characters.
4]
A program labeled SU will run on power-up
USAGE
LB <char><char>
EXAMPLE:
PG 100
‘start program at adress 100
LB J0
‘Label program J0
RELATED COMMANDS: BR, CL, EX, TI, TP, L, CP
MNEMONIC
FUNCTION
TYPE
L
List Program Space
Instruction
DESCRIPTION
The L instruction will print the contents of program space beginning at the specified address to the end. If no address is specified it
will list beginning at line 1.
USAGE
L
L <addr/label>
EXAMPLE:
L 128
‘display contents of program space beginning at line 128
RELATED COMMANDS: —
MNEMONIC
FUNCTION
TYPE
LK
Lock User Program
Setup Flag
DESCRIPTION
This flag allows the user to lock the program from being listed or modified. It can only be reset by clearing the entire program space:
CP (no address). If CP addr, L (addr), PG addr entered then error 44 (Program Locked) will be set and nothing else will happen.
To clear LK, don’t save (S) then do a Ctrl-C or Cycle Power and the LK will be reset to previous unlocked state. (Program is
automatically store in NVM as it is entered.) Or you may clear program (CP). This will clear the program and reset LK to 0 in
NVM as well as in local ram.
USAGE
DEFAULT
LK= <0/1>
0 (Disabled)
RELATED COMMANDS: CP, L
Summary of Contents for 17
Page 1: ...OPERA TING INSTRUCTIONS T intelligent motion systems inc Excellence in MotionTM TM ...
Page 5: ...3 Part 1 General Information and Hardware Specifications ...
Page 6: ...4 Intentionally Left Blank ...
Page 19: ...17 Part 2 Connecting Configuring and Programming the MDrive Motion Control ...
Page 20: ...18 Intentionally Left Blank ...