STOP!        Stop motion when a programmed event occurs

Syntax                        

STOP!

STOP motion on event

Operands

PlaceTML

Binary code

DescriptionExecutes a STOP command when a programmed event occurs.

 

Example:

// Move at constant speed and stop when input 36 goes low.

// Position feedback: 500 lines encoder (2000 counts/rev)

CACC = 0.3183; //acceleration rate = 1000[rad/s^2]

CSPD = 33.3333;//jog speed = 1000[rpm]

MODE SP;

TUM1; //set Target Update Mode 1

UPD;        //execute immediate

!IN#36 0; // Set event: when input #36 goes low

STOP!; //Stop the motion when event occurs

WAIT!; //Wait until the event occurs