VA Motion Controller Programming Manual
197
Usage (take
WORD_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
When the contact C188 is ON when
this instruction is executed, the
address of V334 in the word into
BOOL type , is stored in the V335 in ;
Execution results: 16 #0064 转
BOOL
Note : When the V334 the value
is not zero , V335 output is TRUE ( .
1 )
10.3.8 Conversion of DWOR D -type data
DWORD type data conversion
DWORD type data conversion has 11 instructions, which can
convert DWORD type data into BOOL, BYTE, WORD, SINT, INT,
DINT, USINT, UINT, UDINT, REAL and LREAL .
DWORD type data conversion instruction
The input value ranges from 0 to
4,294,967,295; 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