
54
L I S T
[ L i s t S t o r e d P r o g r a m S p a c e ]
This instruction lists the contents of program memory. By using optional param-
eters (i.e. LIST <lbl/addr>) it can selectively list the contents of memory. If no
parameter is specified it will list all of program space.
S A V E
[ S a v e ]
Save all user-defined variables with the current data, all programs, and all factory-
defined VARS/FLGS/IOS to NVM.
P R I N T
[ P r i n t ]
Used to output text and parameter values to the host PC. Text should be enclosed
in quotation marks, parameters should not. There are also several control charac-
ters which may be embedded in the text to control how the text is displayed.
Here are several examples along with comments.
PRINT IOS
‘Print the state of all I/O lines
PRINT UVARS
‘Display the value of user-defined variables
PRINT ALL
‘Display the state of all VARS/FLGS/IOS
PRINT ACCL
‘Display the value of the acceleration variable
‘Display the text “Axis at position:” and the value of the POS counter
‘embed a line feed with no carriage return
PRINT "\nAxis at position: " ,POS;
The PRINT instruction is the most often used instruction, and is often used
extensively in programs.
P G M
[ E n t e r / L e a v e P r o g r a m M o d e ]
This instruction toggles the MicroLYNX in and out of program mode. When entering
program mode, it must be followed by the memory address where the program will
begin. There must be a space between PGM and the address. For example:
PGM 200
Will start the program at address 200.
M o t i o n I n s t r u c t i o n s
These instructions can be used in either immediate or program mode. How they
operate is dependant on the MUNIT, ACCL, DECL, VI and VM variables.
M O V A
[ M o v e t o A b s o l u t e P o s i t i o n ]
This instruction will index the motor to a specified absolute position relative to
zero (0). There are 2 modes that may be used with it:
1] Mode 0 will decelerate to position and stop.
2] Mode 1 will not decelerate.
See the following figure and program example for illustration of MOVA modes.
Enter the following program in the text editor window. The test condition for
this demo was a MicroLYNX-4 and an IMS M2-2220 23 frame motor. You may
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from