Tcl Generator - Newport XPS-Q8 Users Manual, Software Tools And Tutorial

Universal high-performance motion controller/driver
Hide thumbs Also See for XPS-Q8:
Table of Contents

Advertisement

XPS-Q8 Controller
XPSDocumentation V1.4.x (EDH0301En1060 — 10/17)
18.1

TCL Generator

The TCL generator provides a convenient way of generating simple executable TCL
scripts. These scripts are also a good place to start for the development of more complex
scripts. Note that applications that are memory intensive or require links other XPS may
require a script that is external to the XPS.
The TCL generator is accessible from the terminal page of the XPS web site. Pressing
the TCL generator button generates a TCL script that includes the commands previously
executed and listed in the Command history list. Note that the command order in the
generated TCL script is the same, but in inverted order, as the executed commands in
the Command history list. The name of the generated TCL script is History.tcl and is
stored in the ..\Admin\Public\Scripts folder in the controller.
Be aware that generating a TCL script overwrites an already created History.tcl file if it
is present on the XPS. To permanently save the created TCL script, connect to the XPS
via FTP and either rename or move the History.tcl file before generating a new
History.tcl from the 'TCL Generator" button.
Example
This is an example using three stages, two in an XY group (named XY) and one in a
SingleAxis group (named S).
The following functions were executed in the Terminal web page.
KillAll()
GroupInitialize(S)
GroupInitialize(XY)
GroupHomeSearch(S)
GroupHomeSearch(XY)
GroupMoveAbsolute(S, 70)
GroupMoveAbsolute(S, -70)
GPIODigitalSet(GPIO3.DO, 63, 0)
EventExtendedConfigurationTriggerSet(XY.X.XYLineArcTrajectory.Star
t, 0, 0, 0, 0)
EventExtendedConfigurationActionSet(DOSet.GPIO3.DO, 42, 42, 0, 0)
EventExtendedStart()
XYLineArcVerification(XY, Linearc2.trj)
XYLineArcExecution(XY, Linearc2.trj, 10, 70, 1)
Then, the TCL Generator button is pressed to create a TCL script file. The file is named
History.tcl. When executed, that TCL file will execute all of the functions used
individually in the terminal.
198
Motion Tutorial

Advertisement

Table of Contents
loading

Table of Contents