VA Motion Controller Programming Manual
236
When the contact
C 206
is
O N
time ,
the instruction is executed, when the
address
V4 38 is
a string of length less
than the address
V4 39
the string length
of time; address
V4 40
outputs
1
; No's
output
0
Execution of results
;
V4 35 <V4 36
Output
1
10.4.20 STRING_TO_* (converts strings to other types)
The STRING_TO_*
instruction is used to convert a
STRING
type
data into a valiDA
NY
value type. There are
12
instructions to
convert the
STRING
type data into
BYTE, WORD, DWORD, SINT, INT,
DINT, USINT, UINT, UDINT, REAL. , LREAL
and
TIME
and other types.
STRING_TO_*
conversion instructions
Input format 0~255* , output is BYTE type
Input format 0~65535* ” , the output
is
WORD
type
Input format
0~4,294,967,295*
, output
as
DWORD
type
Input format -128~127* , output is SINT type
Input format -32768~-32767* , output
is INT type
Input format
-2,147,483,648~
2,147,483,647
" , output
DINT
Input format 0~255 ” , output is USINT type
Input format 0~65535 " , the output
is UINT type
Input format 0~4,294,967,295 ” , the output
is UDINT type
Input format decimal
*
, output is
REAL
type
Input format decimal
*
, output is
LREAL
type
Input format T#0~T#4,294,967,295 "
milliseconds, output seconds