EasyManuals Logo
Home>Vector>Controller>VEC-VA Series

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 #207 background imageLoading...
Page #207 background image
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,
BCDAnd 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

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