EasyManua.ls Logo

Vector VEC-VA Series - Page 37

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
Loading...
VA Motion Controller Programming Manual
32
specify the name of the data type worksheet, double-click the generated data type work order,
enter the editing area, type the following characters as shown
example:
Above code defines a containing
100
th
the IN T
are array variables, array name
DATAl
.
(3) Logical POU
1
) The program organization unit
POU
is a language element of the
PLC
program. They
contain the prograMCode is the most small, independent software units. The name of
the
POU
must be unique within the project. The right-click " Logical
POU
" can be inserted into
the following three program organization units
:
A: program ( PROGRAM )
B: function block ( FUNCTION BLOCK )
C: function ( FUNCTION )
2
) Each
POU
consists of two different parts
: the
variable work order and the code ontology,
which are all variables that appear in the
POU
in the variable worksheet . A
POU
code works with single-user
IL, ST
,
FBD, the LD, the SFC
five programming languages are written
one, where
IL
is an instruction list programming language (
Instruction List
)
ST
is a structured text
programming language (
Structured the Text
)
; FBD
is a functional block diagram programming
language (
function block Diagram
)
, the LD
is the ladder programming language (
Relay ladder
Logic Diagram
)
; the SFC
is a sequential function programming language (
the sequential function
the Chart
) .
function
" Function " , abbreviateDAs
FU
, is a program organization unit
POU
with multiple inputs
and one output . Similar to functions in high-level programming languages, the return value
of " function " can be simple data types such as
BOOL, IN T,
etc. " function " internal can call
another " function " , but can not be called " functional blocks " or " program " does not allow
recursive call. When declaring a " function, you must declare input and output variables,
intermediate variables, and external variables in the variable worksheet of this " function " .
List of features supported by
MULTIPROG :
Type conversion function
Such as
: IN_TO_REAL
Numerical function
Such as : ABS and LOG
StandarDArithmetic function
Such as : ADDAnd MUL
Bit string function
Such as
: ANDA
nd
SHL
Selection and comparison
function
Such as : SEL and GE

Table of Contents

Related product manuals