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 #216 background imageLoading...
Page #216 background image
VA Motion Controller Programming Manual
211
ST
programming language
OUT:=REAL_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
Float
73 is .0
turn
BYTE
description
When the contact C105 is ON , the execution of the
instruction , the address
of V204 in the floating 73.0 revolutions of BYTE stored
in the V 205 in ;
Execution of results : 73.0 ( REAL ) switch 16 #
49 ( BYTE )
10.3.16 Conversion of LREAL type data
Type conversion
FU
Description
LREAL
type data
conversion
LREAL
conversion type data there
. 11
instructions can
be
LREAL
respectively converted to data type
BOOL, BYTE, WORD,
DWORD, SINT, INT, DINT, USINT, UINT, UDINT
and
REAL
types.
LREAL type data conversion instruction
instruction
input
value
output value
Describe the REAL type of input value
whose fractional part is discardeDAt the
time of conversion
LREAL_TO_BOOL
LREA
L
BOOL
When input
0
, output
FALSE;
when
other values are input, output TRUE
LREAL_TO_BYTE
LREA
L
BYTE
When
0~255
is input , the output
is
0~255; if the
input is increased, the
output will be repeated.
0~255;
input
-1~-255
,
output
255~0;
input and then decrease,
output repeats
255~0
LREAL_TO_WORD
LREA
L
WORD
When inputting 0~65535 , the output
is 0~65535 . If the input is increased, the

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