Exemple : Fichier XML de l'affichage graphique
L'exemple de fichier XML suivant montre un affichage graphique
FactoryTalk View ME
contenant quelques objets, dont un objet texte, un objet d'affichage numérique, un objet Entrée numérique activée et un groupe contenant deux rectangles, dont un animé. Ce fichier n'affiche pas toutes les propriétés possibles de ces objets. Les objets ou propriétés qui ne sont pas répertoriés ne seront pas modifiés lors de l'importation du fichier.Vous pouvez spécifier plusieurs attributs pour un élément et disposez de plusieurs éléments.
<?xml version="1.0" encoding="UTF-8"?> <gfx xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Gfx-ME1.xsd"> <displaySettings displayType="replace" backColor="white" width="640" height="480"/> <text name="Text1" height="16" width="87" left="69" top="42" caption="Pump House 1"/> <numericDisplay name="NumericDisplay1" height="44" width="104" left="234" top="150" borderStyle="raisedInset"> <connections> <connection name="Value" expression="{[clx1]Count_Up[0]}"/> </connections> </numericDisplay> <group name="Group1" wallpaper="false"> <rectangle name="Polygon1" height="35" width="53" left="378" top="40" visible="true"/> <rectangle name="Polygon2" height="35" width="56" left="428" top="85 visible="true"/> <animations> <animateVisibility expression="system\BlinkFast" expressionTrueState="visible"/> </animations> </group> <numericInputEnable name="NumericInputEnable1" height="55" width="80" left="57" top="142" keyAssignment="F1"> <caption fontFamily="Arial" caption="Stop"/> <connections> <connection name="Value" expression="{[clx1]n7[0]}"/> </connections> </numericInputEnable> </gfx>
Fournir une réponse