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 #199 background imageLoading...
Page #199 background image
VA Motion Controller Programming Manual
194
BOOL
type data
conversion
BOOL
type data conversion has
11
instructions, which can
convert
BOOL
type data into
BYTE, WORD, DWORD, SINT, INT,
DINT, USINT, UINT, UDINT, REAL
and
LREAL
.
BOOL type data conversion instruction
instruction
input value
output
value
description
BOOL_TO_BYTE
BOOL
BYTE
Input value
range
FALSE
or
TRUE
When the input is
FALSE
,
the output is
0;
When the input is
TRUE
,
the output is
1;
BOOL_TO_WORD
BOOL
WORD
BOOL_TO_DWORD
BOOL
DWORD
BOOL_TO_SINT
BOOL
SINT
BOOL_TO_INT
BOOL
INT
BOOL_TO_DINT
BOOL
DINT
BOOL_TO_USINT
BOOL
USINT
BOOL_TO_UINT
BOOL
UINT
BOOL_TO_UDINT
BOOL
UDINT
BOOL_TO_REAL
BOOL
REAL
BOOL_TO_LREAL
BOOL
LREAL
usage (take BOOL_TO_BYTE as an example)
IL
programming language
LD, FBD
programming language
LD IN
BOOL_TO_BYTE
ST OUT
ST
programming language
OUT:=BOOL_TO_BYTE
(
IN
)
Note : IL, ST language programming needs to insert variables IN and OUT or use constants in
the current POU variable worksheet
Funtion and Action examples
The
BOOL
turn bytes
description
When the contact
C007
is
ON
time , the
instruction is executed;
address
V010
is
TRUE
when , into the byte type,
stored in the
V 011
In ;
Execution result
; V010
(
TRUE
) switch
16
# 01
save to
V011
in ;

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