MNEMONIC

FUNCTION

TYPE

M T

Motor Settling Delay Time

Motion Variable

DESCRIPTION

Specifies the motor settling delay time in milliseconds. MT allows the motor to settle following a move. This is the time between moves if consecutive motions are executed.

USAGE

UNITS

RANGE

DEFAULT

MT=<time>

milliseconds

0 to 65000

0

 

 

 

 

EXAMPLE:

 

 

 

MT=50

‘Set motor setling delay time to 50 milliseconds

 

 

 

 

RELATED COMMANDS: HC, HT, RC

 

 

 

 

 

 

MNEMONIC

FUNCTION

 

TYPE

O1 - O4

Set/Print Output Logic State

I/O Variable

DESCRIPTION

This variable will set the logic state of the specified output to 1 or 0. When used with the PR (Print) instruction it will print the state of the specified output to the terminal screen.

The value of the bit state will be dependant on the active (low/high) state of the input.

USAGE

O<1-4>=<0/1>

PR O<1-4>

EXAMPLE:

 

 

O4=1

‘Set Output 4 to 1

 

PR O2

‘Print the state of Output 2 to the Terminal Screen

 

 

 

RELATED COMMANDS: OT, I1-I4, PR, S1-S4

 

 

 

 

MNEMONIC

FUNCTION

TYPE

OE

On Error Handler

Instruction

DESCRIPTION

When an error occurs in a program or due to an immediate command, the specified subroutine is called. If a program was running when the fault occurs, once the error routine completes, program execution continues with the instruction after the one that caused the error. A program need not be running for the subroutine specified by OE to run.

The ON ERROR function is disabled by setting the address parameter to 0 or resetting the MDrive Motion Control.

USAGE

OE <address>

EXAMPLE:

‘the following subroutine will set an output high upon an error

PG 100

'Start sub at address 100

OE E1

‘On Error go to E1

LB E1

‘label subroutine E1

O3=1

‘Set Output 3 to Logic 1

RT

'Return from subroutine

E

'End program

PG

'Return to immediate mode

RELATED COMMANDS: EF, ER

52

Page 54
Image 54
Intelligent Motion Systems 17 manual Motor Settling Delay Time Motion Variable, O1 O4 Set/Print Output Logic State Variable