Example #1
0
 private void AddTag2TagTable(ICoreObject parent,
                              string tagName,
                              string tagDataType,
                              string tagAddr,
                              string tagRemark,
                              string hmiAccessible   = "True",
                              string hmiVisible      = "True",
                              string retain          = "",
                              ITagService tagService = null)
 {
     TiaStarter.RunActionInSynchronizer(UsingSynchronizer,
                                        () =>
     {
         Reflector.RunInstanceMethodByName(FM,
                                           "ImportXML",
                                           ReflectionWays.SystemReflection,
                                           tagName,
                                           tagDataType,
                                           tagAddr,
                                           tagRemark,
                                           hmiAccessible,
                                           hmiVisible,
                                           retain,
                                           tagService);
     });
 }