:MODE=UPDATE
- Last UpdatedFeb 05, 2018
- 1 minute read
如果遇到重复的标记,则 DBLoad 实用程序仅在导入文件中明确指定数据的情况下才会覆盖“标记名字典”中现有的标记定义。“标记名字典”中与该标记关联的其它所有数据都保持不变。
如果字段存在于记录中,并且已输入内容或已通过 ":KEYWORD=value" 机制进行设置,则这些此字段被视为明确定义的。如果字段未在记录中指定,并且使用 ":KEYWORD=" 命令重置过关键字,则当前字段值不更新。
下例显示采用更新模式将导入文件加载/合并到“标记名字典”时产生的结果:
:Mode=update
:Group=Group1
:IODisc,Group,DConversion
Tagname1,Group2,
; Tagname1's Group updated to Group2 only
Tagname2,,
; Tagname2's Group updated to Group1 and the DConversion left as is
Tagname3,,Reverse
; Tagname3's Group updated to Group1 and the DConversion to "Reverse"
; the following line "resets" the Group field to its default value
:Group=
; Data field "Group" is reset to its default value
Tagname4,,
; Tagname4 will be left alone
如果要更改标记类型且标记正在使用,则标记类型必须兼容。例如,如果应用程序正在使用标记,则现有的历史趋势标记无法更改为“I/O 整型”。同样,如果应用程序中的输入链接正在使用标记,则该标记无法更改为 ReadOnly=yes。由于存在这些限制,运行 DBLoad 实用程序之前,请先更新目标应用程序的使用计数。