XPS-Q8 Tcl Manual
DisplayErrorAndClose $socketID $code "EventRemove" $telnetOut
return
} else {
puts $telnetOut "Timer event deleted"
flush $telnetOut
}
}
# close TCP socket
set code [catch "TCP_CloseSocket $socketID"]
}
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
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.
EDH0307En1041 — 10/17
56