IMS MicroLYNX Quick Manual page 56

Hide thumbs Also See for MicroLYNX:
Table of Contents

Advertisement

L I S T
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
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
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 UVARS
PRINT ALL
PRINT ACCL
'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
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:
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
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
54
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
Arrow.com.
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
[ L i s t S t o r e d P r o g r a m S p a c e ]
[ S a v e ]
[ P r i n t ]
'Print the state of all I/O lines
'Display the value of user-defined variables
'Display the state of all VARS/FLGS/IOS
'Display the value of the acceleration variable
[ E n t e r / L e a v e P r o g r a m M o d e ]
PGM 200
[ M o v e t o A b s o l u t e P o s i t i o n ]

Advertisement

Table of Contents
loading

Table of Contents