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 #24 background imageLoading...
Page #24 background image
VA Motion Controller Programming Manual
19
or nested. An example of declaring a structure is as follows:
TYPE
machine:
STRUCT
x_pos: INT;
y_pos: INT;
depth: INT;
rp: INT;
END_ STRUCT;
END _TYPE
String
A string is a finite sequence of multiple characters. Each character occupies one byte. The
data type of the string is STRING. When a string is declared, its length is set in parentheses after
the data type, anDA string is declared example as follows:
TYPE
STRING10: STRING (10);
END_TYPE
In this example, the length of the string is 10, i.e. STRING10 is a string containing 10
characters. 1 is the shortest string length, the longest string length of 32,766.
4.4 constant data representation
type of data
description
Bit length
Examples representation
BOOL
Boolean
1
BOOL # 0
SINT
Short integer
8
SINT # - 128
INT
Integer
16
INT # -32768
DINT
DINT
32
DINT # -2147483648
USINT
Unsigned short
8
US INT # 255
UINT
Unsigned int
16
UINT # 65535
UDINT
Unsigned double
integer
32
UDINT # 4294967295
REAL
Real
32
REAL # 3.1415629
LREAL
Long Real
64
LREAL # 3.1415629
TIME
time
32
T # 10MS, T # 10S, T # 10M,
T # 10H, T # 10D, T # 1D_10H
DATE
date
~
D # 2011-07-24
TIME OF DATE
time
TOD # 15: 23: 4555
TIME and DATE
Date and time
ADT # 2011-07-24 15: 23: 4555
BYTE
byte
8
BYTE # 16 # FF
WORD
word
16
WORD # 16 # FFFF)
DWORD
Double
32
DWORD # 16 # FFFFFFFF)

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