EasyManuals Logo

Vector VEC-VA Series User Manual

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #50 background imageLoading...
Page #50 background image
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
Operator
Example
Example
value
description
priority
( )
(
2+3
)
*
(
4+5
)
45
brackets
Most high
**
3.0**4
81.0
Power operation
-
- 10
- 10
Find the opposite
NOT
NOT TRUE
False
Bitwise negation
*
10*3
30
Multiplication
/
6/2
3
Division operation
MOD
17 MOD 10
7
Modulo operation
+
2+3
5
Addition
-
4-2
2
Subtraction
< , > , <= , >=
4>12
False
Comparison
=
T#26h
T#1 d2h
True
equal
<>
8 <>16
True
not equal
&
,
AND
TRUE&FALSE
False
Boolean
XOR
TRUE XOR FALSE
True
Boolean or
OR
TRUE
OR FALSE
True
Boolean or
lowest
Description
Keyword
Example
description
Assignment
operator
:=
OUT:=IN
Assign IN to OUT
return
RETURN
RETURN;
Exit the called function, function
block or program and return to the
statement that called it.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals