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
Summary of Contents for VEC-VA Series
Page 1: ......
Page 25: ...VA Motion Controller Programming Manual 20 Word STRING String VECTOR ...
Page 90: ...VA Motion Controller Programming Manual 85 ...
Page 116: ...VA Motion Controller Programming Manual 111 ...
Page 139: ...VA Motion Controller Programming Manual 134 ...
Page 274: ...VA Motion Controller Programming Manual 269 ...
Page 329: ...VA Motion Controller Programming Manual 324 ...
Page 342: ...VA Motion Controller Programming Manual 337 2 Motion curve and timing diagram ...
Page 352: ...VA Motion Controller Programming Manual 347 2 Motion curve and timing diagram ...
Page 357: ...VA Motion Controller Programming Manual 352 2 Motion curve and timing diagram ...
Page 372: ...VA Motion Controller Programming Manual 367 2 Timing and motion profiles of FIG ...
Page 386: ...VA Motion Controller Programming Manual 381 2 the motion profile and timing ...
Page 444: ...VA Motion Controller Programming Manual 439 ...
Page 460: ...VA Motion Controller Programming Manual 455 ...
Page 461: ...VA Motion Controller Programming Manual 456 2 a timing graph and ...
Page 481: ...VA Motion Controller Programming Manual 476 ...
Page 543: ...VA Motion Controller Programming Manual 538 ...
Page 561: ...VA Motion Controller Programming Manual 556 ...
Page 597: ...VA Motion Controller Programming Manual 592 ...
Page 603: ...VA Motion Controller Programming Manual 598 ...
Page 607: ...VA Motion Controller Programming Manual 602 ...
Page 610: ...VA Motion Controller Programming Manual 605 ...
Page 613: ...VA Motion Controller Programming Manual 608 ...
Page 648: ...VA Motion Controller Programming Manual 643 Mode 1 is not available ...