要求:项目打开时有文本列表或全局文本。
-
双击对象“GlobalTextList” 或类型为“TextList” 的对象。
物体打开。
-
单击“文本列表 导入/导出文本列表” 。
“Import/Export” 对话框将打开。
-
在“选择导出文件” ,点击更多 (
) 并选择目录和文件名(例如:
Text_lists_exported
)。 -
选择“Export” 选项。
-
单击“OK” 关闭“Import/Export” 对话框。
CODESYS 将项目中所有文本列表的条目导出到文件中。表格中有一列包含文本列表名称。
示例
文件内容 Text_lists_exported
TextList Id Default en_US Text_list_A A Information A Infrrmation A_en Text_list_A B Information B: OK Information B_en: OK Text_list_A C Information C Information C_en Text_list_A D Information D Information D_en Text_list_A E Information E Information E_en Text_list_A F Information F Information F_en AlarmGroup 2 Warning 2 AlarmGroup 1 Warning 1 GlobalTextList Information B Information B_en GlobalTextList Information A Information A_en GlobalTextList Switch Switch GlobalTextList Counter: %i Counter : %i