iTuner Manual
15
The above example shows a typical communication session. The tuner sends a short title
message after connection has been established. We enter the ‘init’ command at the command
prompt, terminated by the ENTER key. The tuner replies with:
Result=0 ID#1
Results indicates the return code, generally a zero or positive value indicates success, and a
negative values indicate an error, depending on the command send. Please see command
description below for definition of the return code.
The tuner always sends the reply immediately after receiving the command. The INIT command
will start initialization of all axis of the tuner, and this may take a certain time depending on the
type of the tuner, and the current position of the probes. See chapter on synchronization below
for details on programming the tuner.
Next, we send the POS 1 1000 command to move probe #1 to position 1000. We immediately
get a result code of zero, and the job ID# 2. The tuner starts moving probe 1 to position 1000.
This movement will take a couple of seconds. Once completed, the tuner sends a message:
JOB#2 completed. The job# refers to the POS command that was acknowledged with the
corresponding ID#.
The POS? command entered next is used to query the current probe positions. The reply
consists of a line with the position of each probe POS: A1=1000 A2=0, followed by the standard
Result/ID# line.
Now, try to send a command with a syntax error: POS 3 1000. Since the tuner used only has two
axis, we get an error message: Error: Illegal Axis# [1000], followed by Result=-1 ID#4.
4.2 Control Commands
4.2.1 Config command
The CONFIG command displays the configuration data of the tuner.
String value with current configuration, such as:
CCMT->config?
Model: DEMO