Home || Zur XML Code Processor Hauptseite || Zur XML Code Processor Sample Seite || SSV Hardware Industrieterminals ||


XML Code Processor Sample: Die Setup Datei im Auslieferzustand

 

XML Code Generator: Bild in Originalgrösse

Das Beispiel zeigt unsere XML Konfigdatei im Auslieferzustand. Sie können es verwenden, um einige Grundeinstellung durchzuführen. Für eine Beschreibung der ersten Schritte - siehe unser HowTo XML XP im TRM verwenden.

Die XML DateI zum Download
(Rechte Mousetaste, Speichern unter...)

- <NewDataSet>
- <datacode>
  <Object-ID>begin</Object-ID>
  <CLR>1</CLR>
  <Text1>F1: ip</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>2</Text1-col>
  <Text2>F2: datum/uhrzeit</Text2>
  <Text2-row>2</Text2-row>
  <Text2-col>2</Text2-col>
  <Text3>F3: dio</Text3>
  <Text3-row>3</Text3-row>
  <Text3-col>2</Text3-col>
  <Text4>F4: ende</Text4>
  <Text4-row>4</Text4-row>
  <Text4-col>2</Text4-col>
  <Key1>F1</Key1>
  <Key1-next>show-ip</Key1-next>
  <Key2>F2</Key2>
  <Key2-next>show-datum/uhrzeit</Key2-next>
  <Key3>F3</Key3>
  <Key3-next>dio</Key3-next>
  <Key4>F4</Key4>
  <Key4-next>ende</Key4-next>
  <Key5>F5</Key5>
  <Key5-next>reboot</Key5-next>
  <Key6>any</Key6>
  <Key6-next>unknown-key</Key6-next>
  </datacode>
- <datacode>
  <Object-ID>show-ip</Object-ID>
  <CLR>1</CLR>
  <Text1>IP:</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>F1:zurück</Text2>
  <Text2-row>4</Text2-row>
  <Text2-col>1</Text2-col>
  <Text3>F2:ändern</Text3>
  <Text3-row>4</Text3-row>
  <Text3-col>11</Text3-col>
  <Var1>$current-ip</Var1>
  <Var1-row>1</Var1-row>
  <Var1-col>5</Var1-col>
  <Before1>get-ip $current-ip</Before1>
  <Key1>F1</Key1>
  <Key1-next>begin</Key1-next>
  <Key2>F2</Key2>
  <Key2-next>ip</Key2-next>
  </datacode>
- <datacode>
  <Object-ID>ip</Object-ID>
  <Object-next>begin</Object-next>
  <CLR>1</CLR>
  <Text1>IP:</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>F1:zurück</Text2>
  <Text2-row>4</Text2-row>
  <Text2-col>1</Text2-col>
  <Text3>F2:DHCP</Text3>
  <Text3-row>4</Text3-row>
  <Text3-col>11</Text3-col>
  <Input>___.___.___.___</Input>
  <Input-row>1</Input-row>
  <Input-col>5</Input-col>
  <Input-min>2</Input-min>
  <Input-max>12</Input-max>
  <Input-mode>N</Input-mode>
  <Key1>F1</Key1>
  <Key1-next>ip-cancel</Key1-next>
  <Key2>F2</Key2>
  <Key2-next>enable-dhcp</Key2-next>
  <After1>set-ip</After1>
  </datacode>
- <datacode>
  <Object-ID>enable-dhcp</Object-ID>
  <Object-next>show-ip</Object-next>
  <CLR>1</CLR>
  <Text1>Aktiviere DHCP...</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <After1>set-dhcp</After1>
  </datacode>
- <datacode>
  <Object-ID>ip-cancel</Object-ID>
  <Object-next>begin</Object-next>
  <Text1>Abbruch!</Text1>
  <Text1-row>2</Text1-row>
  <Text1-col>2</Text1-col>
  <Before1>system echo ip cancel >>/dev/stderr</Before1>
  <After1>system sleep 2</After1>
  </datacode>
- <datacode>
  <Object-ID>show-datum/uhrzeit</Object-ID>
  <Object-next>update-time</Object-next>
  <CLR>1</CLR>
  <Text1>Datum:</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>Zeit:</Text2>
  <Text2-row>2</Text2-row>
  <Text2-col>1</Text2-col>
  <Text3>F1:zurück</Text3>
  <Text3-row>4</Text3-row>
  <Text3-col>1</Text3-col>
  <Text4>F2:ändern</Text4>
  <Text4-row>4</Text4-row>
  <Text4-col>11</Text4-col>
  <Var1>$current-date</Var1>
  <Var1-row>1</Var1-row>
  <Var1-col>8</Var1-col>
  <Before1>get-date $current-date</Before1>
  </datacode>
- <datacode>
  <Object-ID>update-time</Object-ID>
  <Object-next>menu-datum/uhrzeit</Object-next>
  <Before1>get-date $time %H:%M:%S</Before1>
  <Var1>$time</Var1>
  <Var1-col>8</Var1-col>
  <Var1-row>2</Var1-row>
  </datacode>
- <datacode>
  <Object-ID>menu-datum/uhrzeit</Object-ID>
  <Key1>F1</Key1>
  <Key1-next>begin</Key1-next>
  <Key2>F2</Key2>
  <Key2-next>datum</Key2-next>
  <Key3>idle 1</Key3>
  <Key3-next>update-time</Key3-next>
  </datacode>
- <datacode>
  <Object-ID>datum</Object-ID>
  <Object-next>zeit</Object-next>
  <CLR>1</CLR>
  <Text1>Datum:</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>F1:zurück</Text2>
  <Text2-row>4</Text2-row>
  <Text2-col>1</Text2-col>
  <Input>__.__.__</Input>
  <Input-row>1</Input-row>
  <Input-col>8</Input-col>
  <Input-min>6</Input-min>
  <Input-max>6</Input-max>
  <Input-mode>N</Input-mode>
  <ID>$datum</ID>
  <Key1>F1</Key1>
  <Key1-next>show-datum/uhrzeit</Key1-next>
  <Key2>Return</Key2>
  <Key2-next>datum-skip</Key2-next>
  </datacode>
- <datacode>
  <Object-ID>datum-skip</Object-ID>
  <Object-next>zeit</Object-next>
  <Before1>get-date $datum</Before1>
  <Var1>$datum</Var1>
  <Var1-row>1</Var1-row>
  <Var1-col>8</Var1-col>
  </datacode>
- <datacode>
  <Object-ID>zeit</Object-ID>
  <Object-next>datum/uhrzeit-store</Object-next>
  <Text1>Zeit:</Text1>
  <Text1-row>2</Text1-row>
  <Text1-col>1</Text1-col>
  <Input>__:__</Input>
  <Input-row>2</Input-row>
  <Input-col>8</Input-col>
  <Input-min>4</Input-min>
  <Input-max>4</Input-max>
  <Input-mode>N</Input-mode>
  <ID>$zeit</ID>
  <Key1>F1</Key1>
  <Key1-next>datum</Key1-next>
  <Key2>Return</Key2>
  <Key2-next>zeit-skip</Key2-next>
  </datacode>
- <datacode>
  <Object-ID>zeit-skip</Object-ID>
  <Object-next>datum/uhrzeit-store</Object-next>
  <Before1>get-time $zeit</Before1>
  <Var1>$zeit</Var1>
  <Var1-row>2</Var1-row>
  <Var1-col>8</Var1-col>
  </datacode>
