Intelligent Motion Systems 17 manual Error Number Variable Status Variable

Page 46

MNEMONIC

FUNCTION

TYPE

ER

Error Number Variable

Status Variable

DESCRIPTION

The ER variable indicates the program error code for the most recent error that has occurred in the MDrive Motion Control. The ER variable must be read in order to clear the EF flag.

See Appendix A of this document for a complete listing of MDrive Motion Control Error Codes.

USAGE

RESPONSE

 

PR ER

<numerical error code>

 

 

 

 

EXAMPLE:

 

 

PR ER

‘read the error number

 

 

 

RELATED COMMANDS: EF, OE

 

 

 

 

MNEMONIC

FUNCTION

TYPE

EX

Execute Program

Program Instruction

DESCRIPTION

Execute program at a specified address or label using a selected trace mode. Used in immediate mode.

There are three modes of program execution.

Mode 0 Normal execution, is specified by a mode of 0 (or simply leaving the mode blank).

Mode 1 Trace mode is specified by a mode of 1. This means that the program executes continuously until the program END is encountered, but the instructions are “traced” to the communications port so the user can see what instructions have been executed.

Mode 2 Single step mode is specified by a mode of 2. In this mode, the user can step through the program using the space bar to execute the next line of the program. The program can be resumed at normal speed in this mode by pressing the enter key.

USAGE

MODES

EX <addr/label>,<mode>

<mode> = 0: run program normally

 

<mode> = 1: run program in trace mode

 

<mode> = 2: run program in single-step mode

EXAMPLE:

 

EX 127

‘execute program at line 127 normally

EX 127,1

‘execute program at line 127 in trace mode

RELATED COMMANDS: PG, E

44

Image 46
Contents Operating Instructions Intelligent Motion Systems, Inc All Rights Reserved Table of Contents List of Figures Part 1 General Information and Hardware Specifications Intentionally Left Blank A t u r e S u m m a r y Standard Rotary Motor Lmax T a r y M o t o r Specification sC t i o n O v e r v i e w Control Knob LMAX2MDI1715 N e a r M o t o r Specification sMDI1719 E e d F o r c e C u r v e 2 4 V D C MDI17 Linear ActuatorE e d F o r c e C u r v e 4 5 V D C R i v e 1 7 M o t i o n C o n t r o l a C M E S c r e w N e r a l Specification sMDI17 Acme Screws W e r S u p p l y R e q u i r e m e n t s E r m a l Specification sC o m m e n d e d I M S P o w e r S u p p l i e s A t u r e S u m m a r y MDrive23 Motion Control Specifications MDI2218MDI2222 MDI2231MDI23 Linear Actuator Refer to .10 for screw pitch informationR i v e 2 3 M o t i o n C o n t r o l a C M E S c r e w MDI23 Acme ScrewsIP404MDI23 Page Intentionally Left Blank N C o n f i g u r a t i o n a n d D e s c r i p t i o n s Connector P1Y o u t a n d I n t e r f a c e G u i d e l i n e s C o m m e n d e d W i r i n gT e r f a c i n g R S 4 8 5 C o m m u n i c a t i o n s Connector P2 10 Pin HeaderT e r f a c i n g P o w e r N g l e M D r i v eRS-485 Interface, Multiple MDrive Motion Control System T e r f a c i n g I n p u t s T e r f a c i n g t h e D i g i t a l I / OE s o f t h e D i g i t a l I / O Input FunctionsTTL Interface to Input Group Truth Table I/O Used as a GroupT e r f a c i n g O u t p u t s T e r f a c i n g a S i n g l e O u t p u t E x a m p l e sT e r f a c i n g t h e a n a l o g I n p u t M p l e U s a g eInstallation Install i n g a n d U s i n g I M S Te r m i n a lS t e m R e q u i r e m e n t s I n g t h e I M S Te r m i n a l S o f t w a r e 13 IMS Terminal Upgrader Window S t r u c t i o n s R i v e M o t i o n C o n t r o l P r o g r a m m i n gE r a t i o n a l M o d e s R i a b l e sA g s Y w o r d sT h F u n c t i o n s T i o n C o m m a n d sRead IO1 Setup PR S1 Read IO2 Setup PR S2 C o m m a n d sPlease Note Any program labeled SU will execute on power-up VAR CT Mnemonic Function Unit Range Syntax Example BaudI n s t r u c t i o n s , Va r i a b l e s a n d F l a g s Symbol Function T h e m a t i c a l F u n c t i o n sAcceleration Motion Variable Baud Rate Setup VariableRetrieve All Parameters Variable Branch Program Instruction Busy Flag Read Only Motion FlagCall Subroutine Program Instruction Set Counter 2 Encoder Counts Motion VariableClear Program Program Instruction D1-D5 Digital Input Filtering Variable Set Encoder Deadband Setup VariableDeceleration Motion Variable Device Name Setup Variable Drive Enable Flag Setup FlagEnd Program Execution Program Instruction Echo Mode Flag Setup Flag Encoder Enable Flag Setup FlagRead-Only Error Flag Status Flag Error Number Variable Status Variable Execute Program Program InstructionHold Current Setup Variable Home to Index Mark Variable Setup VariableHold Program Execution Program Instruction Hold Current Delay Time Setup Variable Home to Home Switch Variable Setup VariableRead Input Variable Read Encoder Index Mark Variable Read Analog Input VariableIncrement Variable Program Instruction Read Inputs 1-4 As 1 Value Variable Joystick Enable Flag Setup FlagInitialize Parameters Instruction List Program Space Instruction Lock User Program Setup FlagLabel Program/Subroutine Instruction Motion Instruction Move To Relative Position Motion InstructionMicrostep Resolution Motion Variable PR MSOn Error Handler Instruction Motor Settling Delay Time Motion VariableO1 O4 Set/Print Output Logic State Variable Set Ouputs 1-4 As 1 Value Variable Set/Print Position Counter InstructionEnter/Exit Program Mode Program Instruction Postition Maintenance Enable Setup FlagPrint Selected Data/Text Instruction Party Mode Enable Flag Setup Flag Pause Program InstructionRun Current Setup Variable R1 R4 User Registers User VariableReturn From Subroutine Instruction Resume Program InstructionSave to EEProm Instruction S1 S4 Set/Print I/O Point Type/Active State Instruction Set/Print I/O Point InstructionStall Detection Mode Variable Encoder Variable Encoder VariableRead Only Stall Flag Encoder Flag Trip Enable Flag Setup FlagTrip on Input Variable Trip on Position Variable Upgrade Firmware InstructionRead User Variables Read Only Velocity Variable Motion Variable Create User Variable Name InstructionRead Only Firmware Version Factory Variable Appendix a Data Errors Error Code FaultErrors Program ErrorsTWENTY-FOUR Month Limited Warranty Western Region