QUESTION:
What should you watch out for when converting S5 programs with block calls?
ANSWER:
After converting an S5 program with a block call an error message is issued when compiling the STL source created with reference to the order of the interconnected parameters:
Error message: "Wrong order of parameters for "Symbol" can lead to permutations/shifts ..."
In S5 the parameters are sorted in the order in which they are used in the program. In S7 the parameters are sorted according to type in the order IN, OUT, IN_OUT. The converter adopts the actual parameters of block calls from the S5 without any changes. Therefore the order of parameters in the STL source is not correct. Remedy:
If converted files from the S5 program contain block calls in which the order of the actual parameters does not match the order in the declaration, you can easily correct this by resorting using Cut and Paste. You must make sure that the actual parameters are sorted in the same way as the declarations of the blocks called. Then the STL source can be compiled without any errors.