EasyManua.ls Logo

Vector VEC-VA Series

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
192
W BCD TO SINT
ST OUT
ST programming language
OUT:=W_BCD_TO_SINT
(
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
16 # 0010
turn into a short integer
description
When the contact
C186
is
ON
time , the
instruction is executed; address
as
V332
in the
16
hexadecimal into
numbers short integer , stored in the
V333
in ;
Execution of Results :
16 #
0034
revolutions was
34
10.3.3 Conversion of DWOR D -type BCD data
Type conversion FU
Features
DWORD
type
BCD
data
conversion
The conversion of
DWORD
type
BCD
data includes the
following three instructions
: D_BCD_TO_SINT,
D_BCD_TO_INT
and
D_BCD_TO_DINT
. These three instructions
convert a
BCD
( binary encoded decimal ) input value
of AD
WORD
data type into an output value of
the
SINT
,
INT,
and
DINT
data types, respectively.
DWORD
type
BCD
data conversion instruction
instruction
input value
output
value
description
D_BCD_TO_SINT
DWORD type BCD code
SINT
Enter the value BCD code
16#00000000~16#00000127 , the
corresponding output value
SINT is 0~127 , the input is
increased by -1; the input
value BCD code 16#00000000~16#0
0032767 , the output
D_BCD_TO_INT
DWORD
type
BCD
code
INT
D_BCD_TO_DINT
DWORD
type
BCD
code
DINT

Table of Contents

Related product manuals