Immediate values
(Original Document)
Introduction
Converting a PL7 application into a Control Expert application generates certain differences, which are described in the following paragraphs.
Integer and long integer words
WORD and DWORD types are converted into INT and DINT types by the PL7 converter.
A hexadecimal immediate value greater than 16#7FFF (+32767) is converted to a negative decimal value, the original value is shown in the comment (example: %MW0:=16#ABCD is converted to %MW0:=-21555 {16#ABCD}).
The conversion of the immediate value of a long integer is identical for values greater than 16#7FFFFFFF (+2147483647) (example: %MD80:=16#ABCDABCD is converted to %MD80:=-1412584499 {16#ABCDABCD}).
Network address words
The address ADR# is replaced in Control Expert by an EF. For a given address ADR#{r.s}\xy.i.c\xy.i.SYS, there are two possible scenarios: