EasyManua.ls Logo

Newport XPS Series - Example 2: Position Compare Output (PCO) Triggering Camera

Newport XPS Series
3 pages
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Complete listings for all global office locations are available online at www.newport.com/contact
www.newport.com
Newport Corporation, Global Headquarters
1791 Deere Avenue, Irvine, CA 92606, USA
PHONE: 1-800-222-6440 1-949-863-3144 FAX: 1-949-253-1680 EMAIL: sales@newport.com
PHONE EMAIL
Belgium +32-(0)0800-11 257 belgium@newport.com
China +86-10-6267-0065 china@newport.com
France +33-(0)1-60-91-68-68 france@newport.com
Japan +81-3-3794-5511 spectra-physics@splasers.co.jp
Taiwan +886 -(0)2-2508-4977 sales@newport.com.tw
PHONE EMAIL
Irvine, CA, USA +1-800-222-6440 sales@newport.com
Netherlands +31-(0)30 6592111 netherlands@newport.com
United Kingdom +44-1235-432-710 uk@newport.com
Germany / Austria / Switzerland
+49-(0)6151-708-0 germany@newport.com
Newport Corporation, Irvine and Santa Clara, California and Franklin, Massachusetts;
Evry and Beaune-La-Rolande, France; Stahnsdorf, Germany and Wuxi, China have
all been certified compliant with ISO 9001 by the British Standards Institution.
DS-011302
TECHNICAL NOTE
Trigger Synchronization using a
Newport XPS Series Motion Controller
The following conditions define the open, the close of the shutter and the
ready mode by changing the state of bit number to #0 or #1.
In the following example of a TCL script, when positioner G1.P1 reaches a
constant velocity, it opens the shutter. When the constant velocity is over, the
shutter is closed.
Example #2: Position Compare Output (PCO) to Trigger a High
Speed Camera
In the second example, the Position Compare Output is used with an XML350
Linear Stage and an XPS controller. The pulse output triggers an image capture
of a high speed camera system in Automated Optical Inspection (AOI)
application.
The Axis 1 pulse output from PCO connector is pulled up to +5V output with a
resistor as shown in Figure 7. Once the wiring is properly configured, the
following TCL commands can be used.
In the TCL script below, one trigger pulse is generated every 5 μm between
the minimum position of 10 mm and the maximum position of 50 mm. The first
trigger pulse will be at 10 mm and the last trigger pulse will be at 50 mm with
duration of 200 nanoseconds per each pulse.
# Ready mode (DO1 = 1, DO2 = 1)
set ErrorCode [catch "GPIODigitalSet $SocketID GPIO3.DO 3 3"]
if {$tcl_argv(0) != 0} {close_socket ; return $tcl_argv(0)}
# Open the Shutter (Switch DO1 from 1 to 0)
set ErrorCode [catch "GPIODigitalSet $SocketID GPIO3.DO 3 2"]
if {$tcl_argv(0) != 0} {close_socket ; return $tcl_argv(0)}
# Close the Shutter (Switch DO2 from 1 to 0)
set ErrorCode [catch "GPIODigitalSet $SocketID GPIO3.DO 3 1"]
if {$tcl_argv(0) != 0} {close_socket ; return $tcl_argv(0)}
EventExtendedConfigurationTriggerSet (Always, 0, 0, 0, 0,
G1.P1.SGamma.ConstantVelocityStart, 0, 0, 0, 0)
EventExtendedConfigurationActionSet (GPIO3.DO.DOSet, 3, 2, 0, 0)
EventExtendedStart()
EventExtendedConfigurationTriggerSet (Always, 0, 0, 0, 0,
G1.P1.SGamma.ConstantVelocityEnd, 0, 0, 0, 0)
EventExtendedConfigurationActionSet (GPIO3.DO.DOSet, 3, 1, 0, 0)
EventExtendedStart()
GroupMoveAbsolute (G1.P1, 50)
GroupMoveAbsolute (G1.P1, -50)}
GroupInitialize(GROUP1)
GroupHomeSearch(GROUP1)
PositionerPositionCompareSet(GROUP1.POSITIONER,10, 50, 0.005)
PositonerPositionCompareEnable(GROUP1.POSITIONER)
PositionerPositionCompareGet(GROUP1.POSITIONER, double *, double *,
double *, bool *)
PositionerPositionComparePulseParametersGet(GROUP1.POSITIONER,
double *, double *)
GroupMoveAbsolute(GROUP1.POSITIONER, 150)
PositionerPositionCompareDisable(GROUP1.POSITIONER)
F
igure 7: Wiring Diagram of XPS PCO to External Camera
PositionerPositionComparePulseParameterSet()
PositionerPositionCompareSet()
PositionerPositionCompareGet()
PositionerPositionCompareEnable()
PositionerPositionCompareDisable()
For additional information about the Newport XPS controller and its advanced features for trigger
synchronizations, please contact Newport sales and application engineers at tech@newport.com.

Related product manuals