If I remember correctly, the AcceptIncompStructArray variables were implemented as a request from our department in November 2019. The requirement here was that the variable StructArrayCount does not have to be set when requesting the telegrams and also not validated. To explain this requirement more detailed: It can happen that you do not know the number of elements of the "orderList" structure in advance. The number of "OrderList" is only known in the MES and not within the plc. Before this function was implemented , you always had to send two telegrams in order to query the number of elements from the MES with the first and then query the contents with the second telegram. This led to a large number of duplicate telegrams for one information and a major impact on the system cycle time. At that time, the requirement was not that missing elements (such as "counter") are not validated or that incorrect values are also assigned to them. The definition of the structure must/should be fulfilled for all items. Here is the screenshot from the implementation at that time! The comment "Incomplete data posible" is a bit misleading and "UnknownStructArrayCount" might have been better. Unfortunately, the implementation as it is today leads to sensitive MES data being misinterpreted.This has a biginfluence on the quality of the productions and the production. It must not be that wrong values are assumed here. And why should one use the value of the last valid entry and not the one before or before that? This issue should be fixed!
... View more