VA Motion Controller Programming Manual
200
When inputting
0~127
, output
0~127;
input
-128~-1
, output
128~255
When inputting 0~127 , output 0~127;
input -128~-1 , output 128~255
When inputting 0~127 , output 0~127;
input -128~-1 , output -128~-1
When inputting
0~127
, output
0~127;
input
-128~-1
, output
-128~-1
usage (take
SINT_TO_B_BCDA
s an example)
LD, FBD programming language
OUT:=SINT_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
Short Integer 5 turn to BCD16 # 05
This type conversion function
converts the input value of the data
type SINT into the BCD output value ( binary
code decimal number ) of the data type BYTE .
10.3.10 Conversion of INT data
INT -converted data has 14 instructions can be INT respectively
converted data type for the day the BCD, WBCD, D the BCD, BOOL,
BYTE , WORD , DWORD , SINT, DINT, USINT, UINT, UDINT,
REAL and LREAL other types.
INT type data conversion instruction
description
The input value ranges from
32768 to 32767;
When inputting
0~99
, output
16#0~99;