Tcl Script With Input Arguments; Configuration; Description - Newport XPS-Q8 Manual

Universal high-performance motion controller/driver
Table of Contents

Advertisement

XPS-Q8
EDH0307En1041 — 10/17
DisplayErrorAndClose $socketID $code "EventRemove" $telnetOut
return
else
}
puts
flush
}
}
# close TCP socket
set
code
[catch
}
This is what gets displayed on a Telnet window for the above example. For details
about Telnet connections, see Section 4, Principle of a Tcl script redirection to a telnet
session :
7.13

Tcl Script with Input Arguments

7.13.1

Configuration

Group type
Single axis
7.13.2

Description

This example opens a TCP connection, kills the single axis group, then initializes and
homes the group. The program reads the three required input arguments: the start
position, the end position, and the number of cycles for moving from the target position
to the end position. When the user enters the arguments 10, -10 and 3 via the web site
interface, the positioner moves from –10 to +10 three times. Then, the program ends by
closing the socket.
{
$telnetOut "Timer event deleted"
$telnetOut
"TCP_CloseSocket $socketID"]
Number
Group name
1
SINGLE_AXIS
56
Tcl Manual
Positioner name
SINGLE_AXIS.MY_STAGE

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents