Operations between mixed types
(Original Document)
Introduction
Converting a PL7 application into a Control Expert application generates certain differences, which are described in the following paragraphs.
Words and double words
Operations between different object types are not possible in Control Expert.
During the conversion procedure, operations of this type are detected and replaced by their corresponding EFs.
Example: MD0:=%MD0+%MW4 is converted into
%MD0:=%MD0+INT_TO_DINT(%MW4).
Example: %MW20:=%MD10 is converted into
%MW20:=DINT_TO_INT(%MD10).
Tables and (double) words
Operations between word tables or double word tables and words or double words are not possible in Control Expert.
During the conversion procedure, operations of this type are detected and replaced by their corresponding EFs.
Example: %MW100:20:=%MW10+5 is converted into
MOVE_INT_ARINT(%MW10+5,%MW100:20).
Example: %MW100:20:=%MW100:20+5 is converted into
%MW100:20:=ADD_ARINT_INT(%MW100:20.5).
Assignment of tables
The assignment of a word or double word table into a bit table is not possible in Control Expert.
During the conversion procedure, the assignment operator:= is replaced by the corresponding EF.
Example: %M0:16:=%MW20 is converted into
MOVE_INT_ARX(%MW20,%M0:16).