摘要 |
The present invention relates to a method of processing a tag calculation of an HMI, which can efficiently process a calculation formula, reduce a system resource, and promote safety of inputting and outputting a tag by processing a tag calculation formula using a topological sort algorithm. According to an embodiment of the present invention, the method comprises the following steps: judging whether a tag of which a tag value is changed is a calculation tag or not with reference to a calculation order index, when a calculation performing portion receives a tag value change trigger; extracting a tag order to be calculated using the calculation performing portion with reference to the calculation order index and a calculation order map, when the tag of which the tag value is changed is the calculation tag; judging whether an I/O tag exists in tags included in the extracted calculation order using the calculation performing portion, when the tag order to be calculated is extracted; and generating values of the tags included in the calculation order by calculating the same in the calculation order in which the calculation performing portion extracts when being judged that the I/O tag does not exist. |