Manual editing of the variable XML file |
Manual -> Import / Export -> Variables -> Manual editing of the variable XML file |
Show all Hide all |
Attention |
External changing of XML files is recommended
only for experts. |
You can edit the XML file before the import and after the export with an external program.
The header definitions must contain the following attributes:
ShortName |
Name of the variable |
DriverID |
ID of the driver |
TypeID |
ID for the datatype |
HWObjectType |
Identification of the driver object
type |
HWObjectName |
Name for the driver object type |
IsComplex |
TRUE = Structure variable |
Matrix |
Name of the linked reaction matrix |
3 Syntax examples for changing the XML file:
Example |
1. |
Creating a new variable during import |
<Variable ShortName='WIZ_VAR_10' DriverID='4' TypeID='2' HWObjectType='8' HWObjectName='PLC marker' IsComplex='FALSE' Matrix=''> |
|
2. |
Deleting an existing variable during import |
<Variable ShortName='WIZ_VAR_10' Delete='TRUE' DriverID='4' TypeID='2' HWObjectType='8' HWObjectName='PLC marker' IsComplex='FALSE' Matrix=''> |
If the variable existed in the zenon
project, you can delete it by using the attribute Delete. |
3. |
Renaming an existing variable during import |
<Variable ShortName='WIZ_VAR_10' Delete='TRUE' DriverID='4' TypeID='2' HWObjectType='8' HWObjectName='SPS-Merker' IsComplex='FALSE' Matrix='' NewName='Standard_1'> |
When renaming, the variable is first imported and then renamed. This means you can make changes to the variable and at the same time rename it. If there is already a variable with the new name, renaming fails. An entry in the output window informs you about this. |
|