VA Motion Controller Programming Manual
202
INT_TO_B_BCD
ST OUT
St
programming language
OUT:=INT_TO_B_BCD
(
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
Integer
98
turn as
BYTE
description
When the contact
C064
is
ON
when the
instruction
is
executed,
the
address
of
V006
in the integer
98
into
BYTE
type , is stored
in the
V121
in ;
Execution
results:
98
integer
to
16 #98
(
BYTE
)
10.3.11 Conversion of DINT type data
Type conversion
FU
Features
DINT
type
data
conversion
DINT
type data conversion has
16
instructions, which can
convert
DINT
type data into
B_BCD, W_BCD, D_BCD
,
BOOL,
BYTE
,
WORD
,
DWORD, SINT
,
INT, USINT, UINT, UDINT, REAL, LREAL,
BCDA
nd
TIME,
etc. Types of.
DINT
type data conversion instruction
instruction
inpu
t value
output
value
Description
: The
input value ranges
from
-2,147,483,648...2,147,483,647
DINT_TO_B_BCD
DINT
BYTE
When inputting
0~99
, output
16#0~99;
when
inputting other values, output
16#FF
DINT_TO_W_BCD DINT
WOR
D
When inputting
0~9999
, output
16#0~9999;
when
inputting other values, output
16#FFFF
DINT_TO_D_BCD
DINT
DWORD
When inputting
0~99999999
, output
16#0~99999999
. When other values
are input,
output
16#FFFFFFF
DINT_TO_BOOL
DINT
BOOL
When input
0
, output
FALSE;
when other values
are input, output
TRUE
DINT_TO_BYTE
DINT
BYTE
When inputting
0~255
, the output will be
0~255;
if the
input is increased, the output will
repeat
0~255;
input
-1~-255
, output
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 ...