PLCgen test model "literal_non_container" does not result in correct values
CIF model: expr_literal_non_container.cif
Generated PLC code: DB.db MAIN.scl
Running this test succeeded for the most part. Compiling gave certain warnings related to the accuracy of several values:
After compilation and execution of the code, the values in the database were checked against the expected values. Most values are correct, with the exception of the enumlit values. According to the test file these should have the values L1, L2, and L3. However, they have the values 0, 1, and 2:
Furthermore, there are 2 additional variables in TIA Portal, being a
and firstRun
. We assume these are standard variables that can be disregarded in the variable comparison.
Addresses #679 Addresses #798 (closed)