- <datacode>
  <Object-ID>datum/uhrzeit-store</Object-ID>
  <Object-next>show-datum/uhrzeit</Object-next>
  <CLR>0</CLR>
  <Text1>Setze Datum/Uhrzeit</Text1>
  <Text1-row>3</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>bitte warten...</Text2>
  <Text2-row>4</Text2-row>
  <Text2-col>1</Text2-col>
  <After1>set-date $datum</After1>
  <After2>set-time $zeit</After2>
  </datacode>
- <datacode>
  <Object-ID>dio</Object-ID>
  <CLR>1</CLR>
  <Text1>1/2: relais1 an/aus</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>1</Text1-col>
  <Text2>4/5: relais2 an/aus</Text2>
  <Text2-row>2</Text2-row>
  <Text2-col>1</Text2-col>
  <Text3>IN1=</Text3>
  <Text3-row>3</Text3-row>
  <Text3-col>1</Text3-col>
  <Text4>IN2=</Text4>
  <Text4-row>3</Text4-row>
  <Text4-col>9</Text4-col>
  <Text5>F1: zurück</Text5>
  <Text5-row>4</Text5-row>
  <Text5-col>1</Text5-col>
  <Var1>$in1</Var1>
  <Var1-row>3</Var1-row>
  <Var1-col>5</Var1-col>
  <Var2>$in2</Var2>
  <Var2-row>3</Var2-row>
  <Var2-col>13</Var2-col>
  <Before0>get-din 1 $in1</Before0>
  <Before1>get-din 2 $in2</Before1>
  <Key1>1</Key1>
  <Key1-next>dio1-on</Key1-next>
  <Key2>2</Key2>
  <Key2-next>dio1-off</Key2-next>
  <Key3>4</Key3>
  <Key3-next>dio2-on</Key3-next>
  <Key4>5</Key4>
  <Key4-next>dio2-off</Key4-next>
  <Key5>F1</Key5>
  <Key5-next>begin</Key5-next>
  </datacode>
- <datacode>
  <Object-ID>dio1-on</Object-ID>
  <Object-next>dio</Object-next>
  <Before1>set-dout 1 on</Before1>
  </datacode>
- <datacode>
  <Object-ID>dio1-off</Object-ID>
  <Object-next>dio</Object-next>
  <Before1>set-dout 1 off</Before1>
  </datacode>
- <datacode>
  <Object-ID>dio2-on</Object-ID>
  <Object-next>dio</Object-next>
  <Before1>set-dout 2 on</Before1>
  </datacode>
- <datacode>
  <Object-ID>dio2-off</Object-ID>
  <Object-next>dio</Object-next>
  <Before1>set-dout 2 off</Before1>
  </datacode>
- <datacode>
  <Object-ID>unknown-key</Object-ID>
  <Object-next>begin</Object-next>
  <CLR>1</CLR>
  <Text1>Bitte zwischen</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>3</Text1-col>
  <Text2>F1, F2, F3 und F4</Text2>
  <Text2-row>2</Text2-row>
  <Text2-col>3</Text2-col>
  <Text3>waehlen!</Text3>
  <Text3-row>3</Text3-row>
  <Text3-col>3</Text3-col>
  <Key1>any</Key1>
  <Key1-next>begin</Key1-next>
  <Key2>idle</Key2>
  <Key2-next>begin</Key2-next>
  </datacode>
- <datacode>
  <Object-ID>reboot</Object-ID>
  <Object-next>begin</Object-next>
  <CLR>1</CLR>
  <Text1>System wird gleich</Text1>
  <Text1-row>1</Text1-row>
  <Text1-col>2</Text1-col>
  <Text2>neu gestartet...</Text2>
  <Text2-row>2</Text2-row>
  <Text2-col>2</Text2-col>
  <After1>system sleep 2</After1>
  <After2>system init 6</After2>
  <After3>system sleep 999</After3>
  </datacode>
  </NewDataSet>
 


Technische Angaben auf diesen Seiten ohne Gewähr. Letzte Änderung: 01.09.2010
(c) hjw 2008 für
www.terminal-systems.de