Register

This program feeds a web at a constant velocity, and executes a registration move of a user-defined distance after a registration sensor becomes active. After the completion of the move, an output is switched ON/OFF. Operation starts when the START button is pressed, and ends when the STOP button is pressed, the batch is complete, or when material runs out.

Application flowchart:

'******** Parameter Setup ********


MUNIT  =  51200  'One inch per rev @ 1/256 microstepping
VI  =  0.500     'Base speed 1/2" per rev
ACCL = 50
DECL = 50

IOS 21 = 9,0,0	'IO 21 is Start Input
IOS 22 = 10,0,0	'IO 22 is Stop Input
IOS 23 = 0,0,0	'IO 23 is Material Sensor
IOS 16 = 0,0,1  'Differential IO point configured as registration
		'sensor input.
IOF 10 = 0	'Give IO Group 10 highest speed response - 100ns
IOS 31 = 0,1,0	'Cutter output:  GP, output, low true


VAR Speed
VAR Feedlth
VAR Matsens = 23
VAR Cutter = 31
VAR TargetCt	 'Number of parts to make
VAR Count = 0    'Running total

'******** Program ********

PGM     1
LBL  REGISTER
   IT1  =  16 , MARK   'Configure registration sensor 
		       'input trip routine


LBL Enterspd
   PRINT "Enter feed speed (in/sec) ";
   INPUT Speed


LBL Getdist
   PRINT "Enter feed distance (in) ";
   INPUT Feedlth
 

LBL Getcount
   PRINT "Enter Batch Count ";
   INPUT Targetct


LBL  CRUISE
   BR Webdone, !IO Matsens  'Go to end if out of material
   ITE1 = 1		    'Enable input trip routine
   SLEW Speed		    'Accelerate web up to speed.
LBL  IDLER
   BR IDLER, MVG	'Wait for trip routine to complete
						'execution 
 
   BR CRUISE, Count < Targetct	'Execute as long as this condition
				'is true
   PRINT "Batch Completed"
   PRINT "Parts Made ", Count

LBL Webdone
   END       

  LBL  MARK
   MOVR Feedlth  
   HOLD 2  
   IO Cutter = 1	'Turn on cutter output
   DELAY 250		'for 1/4 sec
   IO Cutter = 0	'Turn off cutter  
   INC Count		'Increment Count by 1.
   PRINT "Parts Made ", Count 
  RET

PGM
  

Download Register .lxt file
(color-coded in IMS Terminal)

[Return to MicroLYNX Sample Code Index]


IMS Logo Wide

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

Contact

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

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

IMS EUROPEAN SALES MGT.
4 Quai Des Etroits
69005 Lyon, France
Phone: +33 / 4 7256 5113
Fax: +33 / 4 7838 1537
E-mail: bmartinez@imshome.com

IMS UK Ltd
.
25 Barnes Wallis Road
Segensworth East
Fareham, Hampshire, UK  PO15 5TT
Phone: +44 / 0 1489-889825
Fax:: +44 / 0 1489-889857
E-mail: mcheckley@imshome.com

U.S.A. SALES OFFICES
Eastern Region 

Phone: 973 / 661-1270
Fax: 973 / 661-1275
E-mail: jroake@imshome.com

Central Region
Phone: 260 / 402-6016
Fax: 419 / 858-0375
E-mail: dwaksman@imshome.com

Western Region
Phone: 602 / 578-7201
E-mail: dweisenberger@imshome.com