Converting a PL7 application into a Control Expert application generates certain differences, which are described in the following paragraphs.
WORD and DWORD types exist in Control Expert but do not make it possible to carry out arithmetic operations.
Arithmetic and logic operations are performed in Control Expert with INT and DINT type objects.
For this reason the PL7 converter converts WORD or DWORD type objects into INT or DINT type objects.
The PL7 converter modifies the syntax of the declaration in the tables (Boolean, word, double word, floating point and byte tables).
Example: ARRAY1:%M1:10 is converted intoARRAY1:ARRAY[0..9] OF BOOL.
NOTE: in Control Expert, elements keep the same name as in PL7 (example: ARRAY1).
Specific types and tables
(WORD) words and (DWORD) double words in TIME, DATE, TOD and formats are converted into INT and DINT.
Example: %MD10:=ADD_TOD(%MD20,%MD30) is converted into:
%MD10:=ADD_TOD_PL7(%MD20,%MD30).