VA Motion Controller Programming Manual
252
10.6 ProConOS Features
FILE_OPEN, FILE_CLOSE , FILE_SEEK , FILE_TELL , FILE_READ , FILE_WRITE,
FILE_REMOVE instructions in ProConOS are not available.
10.6 .1 BUF type conversion to other types
BUF
type data can be divided into
12
function blocks, which can copy basic data types from
byte stream to variables, arrays or elements of user-defined structure, that is, convert to
BYTE,
WORD, DWORD, SINT, INT, DINT, respectively. USINT, UINT
,
UDINT
,
REAL, STRING, TIME
and other
data, it is mainly used for data transfer or to perforMCommunication in the application on
different hardware platforms.
The
BUF
type data conversion instruction in
ProConOS
needs to be selected from the
drop-down list "
ProConOS
" in the editing wizard . Source data must be an array of bytes ( data
type
BYTE
) , but also
of ANY_BIT
(
BOOL
excluding ) or
ANY_INT
type ( number of bytes is
converted to data type stored can not exceed the target ) .
BUF
type data conversion instruction
The data
format of the
buffer
is MOTOROLA or I
NTEL . The source
data can also
be ANY_BIT ( BOOL
).
Except ) or A
NY_INT
The number of bytes
converted is 1
The number of bytes
converted is
2
The number of bytes
converted is
4
The number of bytes
converted is 1
The number of bytes
converted is 2
The number of bytes
converted is
4
The number of bytes
converted is
1
The number of bytes
converted is 2
The number of bytes
converted is 4