MDrive/MForce – Position trip redefine

This program demonstrates how to redefine a position trip while a move is in progress. A one million step relative move is made while an output turns on at 100000 and off again at 600000.

Position Trip Redefine - Move Profile

 

'*** This program redefines a position trip
'*** while a move is in progress. In this
'*** 1M step move, O1 turns on at 100k and
'*** turns off at 600k.


'*** Parameter Setup ***
S1=16,0 		'config for gen purp out
S2=0,1 		'gen purp input
Vm=200000

'*** Program ***
PG 1
LB aa
 BR aa, I2=1 	'wait for I2 to start
 P=0 		'set position counter to 0
 Tp 100000,xx 	'turn on at 100000
 Te=2 		'enable trip
 PR "Move start"
 MA 1000000
 H
 PR "Move done"
 BR aa
E
'Turns the output on
LB xx
  PR "Output on"
 Tp 600000,xy 	'redefine trip to 600000
 Te=2 		'enable it
 O1=1
 RT
'Turns the output off
LB xy
 H 100
 O1=0
 PR "Output off"
 RT

PG

Download Redefine Trip .mxt file
(color-coded in IMS Terminal)

 

> Motion Control Code Index