VA Motion Controller Programming Manual
194
BOOL
type data conversion has
11
instructions, which can
convert
BOOL
type data into
BYTE, WORD, DWORD, SINT, INT,
DINT, USINT, UINT, UDINT, REAL
and
LREAL
.
BOOL type data conversion instruction
Input value
range
FALSE
or
TRUE
When the input is
FALSE
,
the output is
0;
When the input is
TRUE
,
the output is
1;
usage (take BOOL_TO_BYTE 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
When the contact
C007
is
ON
time , the
instruction is executed;
address
V010
is
TRUE
when , into the byte type,
stored in the
V 011
In ;
Execution result
; V010
(
TRUE
) switch
16
# 01
save to
V011
in ;