VA Motion Controller Programming Manual
45
language
ST
, the statements of the
ST
programming language can be written line by line , each
statement ends with a semicolon, and multiple statements can occupy one line, and the
front ( non-editing area ) of each line of statements is one Line number. Such as an assignment
statement, which consists of a variable, an assignment keyword, anDAn expression, which is used
to assign the result of the expression to the operation.
Assign the variable to the left of the keyword
:
Variable name
: =
expression
;
The data types on both sides of the assignment keyword must be the same.
6 . 3 .3 ST expression
An expression consists of an operanDAnDAn operator, and the operand can be ADirect
quantity, a variable, or a function name. The operators that can be useDAre as follows :
The operators that can be useDAre as follows
Exit the called function, function
block or program and return to the
statement that called it.