XPS-Q8
Tcl Manual
4.0
Principle of a Tcl Script Redirection to a telnet Session ......................... 16
4.1
Introduction ........................................................................................................................... 16
4.2
“Hello world !” Example ....................................................................................................... 17
4.2.1
Tcl script example .............................................................................................. 17
4.2.2
Tcl script execution ............................................................................................ 17
4.2.3
Tcl script execution result .................................................................................. 18
5.0
Example of a Tcl Script Redirection to a telnet Session ......................... 19
6.0
Proposed Function for Error Handling .................................................... 20
7.0
Examples of Tcl Programs ......................................................................... 23
7.1
Using analog I/O for motion .................................................................................................. 23
7.1.1
Configuration ..................................................................................................... 23
7.1.2
Description ......................................................................................................... 23
7.1.3
Tcl code.............................................................................................................. 23
7.2
Using Digital I/O for Motion ................................................................................................. 26
7.2.1
Configuration ..................................................................................................... 26
7.2.2
Description ......................................................................................................... 26
7.2.3
Tcl Code ............................................................................................................. 26
7.3
GPIO1 Test ............................................................................................................................ 29
7.3.1
Description ......................................................................................................... 29
7.3.2
Tcl Code ............................................................................................................. 29
7.4
Gathering with motion ........................................................................................................... 31
7.4.1
Configuration ..................................................................................................... 31
7.4.2
Description ......................................................................................................... 31
7.4.3
Tcl Code ............................................................................................................. 31
7.5
External gathering .................................................................................................................. 34
7.5.1
Configuration ..................................................................................................... 34
7.5.2
Description ......................................................................................................... 34
7.5.3
Tcl Code ............................................................................................................. 34
7.6
Position Compare................................................................................................................... 37
7.6.1
Configuration ..................................................................................................... 37
7.6.2
Description ......................................................................................................... 37
7.6.3
Tcl Code ............................................................................................................. 37
7.7
Master-Slave Mode ................................................................................................................ 39
7.7.1
Configuration ..................................................................................................... 39
7.7.2
Description ......................................................................................................... 39
7.7.3
TCL Code .......................................................................................................... 39
7.8
Jogging................................................................................................................................... 42
7.8.1
Configuration ..................................................................................................... 42
7.8.2
Description ......................................................................................................... 42
7.8.3
TCL code ........................................................................................................... 42
EDH0307En1041 — 10/17
iv