High Speed Input Trip Capture

This short program demonstrates how to set up a high-speed trip capture function for an MDrivePlus2. The Trip Capture (TC) function available only on the MDrive Plus2 and MForce Plus2 units is similar to the standard Trip on Input (TI) command but designed for extremely high-speed applications.

Input 13 is defined as a high-speed input that will capture a pulse based on the FC (Filter Capture) I/O variable. The FC has 10 settings that will digitally filter input pulses from a minimum of 50nS to a maximum of 12.9nS. The input on I13 must be stable for the period of time set by FC before it will be recognized. In the program, when the input becomes true, the program leaves the loop in LB k1 and executes subroutine LB k2 which increments R1, prints the value of R1, reenables the trip (Te=4) and returns to LB k1. It is important to understand that Input 13 is a TTL level only input. Vin Max is +5 volts. A 12 to 24 volt input typically used on the MDrive general purpose inputs will damage Input 13!

'***This program demonstrates how to set up an input trip
'***capture. Every time TC activates R1 increments and prints.

R1=0 		'init R1 to 0
S13=60,0,0 	'set input 13 for high speed TC input
Fc=9 		'filter input 13 for 12.9uS

PG 1
LB su
  OE e1 		'on error call e1
  P=0   		'set position counter to 0
  Tc=k2 		'set up input trip
  Te=4  		'trip on capture (I/O 13) enable
LB k1
  H 100 		'busy loop
  BR k1
E       		'program end

LB k2   		'sub called on input trip
  IC R1 		'increment R1
  PR "R1=",R1
  Te=4  		'reenable trip
  RT    		'return
E

LB e1   		'this sub is called on any error
  PR "Error=",Er
  Er=0
  RT
E
PG
S

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