PLCgen test model "sync_events_funcs" does not compile
CIF model: sync_events_funcs.cif sync_events_funcs.options.txt
Generated PLC code: CONSTANTS.xml DB.db MAIN.scl tryEvent_c_sync01.scl tryEvent_c_sync02a.scl tryEvent_c_sync02b.scl tryEvent_c_sync03.scl tryEvent_c_sync04.scl tryEvent_c_sync06a.scl tryEvent_c_sync06b.scl tryEvent_c_sync06c.scl tryEvent_c_sync07a.scl tryEvent_c_sync07b.scl tryEvent_c_sync07c.scl tryEvent_c_sync08.scl tryEvent_c_sync09.scl tryEvent_c_sync10a.scl tryEvent_c_sync10b.scl tryEvent_c_sync10c.scl tryEvent_c_sync11a.scl tryEvent_c_sync11b.scl tryEvent_c_sync11c.scl tryEvent_c_sync11d.scl tryEvent_c_sync11e.scl tryEvent_c_sync11f.scl tryEvent_c_sync11g.scl tryEvent_c_sync11h.scl tryEvent_c_sync11i.scl tryEvent_c_sync11j.scl tryEvent_c_sync11k.scl tryEvent_sync02a_u_extra.scl tryEvent_sync02b_u_extra.scl tryEvent_u_sync05.scl
Importing and compiling the PLC code for this test results in an error stating function returns a value
. We testing a bit further, and found that all lines like
tryEvent_X(isProgress);
should be changed to
isProgress := tryEvent_X(isProgress);
so that the output of the function is correctly returned.
Addresses #679