
■
CMD?[{{␣}<Argument>}]␊
Exception:
■
Single-character commands are not followed by a termination character. However, the
response to a single-character command is followed by a termination character.
More than one command mnemonic per line is not allowed. Several groups of arguments
following a command mnemonic are allowed.
When all arguments are optional and not specified, the command is executed for all possible
argument values.
Sending a Command
The axis identified with "1" is to be moved to position 10.0. The unit depends on the
controller (e.g., µm or mm).
1. Send
MOV␣1␣10.0␊
➔
Axis 1 moves to position 10.0 (physical unit).
Sending the Command with Several Arguments
Two axes are to be moved that are connected to the same controller: The axis with axis
identifier "1" is to be moved to position 17.0 and the axis with axis identifier "2" is to be
moved to position 2.05. The unit depends on the controller (e.g., µm or mm).
Information
Wenn ein Teil der Befehlszeile nicht ausgeführt werden kann, wird die gesamte Zeile nicht
ausgeführt.
1. Send
MOV␣1␣17.3␣2␣2.05␊
➔
Axis 1 moves to position 17.0 (physical unit), axis 2 moves to position 2.05 (physical unit).
Sending commands without arguments
The position of all axes is to be queried.
1. Send
POS?␊
➔
Outputs the position of all axes. The response syntax is as follows:
{[<Argument>[{␣<Argument>}]"="]<Wert>␣␊}
[<Argument>[{␣<Argument>}]"="]<Wert>␊
(for the last line)
8.7.2
Variables
The electronics support variables for more flexible programming. While global variables are
always available, local variables are only valid for a specified macro. Typically, variables are
used when working with macros.
Variables are in volatile memory (RAM) only. The variable values are the STRING data type.
The following conventions apply to variable names:
■
Variable names may not contain special characters (especially not “$”).
■
The maximum number of characters is 8.
■
Names of global variables can consist of characters A to Z and 0 to 9. They must begin
with a letter.
■
Names of local variables must not contain alphabetic characters. Possible characters are 0
to 9.
■
The variable name can also be specified via the value of another variable.
8 E-871.1A1N FUNCTIONS
PZ285EN
‒
1/30/2019
103
M O T I O N | P O S I T I O N I N G