Application Notes & Sample Programs: MicroLYNX

 

 

Featured Application: MicroLYNX Registration

The following Registration Application utilizes a MicroLYNX with High Speed Input Module and Encoder or Sensor.

A registration application refers to a defined offset position beyond a registration mark. The position of the registration mark, triggered from an encoder or sensor and connected to the MicroLYNX High Speed Input Module, is captured. This captured position is then added to the desired offset distance. The motor is brought to a stop at this offset distance.

A registration application is used frequently in the motion control industries such as printing, packaging and optical inspection. Stepper drives and controls offer the user an accurate and low cost solution. Program execution time, stopping distance,  motor speed, acceleration and deceleration rates are important parameters to consider when designing registration equipment.

The program below feeds labels at a velocity given by the variable SPEED. A high speed differential IO is configured as the registration sensor input. If triggered, it executes a registration move based on user-defined offset distance, and switches an output on and off. If no input is realized in 2 seconds, a timer interrupt is triggered and the motion stops, a different output is turned on to indicate that the registration mark wasn't found, and a message is sent to the terminal stating that the "Registration Mark NOT Found". This prevents continuous web applications from spilling material on to the floor if the registration mark is never seen.

Sample Registration Program:

 

Munit = 51200 'user units defined as revs
Vm = 30 'max velocity in revs per second
Vi = Vm/50 'init. velocity
Accl = 100 'acceleration
Decl = Accl 'deceleration equals acceleration
Mhc=Mrc 'motor hold current=run current 

Ios 21 = 0,1,1,0,0,0 'output definition for LED or relay
Ios 17 = 0,0,1,1,0,0 'high speed input defined
Ios 26= 0,1,0,0,0,0 'general purpose output
'***************************

VAR Label = 1 'variable called Label set to a value of 1
VAR Speed = 5
'******** Program ********
Pgm 1 'start of program
LBL STARTUP 'label used for executing on power up
Ti1 = 17, Mark 'set input trip to go to label called Mark
Tt1=2000,Cease,26 'timer trip goes to routine called cease and turns on LED 26
Tte1=1 'enable the timer trip

LBL Go
Pos = 0 'sets position equal to zero
SLEW Speed 'slew at the value of Speed
Vm = Speed 'sets Vm to the value of Speed
HOLD 1 'hold until max vel is reached
Tie1 = 1 'enables input trip
LBL Idle1 'just a label
BR Idle1, Mvg 'branch to idle1 if motor is moving

Io 21 = 1 ' sets output true
DELAY 1000 'delay 1 second
Io 21 = 0 ' sets output off
BR startup 'branch to the label startup
END

LBL Mark
MOVA Poscap + label 'move absolute to position captured on trip plus 1
HOLD 2 'hold prog execution till move completes
Tte1=0 'timer trip event enabled
RET 'return to subsequent line from where trip occurred

LBL Cease
SSTP,1 'stop motion and ends program
HOLD 2
END 
Pgm 'end of program space

Questions? Contact IMS applications support:
   Ph: (860) 295-6102, E-mail: etech@imshome.com

 
 

IMS Logo Wide
370 N. Main Street, P.O. Box 457
Marlborough, CT 06447  U.S.A.
Phone: 860 / 295-6102
Fax: 860 / 295-6107
Email: info@imshome.com


TECHNICAL SUPPORT
Phone: 860 / 295-6102  (U.S.A.)
Fax: 860 / 295-6107
E-mail: etech@imshome.com

Germany / UK
Phone: +49 / 7720 / 995858-3
Fax: +49 / 7720 / 995858-9
E-mail: mweber@imshome.com

IMS UK Ltd.
25 Barnes Wallis Road
Segensworth East
Fareham, Hampshire, UK PO155TT
Phone: +44 / 1489 / 889-825
Fax:: +44 / 1489 / 889-857
E-mail: mcheckley@imshome.com

IMS ASIA PACIFIC OFFICE
30 Raffles Pl., 23-00 Caltex House
Singapore 048622
Phone: +65 / 6233 / 6846
Fax: +65 / 6233 / 5044
E-mail: wllee@imshome.com

IMS EUROPE GmbH
Niedereschacher Straße 54
D-78083 Dauchingen, Germany
Phone: +49 / 7720 / 995858-0
Fax: +49 / 7720 / 995858-9
E-mail: info@imseuropehome.com
European Sales Management
4 Quai Des Etroits
69005 Lyon, France
Phone: +33 / 4 7256 5113
Fax: +33 / 4 7838 1537
E-mail: bmartinez@imshome.com
Germany Sales
Phone: +49 / 35205 / 4587-8
Fax: +49 / 35205 / 4587-9
E-mail: hruhland@imshome.com
Germany / UK Technical Support
Phone: +49 / 7720 / 995858-3
Fax: +49 / 7720 / 995858-9
E-mail: mweber@imshome.com

U.S.A. SALES OFFICES
Eastern Region 

Phone: 862 / 208-9742
Fax: 973 / 661-1275
E-mail: jroake@imshome.com
Central Region
Phone: 760 / 966-3162
Fax: 760 / 966-3165
E-mail: dwaksman@imshome.com
Western Region
Phone: 602 / 578-7201
E-mail: dweisenberger@imshome.com

IMS MOTORS DIVISION
105 Copperwood Way, Suite H
Oceanside, CA 92054
Phone: 760 / 966-3162
Fax: 760 / 966-3165
E-mail: motors@imshome.com

 

SALES - U.S. & CANADA
North American Representatives
INTERNATIONAL
International Distributors