Instruction List language extensions
(Original Document)
Introduction
PL7 IL language has the extension to support ST statements in IL, an equivalent of the operation and comparison blocks in LD language.
The IL language in Control Expert does not support these extension.
So the ST statements are converted into the corresponding IL language.
This service is applicable for all PL7 applications for TSX Premium and TSX Micro.
The next pages give some examples of the conversion.
To help the user to understand the conversion, a comment is added to the program, corresponding to the instruction in PL7.
Example 1
Variables of the following example in PL7 and in Control Expert
-
PL7
Control Expert
Variable Name
Address
Type
Address
Type
Var_word_201
%KW0
WORD
%KW0
INT
Var_word_202
%KW1
WORD
%KW1
INT
Var_word_203
%KW3
WORD
%KW3
INT
Var_word_204
%KW5
WORD
%KW5
INT
Var_word_205
%KW7
WORD
%KW7
INT
Var_bool_001
%MW421:X2
BOOL
%MW421.2
BOOL
Var_word_206
%MW50
WORD
%MW50
INT
Var_word_207
%MW51
WORD
%MW51
INT
Var_ebool_101
%M122
EBOOL
%M122
EBOOL
Var_word_208
%MW305
WORD
%MW305
INT
Var_word_209
%MW306
WORD
%MW306
INT
Operation and comparison block conversion to Control Expert
PL7
Control Expert
Example 2
Conversion of SFBs to IL language
PL7
Control Expert
IL extensions
The following table describes the Instruction List language extensions which have no Control Expert equivalents.
PL7
Control Expert
Status
[OF]
-
Deleted (1)
MASKEVT
UNMASKEVT
[...expression...]
Legend:
(1)
It is necessary to manually replace this part of the application.