VA Motion Controller Programming Manual
195
10.3.6 Conversion of BYTE type data
BYTE type data conversion has 11 instructions, which can
convert BYTE type data into BOOL, WORD, DWORD, SINT, INT, DINT,
USINT, UINT, UDINT, REAL and LREAL .
BYTE type data conversion instruction
The input value ranges from
0 to
255; the
output is
BOOL
type
:
only
when the input is
0
, the output
is
FALSE, and in
other cases, the
output is
TRUE;
The output
is
SINT
type
:
input
0~127
corresponds
to output
0~127
,
input
128~255
corresponds to
output
-128~-1; when
output
is
WORD, DWORDA
nd other types, the
output is equal to input.
usage (take BYTE_TO_BOOL as an example)
LD, FBD programming language
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
Requirements : 16 # 0A ( 16 decimal number)
turn BOOL