<?xml version="1.0" encoding="utf-8"?>
<SaiaObjectTemplate VersionStruct="2.0.101" VersionContent="2.0.107" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="devconf.xsd">
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
	<!--                                                                      -->
	<!-- Defines the family and categories for the PCD3 compact series CPUs   -->
	<!--                                                                      -->
	<!-- File:    pcd3compactfamily.saiaxml                                   -->
	<!-- Author:  Régis Mettraux                                              -->
	<!--                                                                      -->
	<!-- Copyright (C) Saia-Burgess Controls AG, CH-3280 Murten, 2006-2011    -->
	<!--                                                                      -->
	<!-- REVISION HISTORY                                                     -->
	<!-- 20-Sep-07 : Regis : Correction of Symbol name (DO and AO).           -->
	<!-- 22-Nov-07 : Regis : Change Texts for DI config.                      -->
	<!-- 27-Nov-07 : Regis : Change Texts and constant for DI config (CCO).   -->
	<!-- 09-Jan-08 : Regis : Change default flag address for DO.              -->
	<!-- 11-Jan-08 : Régis : Check comments for constant symbol definition.   -->
	<!-- 22-Jul-08 : Régis : Change IO symbols tags from IO to S_IO.          -->
	<!-- 22-Oct-08 : Régis : Add 'IO' group to symbol names.                  -->
	<!-- 27-Oct-08 : Arnaud: xx7 version adaptetion.                          -->
	<!-- 24-Nov-08 : Régis : Adaptation for new version of analogue inputs.   -->
	<!-- 17-Dec-08 : Régis : Update the 'configuratorVersion' parameter in    -->
	<!--                      IO handling script.                             -->
	<!-- 13-Jan-09 : Régis : Update default analogue value and update of      -->
	<!--                      'InCntAna' with new size when updating from     -->
	<!--                      an old configuration without temperature input. -->
	<!-- 16-Jan-09 : Régis : Add media index parameter when requesting media  -->
	<!--                      address (check if media range is given).        -->
	<!-- 19-Jan-09 : Régis : Correction of address output constant for        -->
	<!--                      counter/encoder configuration.                  -->
	<!-- 11-Mar-09 : Régis : Correction on Analogue in/outpus (Maximal Wert). -->
	<!-- 26-Mar-09 : Régis : Rename IO handling constant with 'IOAccess'      -->
	<!--                      subgroup.                                       -->
	<!-- 15-Jun-09 : Régis : Update IO slot description text.                 -->
	<!-- 16-Dec-09 : Régis : Update maximum number of flags.                  -->
	<!-- 20-Jan-10 : Régis : Correction for more flags support.               -->
	<!-- 26-Feb-10 : Régis : Media mapping is enabled by default.             -->
	<!-- 21-Jul-11 : Régis : Add constant declaration for slot 0              -->
	<!--                      'IO.IOAccess.INTERRUPT_STATUS'.                 -->
	<!--                                                                      -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
	<Family name="pcd3compact">
		<Desc lang="en">PCD3 Compact Series</Desc>
		<Category name="controller">
			<Desc lang="en">Compact Programmable Logic Controller</Desc>
			<Desc lang="de">Kompakt Speicherprogrammierbare Steuerung</Desc>
			<Desc lang="fr">Automate programmable compact</Desc>
		</Category>
	</Family>
	<Family name="pcd3compact">
		<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
		<!-- Onboard                                                            -->
		<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
		<Category name="onboard">
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- Onboard analogue/digital inputs/outputs                          -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- 20 Digital inputs (slot0)                                        -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<Object name="20digitalinputs" iohandling="true">
				<Desc lang="en">20 Digital Inputs</Desc>
				<Desc lang="de">20 digitale Eingänge</Desc>
				<Desc lang="fr">20 Entrées Digitales</Desc>
				<Info lang="en">20 digital inputs with configurable counter/encoder functions, 15..30VDC, connectors 1, 2 and 4.</Info>
				<Info lang="de">20 digitale Eingänge mit konfigurbarer Zähler/Encoder Funktionen, 15..30VDC, Stecker 1, 2 und 4.</Info>
				<Info lang="fr">20 entrées digitales avec fonctions counter/encoder configurable, 15..30VDC, connecteurs 1, 2 et 4.</Info>
				<PropertyList>
					<Category name="mediamapping0">
						<Desc lang="en">						Media Mapping Digital Inputs</Desc>
						<Desc lang="de">						Media Mapping digitale Eingänge</Desc>
						<Desc lang="fr">						Media mapping entrées digitales</Desc>
						<Item name="addressinputperipheral0" type="uint" visible="true">
							<Desc lang="en">Peripheral Base Address For Inputs</Desc>
							<Desc lang="de">Basis Peripherie Index für digitale Eingänge</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique pour entrées</Desc>
							<Info lang="en">Address of digital input values in the peripheral input memory.</Info>
							<Info lang="de">Basis Peripherie Index im Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für digitale Eingänge.</Info>
							<Info lang="fr">Adresse des valeurs d'entrées digitales dans la mémoire périphérique des entrées.</Info>
							<Default>0</Default>
							<Range min="0" max="65531" />
						</Item>
						<Item name="rangeinputperipheral0" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range For Inputs</Desc>
							<Desc lang="de">Bereich eines Peripherieindex für digitale Eingänge</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique pour entrées</Desc>
							<Info lang="en">Number of bytes needs in the peripheral input memory to store to digital input values.</Info>
							<Info lang="de">Zu reservierende Bytes im Peripheriespeicher für digitale Eingänge.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs des entrées digitales dans la mémoire périphérique des entrées.</Info>
							<Default>4</Default>
						</Item>
						<Item name="enabledmediamapping0" type="stringlist">
							<Desc lang="en">Media Mapping For Inputs Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv für Eingänge</Desc>
							<Desc lang="fr">Media mapping pour entrées actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the digital inputs; a cyclic actualization of the media specified with the inputs values present in the peripheral memory.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die digitale Eingänge zu aktivieren (Prozessabbild). Wenn gewählt werden die Eingangswerte der Eingänge zyklisch (zu Beginn des ersten programmierten COB) auf die spezifizierten Medien (Flags) kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour les entrées digitales; actualisation cyclique des médias spécifiés avec les valeurs d'entrées présentes dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping0" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping For Inputs</Desc>
							<Desc lang="de">Richtung des Media Mapping für Eingänge</Desc>
							<Desc lang="fr">Media mapping direction pour entrées</Desc>
							<Info lang="en">Direction of the media mapping transfer for the digital inputs.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping für die digitale Eingänge.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping des entrées digitales.</Info>
							<Default>peripheraltomedia</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia0" type="stringlist">
							<Desc lang="en">Media Type For Inputs</Desc>
							<Desc lang="de">Medien Typ für Eingänge</Desc>
							<Desc lang="fr">Type de média pour entrées</Desc>
							<Info lang="en">Type of media used to map the 20 digital values.</Info>
							<Info lang="de">Medientyp verwendet um die digitalen Werte durch Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les 20 valeurs digitales.</Info>
							<Default>flag</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia0" type="uint" ro="true">
							<Desc lang="en">Number Of Media For Inputs</Desc>
							<Desc lang="de">Medienanzahl für Eingänge</Desc>
							<Desc lang="fr">Nombre de médias pour les entrées</Desc>
							<Info lang="en">Number of media (register or flag) used to map the 20 digital values.</Info>
							<Info lang="de">Anzahl von Medien (Register oder Flags), die  verwendet werden um die digitalen Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Nombre de médias (registre ou flag) utilisés pour contenir les 20 valeurs digitales.</Info>
							<Default>24</Default>
						</Item>
						<Item name="addressmedia0" type="text" visible="false">
							<Desc lang="en">Media Address For Inputs</Desc>
							<Desc lang="de">Basis Medien Adresse für Eingänge</Desc>
							<Desc lang="fr">Adresse des médias pour entrées</Desc>
							<Info lang="en">Address of the first mapped media (register or flag) where the digital values are stored. Each media will have an address incremented from the base address.</Info>
							<Info lang="de">Medienadresse (Flag oder Register Adresse) auf welche die digitalen Werte durch das Media Mapping kopiert werden. Die Adressen der einzelnen Flags oder Register für die Eingänge werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse de base des médias (registre ou flag) à partir de laquelle les valeurs digitales seront sauvegardées. Chaque media aura son adresse incrémentée à partir de l'adresse de base.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols0" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions</Desc>
							<Desc lang="de">Basis Symbol Definitionen</Desc>
							<Desc lang="fr">Définition du symboles de base</Desc>
							<Info lang="en">Base Symbol definitions.</Info>
							<Info lang="de">Definition der Symbolnamen der Register oder Flags, auf/von welchen die Ein/Ausgänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles de base.</Info>
							<Default>S.IO.DigitalInput</Default>
						</Item>
						<Item name="flagsymbols0" type="text" visible="false">
							<Desc lang="en">Flag Symbol Definitions For Inputs</Desc>
							<Desc lang="de">Flag Symboldefinitionen für Eingänge</Desc>
							<Desc lang="fr">Flag définition symboles pour entrées</Desc>
							<Info lang="en">Symbol definitions for the flags.</Info>
							<Info lang="de">Symboldefinitionen für Flags.</Info>
							<Info lang="fr">Définition des symboles pour les flags.</Info>
							<Default xml:space="preserve">IO.DigitalInput0	Digital input 0	S_IO	IO.DigitalInput1	Digital input 1	S_IO	IO.DigitalInput2	Digital input 2	S_IO	IO.DigitalInput3	Digital input 3	S_IO	IO.DigitalInput4	Digital input 4	S_IO	IO.DigitalInput5	Digital input 5	S_IO	IO.DigitalInput6	Digital input 6	S_IO	IO.DigitalInput7	Digital input 7	S_IO	IO.DigitalInput8	Digital input 8	S_IO	IO.DigitalInput9	Digital input 9	S_IO	IO.DigitalInput10	Digital input 10	S_IO	IO.DigitalInput11	Digital input 11	S_IO	IO.DigitalInput12	Digital input 12	S_IO	IO.DigitalInput13	Digital input 13	S_IO	IO.DigitalInput14	Digital input 14	S_IO	IO.DigitalInput15	Digital input 15	S_IO	IO.DigitalInput16	Digital input 16	S_IO	IO.DigitalInput17	Digital input 17	S_IO	IO.DigitalInput18	Digital input 18	S_IO	IO.DigitalInput19	Digital input 19	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO</Default>
						</Item>
						<Item name="flagaddress0" type="text" visible="false">
							<Desc lang="en">Flag Address Definitions For Inputs</Desc>
							<Desc lang="de">Flag Addressdefinitionen für Eingänge</Desc>
							<Desc lang="fr">Flag définition des adresses pour entrées</Desc>
							<Info lang="en">Address definitions for the flags.</Info>
							<Info lang="de">Addressdefinitionen für Flags.</Info>
							<Info lang="fr">Définition des adresses pour les flags.</Info>
							<Default xml:space="preserve">S.IO.DigitalInput + 0	1	Public	S.IO.DigitalInput + 1	1	Public	S.IO.DigitalInput + 2	1	Public	S.IO.DigitalInput + 3	1	Public	S.IO.DigitalInput + 4	1	Public	S.IO.DigitalInput + 5	1	Public	S.IO.DigitalInput + 6	1	Public	S.IO.DigitalInput + 7	1	Public	S.IO.DigitalInput + 8	1	Public	S.IO.DigitalInput + 9	1	Public	S.IO.DigitalInput + 10	1	Public	S.IO.DigitalInput + 11	1	Public	S.IO.DigitalInput + 12	1	Public	S.IO.DigitalInput + 13	1	Public	S.IO.DigitalInput + 14	1	Public	S.IO.DigitalInput + 15	1	Public	S.IO.DigitalInput + 16	1	Public	S.IO.DigitalInput + 17	1	Public	S.IO.DigitalInput + 18	1	Public	S.IO.DigitalInput + 19	1	Public		0	Public		0	Public		0	Public		0	Public</Default>
						</Item>
						<Item name="registersymbols0" type="text" visible="false">
							<Desc lang="en">Register Symbol Definitions For Inputs</Desc>
							<Desc lang="de">Register Symboldefinitionen für Eingänge</Desc>
							<Desc lang="fr">Registre définition symboles pour entrées</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Symboldefinitionen für Register.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.DigitalInput	Digital input (0 - 19)	S_IO</Default>
						</Item>
						<Item name="registeraddress0" type="text" visible="false">
							<Desc lang="en">Register Address Definitions For Inputs</Desc>
							<Desc lang="de">Register Addressdefinitionen für Eingänge</Desc>
							<Desc lang="fr">Définition des adresses pour entrées</Desc>
							<Info lang="en">Address definitions for the registers.</Info>
							<Info lang="de">Addressdefinitionen für Register.</Info>
							<Info lang="fr">Définition des adresses pour les registres.</Info>
							<Default xml:space="preserve">S.IO.DigitalInput + 0	1	Public</Default>
						</Item>
						<!--Item name="xx7mappingingcycle0" type="stringlist" visible="false">
							<Desc lang="en">Digital Inputs Included In Process Image</Desc>
							<Desc lang="de">Digitale Eingänge Eingeschlossen in Prozessabbild</Desc>
							<Desc lang="fr">Entrées digitales inclues dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<Category name="inputmode">
						<Desc lang="en">					Input Mode</Desc>
						<Desc lang="de">					Eingangsmodus</Desc>
						<Desc lang="fr">					Mode d'entrée</Desc>
						<Item name="inputmode0to2" type="stringlist" ro="false">
							<Desc lang="en">Mode For Inputs 0 To 2</Desc>
							<Desc lang="de">Modus für Eingänge 0 bis 2</Desc>
							<Desc lang="fr">Mode des entrées 0 à 2</Desc>
							<Info lang="en">Inputs 0 to 2 may be configured as standard inputs, as encoder with A, B and index signal, as counter with enable, as configurable interrupts.</Info>
							<Info lang="de">Eingänge 0 bis 2 können als Standardeingänge, als Encoder mit A, B und Indexsignal, als Zähler mit Aktivierungsignal oder als konfigurierbare Interrupts konfiguriert werden.</Info>
							<Info lang="fr">Les entrées 0 à 2 peuvent être configurées comme entrées standards, comme encodeur avec signaux A, B et indexe, comme compteur avec signal d'activation ou comme interruptions.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Standard Inputs</StringItem>
								<StringItem value="1">Counter 0 (0,1) Standard Input (2)</StringItem>
								<StringItem value="2">Encoder 0 (0,1,2)</StringItem>
								<StringItem value="3">Interrupts A and B (0,1) Standard Input (2)</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Standard Eingänge</StringItem>
								<StringItem value="1">Zähler 0 (0,1) Standard Eingang (2)</StringItem>
								<StringItem value="2">Encoder 0 (0,1,2)</StringItem>
								<StringItem value="3">Interrupts A und B (0,1) Standard Eingang (2)</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Entrées standard</StringItem>
								<StringItem value="1">Compteur 0 (0,1) Entrée standard (2)</StringItem>
								<StringItem value="2">Encodeur 0 (0,1,2)</StringItem>
								<StringItem value="3">Interruptions A et B (0,1) Entrée standard (2)</StringItem>
							</StringList>
						</Item>
						<Item name="inputmode3to5" type="stringlist" ro="false">
							<Desc lang="en">Mode For Inputs 3 To 5</Desc>
							<Desc lang="de">Modus für Eingänge 3 bis 5</Desc>
							<Desc lang="fr">Mode des entrées 3 à 5</Desc>
							<Info lang="en">Inputs 3 to 5 may be configured as standard inputs, as encoder with A, B and index signal, as counter with enable, as configurable interrupts.</Info>
							<Info lang="de">Eingänge 3 bis 5 können als Standardeingänge, als Encoder mit A, B und Indexsignal, als Zähler mit Aktivierungsignal oder als konfigurierbare Interrupts konfiguriert werden.</Info>
							<Info lang="fr">Les entrées 3 à 5 peuvent être configurées comme entrées standards, comme encodeur avec signaux A, B et indexe, comme compteur avec signal d'activation ou comme interruptions.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Standard Inputs</StringItem>
								<StringItem value="1">Counter 1 (3,4) Standard Input (5)</StringItem>
								<StringItem value="2">Encoder 1 (3,4,5)</StringItem>
								<StringItem value="3">Interrupts C and D (3,4) Standard Input (5)</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Standard Eingänge</StringItem>
								<StringItem value="1">Zähler 1 (3,4) Standard Eingang (5)</StringItem>
								<StringItem value="2">Encoder 1 (3,4,5)</StringItem>
								<StringItem value="3">Interrupts A und B (3,4) Standard Eingang</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Entrées standard</StringItem>
								<StringItem value="1">Compteur 1 (3,4) Entrée standard (5)</StringItem>
								<StringItem value="2">Encodeur 1 (3,4,5)</StringItem>
								<StringItem value="3">Interruptions A et B (3,4) Entrée standard (5)</StringItem>
							</StringList>
						</Item>
					</Category>
					<Category name="counterencoder0" visible="true">
						<Desc lang="en">				Encoder/Counter 0</Desc>
						<Desc lang="de">				Encoder/Zähler 0</Desc>
						<Desc lang="fr">				Encodeur/compteur 0</Desc>
						<Item name="enabledoutput0" type="stringlist">
							<Desc lang="en">Mode Of Digital Output 0</Desc>
							<Desc lang="de">Modus digitaler Ausgang 0</Desc>
							<Desc lang="fr">Mode de la sortie digitale 0</Desc>
							<Info lang="en">Set the digital output 0 as standard output or as counter controlled output (CCO) for counter/encoder 0.</Info>
							<Info lang="de">Den digitalen Ausgang 0 als Standardausgang oder durch den Zähler 0 kontrolliertert Ausgang (Counter Controlled Output CCO) definieren.</Info>
							<Info lang="fr">Sélectionner la sortie digitale 0 comme sortie standard ou comme sortie contrôlée par le compteur 0 (CCO).</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Standard Output</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Standard Ausgang</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Sortie standard</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
						</Item>
						<Item name="polarityoutput0" type="stringlist">
							<Desc lang="en">Digital Output 0 Polarity</Desc>
							<Desc lang="de">Polarität digitaler Ausgang 0</Desc>
							<Desc lang="fr">Polarité sortie digitale 0</Desc>
							<Info lang="en">Polarity of the output 0 when used as indicator when counter/encoder 0 reaches the compare value.</Info>
							<Info lang="de">Polarität des digitalen Ausgangs 0 (wenn er als Indikator dafür verwendet wird, dass der Zähler/Encoder 0 den Vergleichswert erreicht hat).</Info>
							<Info lang="fr">Polarité de la sortie 0 losqu'utilisée comme indicateur de dépassement de la valeur de comparaison du compteur/encodeur 0.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Active Low</StringItem>
								<StringItem value="1">Active High</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aktiv niedrig</StringItem>
								<StringItem value="1">Aktiv hoch</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Actif bas</StringItem>
								<StringItem value="1">Actif haut</StringItem>
							</StringList>
						</Item>
						<Item name="interrupt0" type="stringlist">
							<Desc lang="en">Interrupt 0</Desc>
							<Desc lang="de">Interrupt 0</Desc>
							<Desc lang="fr">Interruption 0</Desc>
							<Info lang="en">Set 'On Compare Value' to enable the interrupt 0 when the counter/encoder 0 reach the compare value.</Info>
							<Info lang="de">'Auf Vergleichswert' anwählen um den Interrupt 0 beim Erreichen des Vergleichswertes des Zählers/Encoders 0 zu aktivieren.</Info>
							<Info lang="fr">Sélectionner 'À la valeur de comparaison' pour activer l'interruption 0 lorque la valueur de comparaison du compteur/encodeur 0 est atteinte.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">On Compare Value</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Auf Vergleichswert</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">À la valeur de comparaison</StringItem>
							</StringList>
						</Item>
						<Item name="indexpolarity0" type="stringlist">
							<Desc lang="en">Index Polarity 0</Desc>
							<Desc lang="de">Indexpolarität 0</Desc>
							<Desc lang="fr">Polarité index 0</Desc>
							<Info lang="en">Select the index polarity of the encoder 0 (no meaning in counter mode).</Info>
							<Info lang="de">Indexpolarität den Encoders 0 anwählen (diese Einstellung hat keine Bedeutung im Zähler Modus).</Info>
							<Info lang="fr">Sélectionner la polarité de l'index pour l'encodeur 0 (pas de signification en mode compteur).</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Active Low</StringItem>
								<StringItem value="1">Active High</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aktiv niedrig</StringItem>
								<StringItem value="1">Aktiv hoch</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Actif bas</StringItem>
								<StringItem value="1">Actif haut</StringItem>
							</StringList>
						</Item>
						<Item name="resetvalue0" type="uint">
							<Desc lang="en">Pulse Duration 0</Desc>
							<Desc lang="de">Impulsdauer 0</Desc>
							<Desc lang="fr">Durée pulsation 0</Desc>
							<Info lang="en">Duration (number of steps) of the digital output activation after the counter/encoder 0 reaches the compare value.</Info>
							<Info lang="de">Dauer (Anzahl von Schritten) während der der digitale Ausgang aktiviert ist nachdem der Zähler/Encoder 0 den Vergleichswert erreicht hat.</Info>
							<Info lang="fr">Temps (nombre de pas) durant lequel la sortie digitale sera activée lorsque le compteur/encodeur 0 aura atteint la valeur de comparaison.</Info>
							<Default>1</Default>
							<Range min="0" max="65535" />
						</Item>
					</Category>
					<Category name="counterencoder1" visible="true">
						<Desc lang="en">			Encoder/Counter 1</Desc>
						<Desc lang="de">			Encoder/Zähler 1</Desc>
						<Desc lang="fr">			Encodeur/compteur 1</Desc>
						<Item name="enabledoutput1" type="stringlist">
							<Desc lang="en">Mode Of Digital Output 1</Desc>
							<Desc lang="de">Modus digitaler Ausgang 1</Desc>
							<Desc lang="fr">Mode de la sortie digitale 1</Desc>
							<Info lang="en">Set the digital output 1 as standard output or as counter controlled output (CCO) for counter/encoder 1.</Info>
							<Info lang="de">Den digitalen Ausgang 1 als Standardausgang oder durch den Zähler 1 kontrolliertert Ausgang (Counter Controlled Output CCO) definieren.</Info>
							<Info lang="fr">Sélectionner la sortie digitale 1 comme sortie standard ou comme sortie contrôlée par le compteur 1 (CCO : Counter Controlled Output).</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Standard Output</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Standard Ausgang</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Sortie standard</StringItem>
								<StringItem value="1">Counter Controlled Output (CCO)</StringItem>
							</StringList>
						</Item>
						<Item name="polarityoutput1" type="stringlist">
							<Desc lang="en">Digital Output 1 Polarity</Desc>
							<Desc lang="de">Polarität digitaler Ausgang 1</Desc>
							<Desc lang="fr">Polarité sortie digitale 1</Desc>
							<Info lang="en">Polarity of the output 1 when used as indicator when counter/encoder 1 reaches the compare value.</Info>
							<Info lang="de">Polarität des digitalen Ausgangs 1 (wenn er als Indikator dafür verwendet wird, dass der Zähler/Encoder 1 den Vergleichswert erreicht hat).</Info>
							<Info lang="fr">Polarité de la sortie 1 losqu'utilisée comme indicateur de dépassement de la valeur de comparaison du compteur/encodeur 1.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Active Low</StringItem>
								<StringItem value="1">Active High</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aktiv niedrig</StringItem>
								<StringItem value="1">Aktiv hoch</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Actif bas</StringItem>
								<StringItem value="1">Actif haut</StringItem>
							</StringList>
						</Item>
						<Item name="interrupt1" type="stringlist">
							<Desc lang="en">Interrupt 1</Desc>
							<Desc lang="de">Interrupt 1</Desc>
							<Desc lang="fr">Interruption 1</Desc>
							<Info lang="en">Set 'On Compare Value' to enable the interrupt 1 when the counter/encoder 1 reach the compare value.</Info>
							<Info lang="de">'Auf Vergleichswert' anwählen um den Interrupt 1 beim Erreichen des Vergleichswertes des Zählers/Encoders 1 zu aktivieren.</Info>
							<Info lang="fr">Sélectionner 'À la valeur de comparaison' pour activer l'interruption 1 lorque la valueur de comparaison du compteur/encodeur 1 est atteinte.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">On Compare Value</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Auf Vergleichswert</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">À la valeur de comparaison</StringItem>
							</StringList>
						</Item>
						<Item name="indexpolarity1" type="stringlist">
							<Desc lang="en">Index Polarity 1</Desc>
							<Desc lang="de">Indexpolarität 1</Desc>
							<Desc lang="fr">Polarité index 1</Desc>
							<Info lang="en">Select the index polarity of the encoder 1 (no meaning in counter mode).</Info>
							<Info lang="de">Indexpolarität den Encoders 1 anwählen (diese Einstellung hat keine Bedeutung im Zähler Modus).</Info>
							<Info lang="fr">Sélectionner la polarité de l'index pour l'encodeur 1 (pas de signification en mode compteur).</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Active Low</StringItem>
								<StringItem value="1">Active High</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aktiv niedrig</StringItem>
								<StringItem value="1">Aktiv hoch</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Actif bas</StringItem>
								<StringItem value="1">Actif haut</StringItem>
							</StringList>
						</Item>
						<Item name="resetvalue1" type="uint">
							<Desc lang="en">Pulse Duration 1</Desc>
							<Desc lang="de">Impulsdauer 1</Desc>
							<Desc lang="fr">Durée pulsation 1</Desc>
							<Info lang="en">Duration (number of steps) of the digital output activation after the counter/encoder 1 reaches the compare value.</Info>
							<Info lang="de">Dauer (Anzahl von Schritten) während der der digitale Ausgang aktiviert ist nachdem der Zähler/Encoder 1 den Vergleichswert erreicht hat.</Info>
							<Info lang="fr">Temps (nombre de pas) durant lequel la sortie digitale sera activée lorsque le compteur/encodeur 1 aura atteint la valeur de comparaison.</Info>
							<Default>1</Default>
							<Range min="0" max="65535" />
						</Item>
					</Category>
					<Category name="mediamapping1" visible="true">
						<Desc lang="en">		Media Mapping Counter/Encoder 0 And 1 (Input values)</Desc>
						<Desc lang="de">		Media Mapping Zähler/Encoder 0 und 1 (Eingangswerte)</Desc>
						<Desc lang="fr">		Media mapping compteur/encodeur 0 et 1 (valeur d'entrées)</Desc>
						<Item name="addressinputperipheral1" type="uint" visible="true">
							<Desc lang="en">Peripheral Address For Counters/Encoders Inputs</Desc>
							<Desc lang="de">Basis Peripherie Index für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique pour entrées compteur/encodeur</Desc>
							<Info lang="en">Address of the counter/encoder values in the peripheral input memory.</Info>
							<Info lang="de">Basis Peripherie Index im Eingangs-Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für Zähler/Encoder Eingänge.</Info>
							<Info lang="fr">Adresse des valeurs des compteur/encoder dans la mémoire périphérique des entrées.</Info>
							<Default>1040</Default>
							<Range min="0" max="65521" />
						</Item>
						<Item name="rangeinputperipheral1" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Bereich eines Peripherieindex für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique pour entrées compteur/encodeur 1</Desc>
							<Info lang="en">Number of bytes needs in the peripheral input memory to store the counter/encoder value.</Info>
							<Info lang="de">Zu reservierende Bytes im Eingangs-Peripheriespeicher für Zähler/Encoder Werte.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs du compteur/encoder dans la mémoire périférique des entrées.</Info>
							<Default>14</Default>
						</Item>
						<Item name="enabledmediamapping1" type="stringlist">
							<Desc lang="en">Media Mapping For Counter/Encoder Inputs Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Media mapping pour entrées compteur/encodeur actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the counter/encoder 0 and 1; a cyclic actualization of the media specified with the inputs values present in the peripheral memory.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die Zähler/Encoder 0 und 1 zu aktivieren (Prozessabbild). Wenn gewählt werden die Eingangswerte der Eingänge zyklisch (zu Beginn des ersten programmierten COB) auf die spezifizierten Medien kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour les compteur/encodeur 0 et 1; actualisation cyclique des médias spécifiés avec les valeurs d'entrées présentes dans la mémoire périphérique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping1" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Richtung des Media Mapping für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Media mapping direction pour entrées compteur/encodeur</Desc>
							<Info lang="en">Direction of the media mapping transfer for the counter/encoder.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping für die Zähler/Encoder.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping du compteur/encodeur.</Info>
							<Default>peripheraltomedia</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia1" type="stringlist" ro="true">
							<Desc lang="en">Media Type For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Medien Typ für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Type de média pour entrées compteur/encodeur</Desc>
							<Info lang="en">Type of media used to map the counter/encodeur data.</Info>
							<Info lang="de">Medientyp verwendet um die Werte des Zählers/Encoders durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les données des compteur/encodeur.</Info>
							<Default>register</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia1" type="uint" ro="true">
							<Desc lang="en">Number Of Media For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Medienanzahl für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Nombre de médias pour entrées compteur/encodeur</Desc>
							<Info lang="en">Number of media (register) used to map the data of the counter/encoder.</Info>
							<Info lang="de">Anzahl von Medien (Register), die  verwendet werden um die Werte der Zähler/Encoder durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Nombre de médias (registre) utilisés pour contenir les données des compteurs/encodeurs.</Info>
							<Default>2</Default>
						</Item>
						<Item name="addressmedia1" type="text" visible="false">
							<Desc lang="en">Media Address For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Basis Medien Adresse für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Adresse du média pour entrées compteur/encodeur</Desc>
							<Info lang="en">Address of the first mapped media (register) where the counter/encoder data are stored. Each media will have an address incremented from the base address.</Info>
							<Info lang="de">Medienadresse (Register Adresse) auf welche die Zähler/Encoder Werte durch das Media Mapping kopiert werden. Die Adressen der einzelnen Register für die Werte werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse du média (register) à partir de laquelle les données du compteur/encodeur seront sauvegardées. Chaque media aura son adresse incrémentée à partir de l'adresse de base.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols1" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions </Desc>
							<Desc lang="de">Basis Symbol Definitionen </Desc>
							<Desc lang="fr">Définition du symboles de base </Desc>
							<Info lang="en">Base Symbol definitions for the register.</Info>
							<Info lang="de">Basisdefinition der Symbolnamen der Register, auf welche die Eingänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles de base pour les registres.</Info>
							<Default>S.IO.CounterEncoder</Default>
						</Item>
						<Item name="registersymbols1" type="text" visible="false">
							<Desc lang="en">Symbol Definitions For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Symboldefinitionen für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Définition symboles pour entrées compteur/encodeur</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Symboldefinitionen für die Register.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.CounterEncoder0	Value of Counter/encorder 0	S_IO	IO.CounterEncoder1	Value of Counter/encorder 1	S_IO</Default>
						</Item>
						<Item name="registeraddress1" type="text" visible="false">
							<Desc lang="en">Symbol Address Definitions For Counter/Encoder Inputs</Desc>
							<Desc lang="de">Symboladdressdefinitionen für Zähler/Encoder Eingänge</Desc>
							<Desc lang="fr">Définition adresses symboles pour entrées compteur/encodeur</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Symboldefinitionen für die Register.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">S.IO.CounterEncoder + 0	1	Public	S.IO.CounterEncoder + 1	1	Public</Default>
						</Item>
						<!--Item name="xx7mappingingcycle1" type="stringlist" visible="false">
							<Desc lang="en">Counter/Encoder Included In Process Image</Desc>
							<Desc lang="de">Zähler/Encoder Eingeschlossen in Prozessabbild</Desc>
							<Desc lang="fr">Compteur/encodeur inclus dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<Category name="mediamapping2" visible="true">
						<Desc lang="en">	Media Mapping Configuration Counter/Encoder 0 And 1</Desc>
						<Desc lang="de">	Media Mapping Konfiguration für Zähler/Encoder 0 und 1</Desc>
						<Desc lang="fr">	Media mapping configuration compteur/encodeur 0 et 1</Desc>
						<Item name="addressoutputperipheral2" type="uint" visible="true">
							<Desc lang="en">Peripheral Address For Counters/Encoders Configuration</Desc>
							<Desc lang="de">Peripherie Index für die Konfiguration der Zähler/Encoder</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique pour configuration compteur/encodeur</Desc>
							<Info lang="en">Address of the counter/encoder configuration values in the peripheral output memory.</Info>
							<Info lang="de">Basis Peripherie Index im Ausgängs-Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für die Konfiguration der Zähler/Encoder.</Info>
							<Info lang="fr">Adresse des valeurs de configuration pour le compteur/encodeur dans la mémoire périphérique des sorties.</Info>
							<Default>1030</Default>
							<Range min="0" max="65533" />
						</Item>
						<Item name="rangeoutputperipheral2" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range For Counter/Encoder Configuration</Desc>
							<Desc lang="de">Bereich eines Peripherieindex für die Zähler/Encoder Konfiguration</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique pour configuration compteur/encodeur</Desc>
							<Info lang="en">Number of bytes needs in the peripheral output memory to store the counter/encoder values.</Info>
							<Info lang="de">Zu reservierende Bytes im Ausgangs-Peripheriespeicher für die Konfiguration der Zähler/Encoder.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs des compteur/encoder dans la mémoire périphérique des sorties.</Info>
							<Default>22</Default>
						</Item>
						<Item name="enabledmediamapping2" type="stringlist" ro="true" visible="true">
							<Desc lang="en">Media Mapping Counter/Encoder Configuration Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv für Zähler/Encoder Konfiguration</Desc>
							<Desc lang="fr">Media mapping configuration compteur/encodeur actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the configuration of counter/encoder 0 and 1; a cyclic actualization of the outputs values present in the peripheral memory with the specified media values.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die Konfiguration der Zähler/Encoder 0 und 1 zu aktivieren (Prozessabbild). Wenn gewählt werden die Werte der spezifizierten Medien zyklisch (zu Beginn des ersten programmierten COB) für die Konfiguration der Zähler/Encoder verwendet.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour la configurtion compteur/encodeur 0 et 1; actualisation cyclique des valeurs de sorties présentes dans la mémoire périphérique par la valeur des médias spécifiés.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping2" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping For Counter/Encoder Configuration</Desc>
							<Desc lang="de">Richtung des Media Mapping für Zähler/Encoder Konfiguration</Desc>
							<Desc lang="fr">Media mapping direction pour configuration compteur/encodeur</Desc>
							<Info lang="en">Direction of the media mapping transfer for configuration of counter/encoder.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping für die Zähler/Encoder Konfiguration.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping de la configuration compteur/encodeur.</Info>
							<Default>mediatoperipheral</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<!--Item name="xx7mappingingcycle2" type="stringlist" visible="false">
							<Desc lang="en">Configuration Counter/Encoder Included In Process Image</Desc>
							<Desc lang="de">Zähler/Encoder Konfiguration in Prozessabbild</Desc>
							<Desc lang="fr">Configuration Compteur/encodeur inclus dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<Category name="interrupts" visible="true">
						<Desc lang="en">Interrupts</Desc>
						<Desc lang="de">Interrupts</Desc>
						<Desc lang="fr">Interruptions</Desc>
						<Item name="interruptenabled" type="stringlist" visible="false">
							<Desc lang="en">Interrupts Enabled</Desc>
							<Desc lang="de">Interrrupts aktiv</Desc>
							<Desc lang="fr">Interruptions actives</Desc>
							<Info lang="en">Select 'Yes' to enable the interrupt functions.</Info>
							<Info lang="de">Auf '0' setzen, um die Interrupt Funktion zu sperren; ein Wert zwischen '32 ' und '64 ' setzen, um den XOB Interrupt zu aktivieren.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer la fonction d'interruptions.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="interruptxob" type="uint" ro="true">
							<Desc lang="en">Interrupt XOB Number</Desc>
							<Desc lang="de">Nummer des Interrupt XOB</Desc>
							<Desc lang="fr">Numéro XOB interruption</Desc>
							<Info lang="en">Number of the XOB that is called in case of interrupt.</Info>
							<Info lang="de">Nummer des XOBs (Exception Organization Block), der bei einem Interrupt aufgerufen und abgearbeitet wird.</Info>
							<Info lang="fr">Numéro de l'XOB appelé en cas d'interruption.</Info>
							<Default>35</Default>
							<Range min="32" max="64" />
						</Item>
						<Item name="interruptxobinfo" type="uint" ro="true">
							<Desc lang="en">Interrupt XOB Start Info</Desc>
							<Desc lang="de">Startinformation des Interrupt XOB</Desc>
							<Desc lang="fr">Information de démarrage XOB interruption</Desc>
							<Info lang="en">Information, which can be read in the start parameter of the configured interrupt XOB.</Info>
							<Info lang="de">Information, die im Startparameter des konfigurierten Interrupt XOB's gelesen werden kann.</Info>
							<Info lang="fr">Information qui peut être lue comme paramètre de démarrage lors d'un appel de l'XOB.</Info>
							<Default>0</Default>
							<Range min="0" max="65535" />
						</Item>
						<Item name="interrupta" type="stringlist" ro="true">
							<Desc lang="en">Interrupt A</Desc>
							<Desc lang="de">Interrupt A</Desc>
							<Desc lang="fr">Interruption A</Desc>
							<Info lang="en">Select the type of the interrupt A. If the 'Mode for Inputs 0 to 2' is set to 'Interrupts A and B' and the 'Interrupt A' is set to 'Disabled', the interrupt can be activated by user program command.</Info>
							<Info lang="de">Typ des Interrupts A anwählen. Wenn 'Modus für Eingänge 0 bis 2' als 'Interrupts A und B' und der 'Interrupt A' als 'Nicht aktiv' eingestellt ist, kann der Interrupt durch einen Befehl im Benutzerprogramm aktiviert werden.</Info>
							<Info lang="fr">Sélectionner le type pour l'interruption A. Si le 'Mode des entrées 0 à 2' est configuré comme 'Interrupts A and B' et que l'Interruption A' est configurée comme 'Pas active', l'interruption peut être activée par une commande dans le programme utilisateur.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Disabled</StringItem>
								<StringItem value="1">On rising edge</StringItem>
								<StringItem value="2">On falling edge</StringItem>
								<StringItem value="3">On rising and falling edge</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nicht aktiv</StringItem>
								<StringItem value="1">Auf steigender Flanke</StringItem>
								<StringItem value="2">Auf fallender Flanke</StringItem>
								<StringItem value="3">Auf steigender und fallender Flanke</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas activée</StringItem>
								<StringItem value="1">Sur flanc montant</StringItem>
								<StringItem value="2">Sur flanc descendant</StringItem>
								<StringItem value="3">Sur flanc montant et descendant</StringItem>
							</StringList>
						</Item>
						<Item name="interruptb" type="stringlist" ro="true">
							<Desc lang="en">Interrupt B</Desc>
							<Desc lang="de">Interrupt B</Desc>
							<Desc lang="fr">Interruption B</Desc>
							<Info lang="en">Select the type of the interrupt B. If the 'Mode for Inputs 0 to 2' is set to 'Interrupts A and B' and the 'Interrupt B' is set to 'Disabled', the interrupt can be activated by user program command.</Info>
							<Info lang="de">Typ des Interrupts B anwählen. Wenn 'Modus für Eingänge 0 bis 2' als 'Interrupts A und B' und der 'Interrupt B' als 'Nicht aktiv' eingestellt ist, kann der Interrupt durch einen Befehl im Benutzerprogramm aktiviert werden.</Info>
							<Info lang="fr">Sélectionner le type pour l'interruption B. Si le 'Mode des entrées 0 à 2' est configuré comme 'Interrupts A and B' et que l'Interruption B' est configurée comme 'Pas active', l'interruption peut être activée par une commande dans le programme utilisateur.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Disabled</StringItem>
								<StringItem value="1">On rising edge</StringItem>
								<StringItem value="2">On falling edge</StringItem>
								<StringItem value="3">On rising and falling edge</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nicht aktiv</StringItem>
								<StringItem value="1">Auf steigender Flanke</StringItem>
								<StringItem value="2">Auf fallender Flanke</StringItem>
								<StringItem value="3">Auf steigender und fallender Flanke</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas activée</StringItem>
								<StringItem value="1">Sur flanc montant</StringItem>
								<StringItem value="2">Sur flanc descendant</StringItem>
								<StringItem value="3">Sur flanc montant et descendant</StringItem>
							</StringList>
						</Item>
						<Item name="interruptc" type="stringlist" ro="true">
							<Desc lang="en">Interrupt C</Desc>
							<Desc lang="de">Interrupt C</Desc>
							<Desc lang="fr">Interruption C</Desc>
							<Info lang="en">Select the type of the interrupt C. If the 'Mode for Inputs 3 to 5' is set to 'Interrupts C and D' and the 'Interrupt C' is set to 'Disabled', the interrupt can be activated by user program command.</Info>
							<Info lang="de">Typ des Interrupts C anwählen. Wenn 'Modus für Eingänge 3 bis 5' als 'Interrupts C und D' und der 'Interrupt C' als 'Nicht aktiv' eingestellt ist, kann der Interrupt durch einen Befehl im Benutzerprogramm aktiviert werden.</Info>
							<Info lang="fr">Sélectionner le type pour l'interruption C. Si le 'Mode des entrées 3 à 5' est configuré comme 'Interrupts C and D' et que l'Interruption C' est configurée comme 'Pas active', l'interruption peut être activée par une commande dans le programme utilisateur.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Disabled</StringItem>
								<StringItem value="1">On rising edge</StringItem>
								<StringItem value="2">On falling edge</StringItem>
								<StringItem value="3">On rising and falling edge</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nicht aktiv</StringItem>
								<StringItem value="1">Auf steigender Flanke</StringItem>
								<StringItem value="2">Auf fallender Flanke</StringItem>
								<StringItem value="3">Auf steigender und fallender Flanke</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas activée</StringItem>
								<StringItem value="1">Sur flanc montant</StringItem>
								<StringItem value="2">Sur flanc descendant</StringItem>
								<StringItem value="3">Sur flanc montant et descendant</StringItem>
							</StringList>
						</Item>
						<Item name="interruptd" type="stringlist" ro="true">
							<Desc lang="en">Interrupt D</Desc>
							<Desc lang="de">Interrupt D</Desc>
							<Desc lang="fr">Interruption D</Desc>
							<Info lang="en">Select the type of the interrupt D. If the 'Mode for Inputs 3 to 5' is set to 'Interrupts C and D' and the 'Interrupt D' is set to 'Disabled', the interrupt can be activated by user program command.</Info>
							<Info lang="de">Typ des Interrupts D anwählen. Wenn 'Modus für Eingänge 3 bis 5' als 'Interrupts C und D' und der 'Interrupt D' als 'Nicht aktiv' eingestellt ist, kann der Interrupt durch einen Befehl im Benutzerprogramm aktiviert werden.</Info>
							<Info lang="fr">Sélectionner le type pour l'interruption D. Si le 'Mode des entrées 3 à 5' est configuré comme 'Interrupts C and D' et que l'Interruption D' est configurée comme 'Pas active', l'interruption peut être activée par une commande dans le programme utilisateur.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Disabled</StringItem>
								<StringItem value="1">On rising edge</StringItem>
								<StringItem value="2">On falling edge</StringItem>
								<StringItem value="3">On rising and falling edge</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Keine Interrupt</StringItem>
								<StringItem value="1">Auf steigender Flanke</StringItem>
								<StringItem value="2">Auf fallender Flanke</StringItem>
								<StringItem value="3">Auf steigender und fallender Flanke</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas activée</StringItem>
								<StringItem value="1">Sur flanc montant</StringItem>
								<StringItem value="2">Sur flanc descendant</StringItem>
								<StringItem value="3">Sur flanc montant et descendant</StringItem>
							</StringList>
						</Item>
					</Category>
					<!--Called when a property changes-->
					<PropertyNotificationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty("this", "this", "system", "xx7plc") )
							{
								// CLASSIC

								// Get process image and media mapping status
								bool bAutoProcessImage =
									DevTool.GetStringProperty( "this", "this", "iohandling", "peripheraladdressdefinition" ) == "auto";
								bool bMediaMappingdi = PropTool.GetPropertyValueString( "enabledmediamapping0" ) != "0";
								bool bMediaMappingce = PropTool.GetPropertyValueString( "enabledmediamapping1" ) != "0";

								List<String> lModifiedPropertiesName = new List<String>();
								lModifiedPropertiesName.Add( sModifiedPropertyName );

								// Adjust the process image address
								if ( bAutoProcessImage )
								{
									int iAddressPeripheralDI = PropTool.GetPropertyValueInt("addressinputperipheral0");
									int iRangePeripheralDI = PropTool.GetPropertyValueInt("rangeinputperipheral0");
									int iAddressPeripheralCE = PropTool.GetPropertyValueInt("addressinputperipheral1");
									int iRangePeripheralCE = PropTool.GetPropertyValueInt("rangeinputperipheral1");
									// Media mapping digital inputs ?
									if ((bMediaMappingdi && bMediaMappingce)
										|| (!bMediaMappingdi && !bMediaMappingce))
										DevTool.GetMemoryImageAddresses( sCurrentSlotFullPath, ref iAddressPeripheralDI, iRangePeripheralDI, ref iAddressPeripheralCE, iRangePeripheralCE, true, bMediaMappingce, 1024, 65534 );
									else
									{
										iAddressPeripheralDI = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheralDI, iRangePeripheralDI, true, bMediaMappingdi, 1024, 65534 );
										iAddressPeripheralCE = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheralCE, iRangePeripheralCE, true, bMediaMappingce, 1024, 65534 );
									}
									bPropertyModified |= PropTool.SetPropertyValueString("addressinputperipheral0", iAddressPeripheralDI.ToString());
									bPropertyModified |= PropTool.SetPropertyValueString("addressinputperipheral1", iAddressPeripheralCE.ToString());

									// Set default process image addresses
									int iAddressPeripheralCEOut = PropTool.GetPropertyValueInt("addressoutputperipheral2");
									int iRangePeripheralCEOut = PropTool.GetPropertyValueInt("rangeoutputperipheral2");
									iAddressPeripheralCEOut = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheralCEOut, iRangePeripheralCEOut, false, false, 1024, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString("addressoutputperipheral2", iAddressPeripheralCEOut.ToString());
								}

								// Adjust visibility of process image parameters
								PropTool.SetVisibleProperty( "addressinputperipheral0", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeinputperipheral0", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "addressinputperipheral1", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeinputperipheral1", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "addressoutputperipheral2", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeoutputperipheral2", !bAutoProcessImage );

								// Media mapping digital inputs
								PropTool.SetReadOnlyProperty("typemedia0", !bMediaMappingdi);
//								PropTool.SetReadOnlyProperty("addressmedia0", !bMediaMappingdi);

								// Adjust the number of media and symbols for digital inputs
								bool bDigitalInputsMappedOnFlags = PropTool.GetPropertyValueString("typemedia0") == "flag";
								if (bDigitalInputsMappedOnFlags)
								{
									bPropertyModified |= PropTool.SetPropertyValueString("numbermedia0", "24");
//                  PropTool.SetMaxRange("addressmedia0", 14311);
									PropTool.SetReadOnlyProperty("flagsymbols0", !bMediaMappingdi);
									PropTool.SetReadOnlyProperty("registersymbols0", true);
								}
								else	// Register
								{
									bPropertyModified |= PropTool.SetPropertyValueString("numbermedia0", "1");
//                  PropTool.SetMaxRange("addressmedia0", 16383);
									PropTool.SetReadOnlyProperty("registersymbols0", !bMediaMappingdi);
									PropTool.SetReadOnlyProperty("flagsymbols0", true);
								}

								// Flag
								bool bEnabledInterrupt = false;

								// Counter/encoder 0
								bool bEnabledMediaMappingce = false;
								int iInputMode0 = PropTool.GetPropertyValueInt( "inputmode0to2" );
								// Standard inputs or interrupts ?
								if ( ( iInputMode0 == 0 ) || ( iInputMode0 == 3 ) )
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder0", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupt0", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity0", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "resetvalue0", "1" );
									// Enabled interrupt
									bEnabledInterrupt |= iInputMode0 == 3;
								}
								else  // Counter or encoder
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder0", false );
									bEnabledMediaMappingce = true;
									// Encoder ?
									if ( iInputMode0 == 2 )
										PropTool.SetReadOnlyProperty( "indexpolarity0", false );
									else  // Counter
									{
										// Index polarity : no meaning in counter mode
										PropTool.SetReadOnlyProperty( "indexpolarity0", true );
										bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity0", "0" );
									}
									// Enabled interrupt
									bEnabledInterrupt |= PropTool.GetPropertyValueInt( "interrupt0" ) == 1;
								}
								// Polarity output 0
								string sOutput0Conf = PropTool.GetPropertyValueString( "enabledoutput0" );
								// Threshold indicator ?
								if ( sOutput0Conf == "1" )
								{
									PropTool.SetReadOnlyProperty( "polarityoutput0", false );
									PropTool.SetReadOnlyProperty( "resetvalue0", false );
								}
								else // Standard output
								{
									PropTool.SetReadOnlyProperty( "polarityoutput0", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "polarityoutput0", "0" );
									PropTool.SetReadOnlyProperty( "resetvalue0", true );
								}
								// Counter/encoder 1
								int iInputMode1 = PropTool.GetPropertyValueInt( "inputmode3to5" );
								if ( ( iInputMode1 == 0 ) || ( iInputMode1 == 3 ) )
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder1", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupt1", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity1", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "resetvalue1", "1" );
									// Enabled interrupt
									bEnabledInterrupt |= iInputMode1 == 3;
								}
								else
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder1", false );
									bEnabledMediaMappingce = true;
									// Encoder ?
									if ( iInputMode1 == 2 )
										PropTool.SetReadOnlyProperty( "indexpolarity1", false );
									else  // Counter
									{
										// Index polarity : no meaning in counter mode
										PropTool.SetReadOnlyProperty( "indexpolarity1", true );
										bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity1", "0" );
									}
									// Enabled interrupt
									bEnabledInterrupt |= PropTool.GetPropertyValueInt( "interrupt1" ) == 1;
								}
								// Polarity output 1
								string sOutput1Conf = PropTool.GetPropertyValueString( "enabledoutput1" );
								// Threshold indicator ?
								if ( sOutput1Conf == "1" )
									PropTool.SetReadOnlyProperty( "polarityoutput1", false );
								else // Standard output
								{
									PropTool.SetReadOnlyProperty( "polarityoutput1", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "polarityoutput1", "0" );
								}

								// Media mapping Counter/encoder 0 and 1
								if ( bEnabledMediaMappingce )
								{
									PropTool.SetReadOnlyPropertyCategory( "mediamapping1", false );
									PropTool.SetReadOnlyProperty("addressmedia1", !bMediaMappingce );
									PropTool.SetReadOnlyProperty("registersymbols1", !bMediaMappingce );
								}
								else
								{
									PropTool.SetReadOnlyPropertyCategory("mediamapping1", true );
									if ( PropTool.SetPropertyValueString( "enabledmediamapping1", "0" ) )
									{
										bPropertyModified = true;
										if ( !lModifiedPropertiesName.Contains("enabledmediamapping1") ) {
											lModifiedPropertiesName.Add( "enabledmediamapping1" );
										}
									}
								}

								// Interrupt configuration
								bPropertyModified |= PropTool.SetPropertyValueString( "interruptenabled", bEnabledInterrupt ? "1" : "0" );
								PropTool.SetReadOnlyProperty( "interruptxob", !bEnabledInterrupt );
								PropTool.SetReadOnlyProperty( "interruptxobinfo", !bEnabledInterrupt );
								if ( ( bEnabledInterrupt ) && ( iInputMode0 == 3 ) )
								{
									PropTool.SetReadOnlyProperty( "interrupta", false );
									PropTool.SetReadOnlyProperty( "interruptb", false );
								}
								else
								{
									PropTool.SetReadOnlyProperty( "interrupta", true );
									PropTool.SetReadOnlyProperty( "interruptb", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupta", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptb", "0" );
								}
								if ( ( bEnabledInterrupt ) && ( iInputMode1 == 3 ) )
								{
									PropTool.SetReadOnlyProperty( "interruptc", false );
									PropTool.SetReadOnlyProperty( "interruptd", false );
								}
								else
								{
									PropTool.SetReadOnlyProperty( "interruptc", true );
									PropTool.SetReadOnlyProperty( "interruptd", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptc", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptd", "0" );
								}

								// Send event
								foreach ( String sPropertyName in lModifiedPropertiesName ) {
									switch ( sPropertyName ) {
									case "enabledmediamapping0":
										PropTool.PropToolEventArgs propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
										propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
										propToolEventArgs.value = PropTool.GetPropertyValueBool( sPropertyName );
										try {
											PropTool.OnMediaMappingEnableChange( propToolEventArgs );
										} catch ( Exception e ) {
											throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange()", e );
										}
										break;

									case "typemedia0":
										propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
										propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
										propToolEventArgs.value = PropTool.GetPropertyValueString( sPropertyName );
										try {
											PropTool.OnTypeMediaChange( propToolEventArgs );
										} catch ( Exception e ) {
											throw new Exception( "Error durring PropTool.OnTypeMediaChange()", e );
										}
										break;

									case "enabledmediamapping1":
										propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
										propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
										propToolEventArgs.value = PropTool.GetPropertyValueBool( sPropertyName );
										try {
											PropTool.OnMediaMappingEnableChange( propToolEventArgs );
										} catch ( Exception e ) {
											throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange()", e );
										}
										break;
									}
								}

							}
							else
							{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse(DevTool.GetStringProperty("this", "this", "iohandling", "xx7cycleloop"));

								PropTool.SetVisibleProperty( "rangeinputperipheral0", false);
								PropTool.SetVisibleProperty( "enabledmediamapping0", false);
								PropTool.SetVisibleProperty( "typemedia0", false);
								PropTool.SetVisibleProperty( "addressmedia0", false);
								PropTool.SetVisibleProperty( "numbermedia0", false);
								PropTool.SetVisibleProperty( "flagsymbols0", false);
								PropTool.SetVisibleProperty( "registersymbols0", false);
								//PropTool.SetVisibleProperty( "xx7mappingingcycle0", true);

								PropTool.SetVisibleProperty( "rangeinputperipheral1", false);
								PropTool.SetVisibleProperty( "enabledmediamapping1", false);
								PropTool.SetVisibleProperty( "typemedia1", false);
								PropTool.SetVisibleProperty( "addressmedia1", false);
								PropTool.SetVisibleProperty( "numbermedia1", false);
								PropTool.SetVisibleProperty( "registersymbols1", false);
								//PropTool.SetVisibleProperty( "xx7mappingingcycle1", true);

								PropTool.SetVisibleProperty( "rangeoutputperipheral2", false);
								PropTool.SetVisibleProperty( "enabledmediamapping2", false);
								//PropTool.SetVisibleProperty( "xx7mappingingcycle2", true);

								PropTool.SetPropertyDefaultValue( "addressinputperipheral0", "0"); // range 4
								//PropTool.SetPropertyValueString( "enabledmediamapping0", PropTool.GetPropertyValueString("xx7mappingingcycle0"));
								PropTool.SetPropertyDefaultValue( "addressinputperipheral1", "16"); // range 14
								//PropTool.SetPropertyValueString( "enabledmediamapping1", PropTool.GetPropertyValueString("xx7mappingingcycle1"));
								PropTool.SetPropertyDefaultValue( "addressoutputperipheral2", "6"); // range 22
								//PropTool.SetPropertyValueString( "enabledmediamapping2", PropTool.GetPropertyValueString("xx7mappingingcycle2"));

								// Adjust the process image address
								int iAddressPeripheral = PropTool.GetPropertyValueInt("addressinputperipheral0");
								if ( iAddressPeripheral == 1024 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressinputperipheral0", false );
									iAddressPeripheral = PropTool.GetPropertyValueInt("addressinputperipheral0");
								}
								int iRangePeripheral = PropTool.GetPropertyValueInt("rangeinputperipheral0");
								int iAddressPeripheral1 = PropTool.GetPropertyValueInt("addressinputperipheral1");
								if ( iAddressPeripheral1 == 1040 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressinputperipheral1", false );
									iAddressPeripheral1 = PropTool.GetPropertyValueInt("addressinputperipheral1");
								}
								int iRangePeripheral1 = PropTool.GetPropertyValueInt("rangeinputperipheral1");

								//bool iXX7incycleloop = PropTool.GetPropertyValueString("xx7mappingingcycle0") == "1";
								bool iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );
								//bool iXX7incycleloop1 = PropTool.GetPropertyValueString("xx7mappingingcycle1") == "1";
								bool iXX7incycleloop1 = ( iAddressPeripheral1 < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping1", iXX7incycleloop1 ? "1" : "0" );

								if ( !( iXX7incycleloop ^ iXX7incycleloop1 ) )
								{
									DevTool.GetMemoryImageAddresses( sCurrentSlotFullPath, ref iAddressPeripheral, iRangePeripheral, ref iAddressPeripheral1, iRangePeripheral1, true, iXX7incycleloop, iXX7cycleAdrThreshold, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral0", iAddressPeripheral.ToString() );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral1", iAddressPeripheral1.ToString() );
								} else {
									// Digital inputs
									iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, true, iXX7incycleloop, iXX7cycleAdrThreshold, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral0", iAddressPeripheral.ToString() );
									// Analogue inputs
									iAddressPeripheral1 = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral1, iRangePeripheral1, true, iXX7incycleloop1, iXX7cycleAdrThreshold, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral1", iAddressPeripheral1.ToString() );
								}
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral1 < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping1", iXX7incycleloop ? "1" : "0" );

								iAddressPeripheral = PropTool.GetPropertyValueInt("addressoutputperipheral2");
								if ( iAddressPeripheral == 1030 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressoutputperipheral2", false );
									iAddressPeripheral = PropTool.GetPropertyValueInt("addressoutputperipheral2");
								}
								iRangePeripheral = PropTool.GetPropertyValueInt("rangeoutputperipheral2");

								//iXX7incycleloop = PropTool.GetPropertyValueString("xx7mappingingcycle2") == "1";
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping2", iXX7incycleloop ? "1" : "0" );

								iAddressPeripheral = DevTool.GetMemoryImageAddress(sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, false, iXX7incycleloop, iXX7cycleAdrThreshold, 65534);
								bPropertyModified |= PropTool.SetPropertyValueString("addressoutputperipheral2", iAddressPeripheral.ToString());
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping2", iXX7incycleloop ? "1" : "0" );

								// Adapte the XOB Value to the xx7 spec
								if ( PropTool.GetPropertyValueInt("interruptxob") < 40 ) {
									PropTool.SetMinRange( "interruptxob", 40 );
									PropTool.SetMaxRange( "interruptxob", 47 );
									PropTool.SetPropertyDefaultValue( "interruptxob", "40" );
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "interruptxob", false );
								}

								// Flag
								bool bEnabledInterrupt = false;

								// Counter/encoder 0
								int iInputMode0 = PropTool.GetPropertyValueInt( "inputmode0to2" );
								// Standard inputs or interrupts ?
								if ( ( iInputMode0 == 0 ) || ( iInputMode0 == 3 ) )
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder0", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupt0", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity0", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "resetvalue0", "1" );
									// Enabled interrupt
									bEnabledInterrupt |= iInputMode0 == 3;
								}
								else  // Counter or encoder
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder0", false );
									// Encoder ?
									if ( iInputMode0 == 2 )
										PropTool.SetReadOnlyProperty( "indexpolarity0", false );
									else  // Counter
									{
										// Index polarity : no meaning in counter mode
										PropTool.SetReadOnlyProperty( "indexpolarity0", true );
										bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity0", "0" );
									}
									// Enabled interrupt
									bEnabledInterrupt |= PropTool.GetPropertyValueInt( "interrupt0" ) == 1;
								}
								// Polarity output 0
								string sOutput0Conf = PropTool.GetPropertyValueString( "enabledoutput0" );
								// Threshold indicator ?
								if ( sOutput0Conf == "1" )
								{
									PropTool.SetReadOnlyProperty( "polarityoutput0", false );
									PropTool.SetReadOnlyProperty( "resetvalue0", false );
								}
								else // Standard output
								{
									PropTool.SetReadOnlyProperty( "polarityoutput0", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "polarityoutput0", "0" );
									PropTool.SetReadOnlyProperty( "resetvalue0", true );
								}

								// Counter/encoder 1
								int iInputMode1 = PropTool.GetPropertyValueInt( "inputmode3to5" );
								if ( ( iInputMode1 == 0 ) || ( iInputMode1 == 3 ) )
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder1", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupt1", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity1", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "resetvalue1", "1" );
									// Enabled interrupt
									bEnabledInterrupt |= (iInputMode1 == 3);
								}
								else
								{
									PropTool.SetReadOnlyPropertyCategory( "counterencoder1", false );
									// Encoder ?
									if ( iInputMode1 == 2 )
										PropTool.SetReadOnlyProperty( "indexpolarity1", false );
									else  // Counter
									{
										// Index polarity : no meaning in counter mode
										PropTool.SetReadOnlyProperty( "indexpolarity1", true );
										bPropertyModified |= PropTool.SetPropertyValueString( "indexpolarity1", "0" );
									}
									// Enabled interrupt
									bEnabledInterrupt |= PropTool.GetPropertyValueInt( "interrupt1" ) == 1;
								}
								// Polarity output 1
								string sOutput1Conf = PropTool.GetPropertyValueString( "enabledoutput1" );
								// Threshold indicator ?
								if ( sOutput1Conf == "1" ) {
									PropTool.SetReadOnlyProperty( "polarityoutput1", false );
									PropTool.SetReadOnlyProperty( "resetvalue1", false );
								}
								else // Standard output
								{
									PropTool.SetReadOnlyProperty( "polarityoutput1", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "polarityoutput1", "0" );
									PropTool.SetReadOnlyProperty( "resetvalue1", true );
								}

								// Input peripheral address Counter/Encoder
								if ( ( iInputMode0 == 1 ) || ( iInputMode0 == 2 ) ||  ( iInputMode1 == 1 ) || ( iInputMode1 == 2 )  )
								{
									PropTool.SetReadOnlyProperty( "addressinputperipheral1", false );
									PropTool.SetReadOnlyProperty( "addressoutputperipheral2", false );
								} else {
									PropTool.SetReadOnlyProperty( "addressinputperipheral1", true );
									PropTool.SetReadOnlyProperty( "addressoutputperipheral2", true );
								}

								// Interrupt configuration
								bPropertyModified |= PropTool.SetPropertyValueString( "interruptenabled", bEnabledInterrupt ? "1" : "0" );
								PropTool.SetReadOnlyProperty( "interruptxob", !bEnabledInterrupt );
								PropTool.SetReadOnlyProperty( "interruptxobinfo", !bEnabledInterrupt );
								if ( ( bEnabledInterrupt ) && ( iInputMode0 == 3 ) )
								{
									PropTool.SetReadOnlyProperty( "interrupta", false );
									PropTool.SetReadOnlyProperty( "interruptb", false );
								}
								else
								{
									PropTool.SetReadOnlyProperty( "interrupta", true );
									PropTool.SetReadOnlyProperty( "interruptb", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interrupta", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptb", "0" );
								}
								if ( ( bEnabledInterrupt ) && ( iInputMode1 == 3 ) )
								{
									PropTool.SetReadOnlyProperty( "interruptc", false );
									PropTool.SetReadOnlyProperty( "interruptd", false );
								}
								else
								{
									PropTool.SetReadOnlyProperty( "interruptc", true );
									PropTool.SetReadOnlyProperty( "interruptd", true );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptc", "0" );
									bPropertyModified |= PropTool.SetPropertyValueString( "interruptd", "0" );
								}
							}
						]]>
					</PropertyNotificationScript>
					<!--Called when the property grid loose the focus-->
					<PropertyValidationScript>
						<![CDATA[

							if ( !DevTool.GetBoolProperty("this", "this", "system", "xx7plc") ) {

								// CLASSIC

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( 1024, out bWarning ) )
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

								// Overlap of input process image range ?
								int iAddressInputProcessImageDI = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
								int iRangeInputProcessImageDI = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );
								int iAddressInputProcessImageCE = PropTool.GetPropertyValueInt( "addressinputperipheral1" );
								int iRangeInputProcessImageCE = PropTool.GetPropertyValueInt( "rangeinputperipheral1" );
								int iAddressOutputProcessImageCE = PropTool.GetPropertyValueInt( "addressoutputperipheral2" );
								int iRangeOutputProcessImageCE = PropTool.GetPropertyValueInt( "rangeoutputperipheral2" );
								bool bMediaMappingDI = PropTool.GetPropertyValueString( "enabledmediamapping0" ) != "0";
								bool bMediaMappingCE = PropTool.GetPropertyValueString( "enabledmediamapping1" ) != "0";
								if ( DevTool.MemoryRangeOverlap( iAddressInputProcessImageDI, iRangeInputProcessImageDI,
									iAddressInputProcessImageCE, iRangeInputProcessImageCE )
									|| DevTool.InputMemoryRangeOverlap( iAddressInputProcessImageDI, iRangeInputProcessImageDI,
									sItemLocation )
									|| DevTool.InputMemoryRangeOverlap( iAddressInputProcessImageCE, iRangeInputProcessImageCE,
									sItemLocation ) )
								{
									messageList.AddMessage( "ER_1203", sItem, sItemLocation );
								}

								// Overlap of output process image range ?
								if ( DevTool.OutputMemoryRangeOverlap( iAddressOutputProcessImageCE, iRangeOutputProcessImageCE,
									sItemLocation ) )
								{
									messageList.AddMessage( "WR_1202", sItem, sItemLocation );
								}

									// Check MediaMapping
									PropTool.CheckMediaMapping( messageList, sItem, sItemLocation, sCurrentSlotFullPath, "ER_1204", "ER_1205" );

							}
							else
							{

								// XX7

								bool bWarning;
								int iXX7cycleAdrThreshold = int.Parse(DevTool.GetStringProperty("this", "this", "iohandling", "xx7cycleloop"));
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( iXX7cycleAdrThreshold, out bWarning ) ) {
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								}
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

								// Overlap of input process image range ?
								int iAddressInputProcessImageDI = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
								int iRangeInputProcessImageDI = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );
								int iAddressInputProcessImageCE = PropTool.GetPropertyValueInt( "addressinputperipheral1" );
								int iRangeInputProcessImageCE = PropTool.GetPropertyValueInt( "rangeinputperipheral1" );
								int iAddressOutputProcessImageCE = PropTool.GetPropertyValueInt( "addressoutputperipheral2" );
								int iRangeOutputProcessImageCE = PropTool.GetPropertyValueInt( "rangeoutputperipheral2" );
								if ( DevTool.MemoryRangeOverlap( iAddressInputProcessImageDI, iRangeInputProcessImageDI,
									iAddressInputProcessImageCE, iRangeInputProcessImageCE )
									|| DevTool.InputMemoryRangeOverlap( iAddressInputProcessImageDI, iRangeInputProcessImageDI,
									sItemLocation )
									|| DevTool.InputMemoryRangeOverlap( iAddressInputProcessImageCE, iRangeInputProcessImageCE,
									sItemLocation ) )
								{
									messageList.AddMessage( "ER_1203", sItem, sItemLocation );
								}

								// Overlap of output process image range ?
								if ( DevTool.OutputMemoryRangeOverlap( iAddressOutputProcessImageCE, iRangeOutputProcessImageCE,
									sItemLocation ) )
								{
									messageList.AddMessage( "WR_1202", sItem, sItemLocation );
								}
							}

						]]>
					</PropertyValidationScript>
				</PropertyList>
				<!-- IO handling to DBx generation -->
				<IOHandlingToDBx>
					<![CDATA[
						// Config utility version
						configuratorVersion.CfgUtilityVersion = 1;

						// Slot configuration
						string PCDname = DevTool.GetStringProperty( "this", "this", "system", "typeconstant" ); //DevTool.GetDeviceName(); //"PCD3.M2030 V6";
						slotConfiguration.AddComment( PCDname );
						slotConfiguration.AddWord( 0xA0, "kenn" );
						slotConfiguration.AddInt( 84, "StructLen" );
						// Set slot number
						slotConfiguration.AddInt( 0, "SlotNbr" );
						slotConfiguration.AddInt( 0, "PANbrDigi" );	// Not used in classic
						Int16 usCount = (Int16)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping0", "rangeinputperipheral0" );
						slotConfiguration.AddInt( usCount, "InCntDigi" );
						usCount = (Int16)DevTool.GetIntProperty( "onboardslots", "slot1", "mediamapping0", "rangeoutputperipheral0" );
						slotConfiguration.AddInt( usCount, "OutCntDigi" );
						Int16 usBaseAddress = (Int16)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping0", "addressinputperipheral0" );
						slotConfiguration.AddInt( usBaseAddress, "InBaseDigi" );
						usBaseAddress = (Int16)DevTool.GetIntProperty( "onboardslots", "slot1", "mediamapping0", "addressoutputperipheral0" );
						slotConfiguration.AddInt( usBaseAddress, "OutBaseDigi" );
						slotConfiguration.AddWord( 0, "RetVal" );
						slotConfiguration.AddInt( 0, "PANbrAna" );
						// Fixed to 12 because of the new configuration for temperature inputs
						//usCount = (Int16)DevTool.GetIntProperty( "onboardslots", "slot2", "mediamapping0", "rangeinputperipheral0" );
						//slotConfiguration.AddInt( usCount, "InCntAna" );
						slotConfiguration.AddInt( 12, "InCntAna" );

						usCount = (Int16)DevTool.GetIntProperty( "onboardslots", "slot3", "mediamapping0", "rangeoutputperipheral0" );
						slotConfiguration.AddInt( usCount, "OutCntAna" );
						usBaseAddress = (Int16)DevTool.GetIntProperty( "onboardslots", "slot2", "mediamapping0", "addressinputperipheral0" );
						slotConfiguration.AddInt( usBaseAddress, "InBaseAna" );
						usBaseAddress = (Int16)DevTool.GetIntProperty( "onboardslots", "slot3", "mediamapping0", "addressoutputperipheral0" );
						slotConfiguration.AddInt( usBaseAddress, "OutBaseAna" );

						// Configuration analogue inputs
						// Get input configuration
						short[] sFilterMode = new short[4];// line 40
						string[] sRangeInput = new string[4];
						short[] sInputMinValue = new short[4];
						short[] sInputMaxValue = new short[4];

						for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
						{
							sFilterMode[iChannelCounter] = (short)DevTool.GetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("filteranalogueinput{0}", iChannelCounter.ToString()));
							sRangeInput[iChannelCounter] = DevTool.GetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()));
							sInputMinValue[iChannelCounter] = (short)DevTool.GetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()));
							sInputMaxValue[iChannelCounter] = (short)DevTool.GetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()));
						}
						// Set channel configurations
						for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
						{
							byte byConfValueAI = 0x00;
							switch (sRangeInput[iChannelCounter])
							{
								case "-10000..10000" :
									byConfValueAI = 0x00;
									break;
								case "-20000..20000" :
									byConfValueAI = 0x20;
									break;
								case "pt1000" :
									byConfValueAI = 0x50;
									//sInputMinValue[iChannelCounter] = -500;
									//sInputMaxValue[iChannelCounter] = 4000;
									break;
								case "ni1000" :
									byConfValueAI = 0x60;
									//sInputMinValue[iChannelCounter] = -500;
									//sInputMaxValue[iChannelCounter] = 2100;
									break;
								case "ni1000ls" :
									byConfValueAI = 0x70;
									//sInputMinValue[iChannelCounter] = -300;
									//sInputMaxValue[iChannelCounter] = 1400;
									break;
								case "r2500" :
									byConfValueAI = 0x40;
									//sInputMinValue[iChannelCounter] = 0;
									//sInputMaxValue[iChannelCounter] = 25000;
									break;
								default :  // Possible with old configuration without temperature input
									// Define as current input
									byConfValueAI = 0x00;
									break;
							}
							// Filter
							byConfValueAI += (byte)sFilterMode[iChannelCounter];
							slotConfiguration.AddByte(byConfValueAI, string.Format("AnaInConf{0}", iChannelCounter));
						}
						for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
						{
							slotConfiguration.AddInt(sInputMinValue[iChannelCounter], string.Format("AnaIn{0}min", iChannelCounter.ToString()));
							slotConfiguration.AddInt(sInputMaxValue[iChannelCounter], string.Format("AnaIn{0}max", iChannelCounter.ToString()));
						}

						for (int iChannelCounter = 0; iChannelCounter < 2; iChannelCounter ++)
						{
							Int16 param = (Int16)DevTool.GetIntProperty("onboardslots", "slot3", string.Format("analogueoutput{0}", iChannelCounter.ToString()), string.Format("minoutput{0}", iChannelCounter.ToString()));
							slotConfiguration.AddInt( param, string.Format("AnaOut{0}min", iChannelCounter.ToString()));
							param = (Int16)DevTool.GetIntProperty("onboardslots", "slot3", string.Format("analogueoutput{0}", iChannelCounter.ToString()), string.Format("maxoutput{0}", iChannelCounter.ToString()));
							slotConfiguration.AddInt( param, string.Format("AnaOut{0}max", iChannelCounter.ToString()));
							param = (Int16)DevTool.GetIntProperty("onboardslots", "slot3", string.Format("analogueoutput{0}", iChannelCounter.ToString()), string.Format("resetoutput{0}", iChannelCounter.ToString()));
							slotConfiguration.AddInt( param, string.Format("AnaOut{0}res", iChannelCounter.ToString()));
						}

						// Configuration digital input
						byte byConfValue = (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "inputmode", "inputmode3to5" );
						byConfValue <<= 4;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "inputmode", "inputmode0to2" );
						slotConfiguration.AddByte( byConfValue, "ConfDIn" );

						// Configuration encoder
						byConfValue = (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder1", "indexpolarity1" );
						byConfValue <<= 1;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder1", "polarityoutput1" );
						byConfValue <<= 1;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder1", "enabledoutput1" );
						byConfValue <<= 2;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder0", "indexpolarity0" );
						byConfValue <<= 1;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder0", "polarityoutput0" );
						byConfValue <<= 1;
						byConfValue += (byte)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder0", "enabledoutput0" );
						slotConfiguration.AddByte( byConfValue, "ConfEncoder" );
						ushort usCounterEncoderResetValue = (ushort)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder0", "resetvalue0" );
						slotConfiguration.AddWord( usCounterEncoderResetValue, "EncResOut0" );
						usCounterEncoderResetValue = (ushort)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder1", "resetvalue1" );
						slotConfiguration.AddWord( usCounterEncoderResetValue, "EncResOut1" );
						slotConfiguration.AddWord( 0, "PANbrEnc" );
						usCount = (short)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping1", "rangeinputperipheral1" );
						slotConfiguration.AddWord((UInt16)usCount, "InCntEnc" );
						usCount = (short)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping2", "rangeoutputperipheral2" );
						slotConfiguration.AddWord((UInt16)usCount, "OutCntEnc" );
						usBaseAddress = (short)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping1", "addressinputperipheral1" );
						slotConfiguration.AddWord((UInt16)usBaseAddress, "InBaseEnc" );
						usBaseAddress = (short)DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping2", "addressoutputperipheral2" );
						slotConfiguration.AddWord((UInt16)usBaseAddress, "OutBaseEnc" );

						// Configuration interrupt
						uint iConfValue = 0;
						iConfValue = (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder1", "interrupt1" );
						iConfValue <<= 4;
						iConfValue += (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "counterencoder0", "interrupt0" );
						iConfValue <<= 4;
						iConfValue += (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interruptd" );
						iConfValue <<= 4;
						iConfValue += (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interruptc" );
						iConfValue <<= 4;
						iConfValue += (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interruptb" );
						iConfValue <<= 4;
						iConfValue += (uint)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interrupta" );
						slotConfiguration.AddDWord( iConfValue, "ConfInt" );
						// Interrupt enabled ?
						bool bInterruptEnabled = DevTool.GetBoolProperty( "onboardslots", "slot0", "interrupts", "interruptenabled" );
						if ( bInterruptEnabled )
						{
							ushort usIntXOB = (ushort)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interruptxob" );
							slotConfiguration.AddWord( usIntXOB, "IntXOB" );
						}
						else // Interrupt disabled
							slotConfiguration.AddWord( 0, "IntXOB" );
						ushort usIntXOBInfo = (ushort)DevTool.GetIntProperty( "onboardslots", "slot0", "interrupts", "interruptxobinfo" );
						slotConfiguration.AddWord( usIntXOBInfo, "IntXOBInfo" );

						// Digital input transfer definitions and input symbol definition
						int iAddress;
						bool bTypeMediaReg0 = DevTool.GetStringProperty("onboardslots", "slot0", "mediamapping0", "typemedia0" ) == "register";
						// Digital inputs
						int number0 = 24;
						if (bTypeMediaReg0)
							number0 = 1;

						// Get source address
						iAddress = DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping0", "addressinputperipheral0" );
						SymbolDefinition symbolDefinition = new SymbolDefinition( "IO.IOAccess.DIGITAL_INPUT_0TO7", SymbolType.Constant, 0, 0, iAddress, "Address of digital 0 to 7 inputs in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.DIGITAL_INPUT_8TO15", SymbolType.Constant, 0, 0, iAddress + 1, "Address of digital inputs 8 to 15 in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.DIGITAL_INPUT_16TO19", SymbolType.Constant, 0, 0, iAddress + 2, "Address of digital inputs 16 to 20 in memory input range- used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						if ( bInterruptEnabled )
						{
							symbolDefinition = new SymbolDefinition( "IO.IOAccess.INTERRUPT_STATUS", SymbolType.Constant, 0, 0, iAddress + 3, "Address of interrupt status in memory input range - used for direct access", true );
							symbolDefinitionList.Add( symbolDefinition );
						}
						// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
						string[] sSymbolName;
						string[] sSymbolComment;
						string[] sSymbolTags;
						string[] sSymbolAddr;
						string[] sSymbolFreeValue;
						string[] sSymbolScope;
						if ( bTypeMediaReg0 )
						{
							DevTool.GetPropertyValueSymbolsFromSlot( xSlot, "registersymbols0",
								out sSymbolName, out sSymbolComment, out sSymbolTags );
							DevTool.GetPropertyValueSymbolsFromSlot( xSlot, "registeraddress0",
								out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
						}
						else
						{
							DevTool.GetPropertyValueSymbolsFromSlot( xSlot, "flagsymbols0",
								out sSymbolName, out sSymbolComment, out sSymbolTags );
							DevTool.GetPropertyValueSymbolsFromSlot( xSlot, "flagaddress0",
								out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
						}
						int[] iSymbolAddr = new int[number0];
						bool[] bSymbolNameValide0 = new bool[number0];
						bool[] bSymbolAddrValide0 = new bool[number0];
						bool[] bIsPublic = new bool[number0];
						for ( int iCounter = 0; iCounter < number0; iCounter++ )
						{
							int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
							bSymbolNameValide0[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
							bSymbolAddrValide0[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
							bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
						}
						string sBaseSymbol = DevTool.GetStringProperty("onboardslots", "slot0", "mediamapping0", "basesymbols0" ).Trim();
						string sBaseAddress = DevTool.GetStringProperty("onboardslots", "slot0", "mediamapping0", "addressmedia0" ).Trim();
						bool bMediaMapping0 = DevTool.GetBoolProperty("onboardslots", "slot0", "mediamapping0", "enabledmediamapping0" );

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Digital inputs into register ---

						if ( bTypeMediaReg0 && bMediaMapping0 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for digital inputs / Compact IOs" );
							for ( int iCounter = 0; iCounter < number0; iCounter++ )
							{
								if ( !bSymbolNameValide0[iCounter] && !bSymbolAddrValide0[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 144, "Tfr_Fct : DWord to Register (swapped)" );
								dbTransferDefinition.AddByte( 1, "Tfr_Number : 1 x DWord to Register" );
								dbTransferDefinition.AddDWord( (uint)( iAddress + iCounter * 4 ), "Source Address" );
								if ( bSymbolNameValide0[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Register, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs Digital inputs base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number0, "Compact IOs Digital input base address", "S_IO" );
							// Transfer to register
							for ( int iCounter = 0; iCounter < number0; iCounter++ )
							{
								if ( bSymbolNameValide0[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx maxfwver="1.16.00">
					<![CDATA[

						//--- Analogue input status into flags ---

						if ( !bTypeMediaReg0 && bMediaMapping0 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for digital inputs / Compact IOs" );
							dbTransferDefinition.AddWord( 14, "Str_Size" );
							dbTransferDefinition.AddWord( 10, "Str_Type" );
							// Main
							dbTransferDefinition.AddByte( 138, "Tfr_Fct : Byte to 8 Flag" );
							dbTransferDefinition.AddByte( 3, "Tfr_Number : 3 x Byte to 8 Flag" );
							dbTransferDefinition.AddDWord( (uint)( iAddress ), "Source Address" );
							dbTransferDefinition.AddSymbol( sBaseSymbol, "Destination Base Symbol" );
							dbTransferDefinition.AddComment( string.Empty );
							inputTransferDefinitionList.Add( dbTransferDefinition );
							dbTransferDefinition = new DBSourceBuilder( 0, false );

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs Digital input base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number0, "Compact IOs Digital inputs base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number0; iCounter++ )
							{
								if ( bSymbolNameValide0[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx minfwver="1.16.00">
					<![CDATA[

						// --- Digital inputs into flags ---

						if ( !bTypeMediaReg0 && bMediaMapping0 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Digital inputs transfer definition / Compact IOs" );
							int valueBitSize = 8; // BYTE=8 WORD=16 DWORD=32 ...
							for ( int iCounter = 0; iCounter < number0; iCounter++ )
							{
								if ( !bSymbolNameValide0[iCounter] && !bSymbolAddrValide0[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 145, "Tfr_Fct : PI bit to Flag" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : bit {0} to Flag", iCounter ) );
								dbTransferDefinition.AddByte( (byte)( (valueBitSize/8-1-(iCounter%valueBitSize)/8)*8+iCounter%8+(iCounter/valueBitSize)*valueBitSize ), String.Format( "Bit Shift {0}", iCounter ) );
								dbTransferDefinition.AddByte( (byte)( iAddress >> 16 ), String.Format( "Source Address {0} (8bit High)", iAddress ) );
								dbTransferDefinition.AddWord( (ushort)( iAddress % 65536 ), String.Format( "Source Address {0} (16bit Low)", iAddress ) );
								if ( bSymbolNameValide0[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Flag, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs Digital inputs base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number0, "Compact IOs Digital inputs base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number0; iCounter++ )
							{
								if ( bSymbolNameValide0[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Counter/encoder inputs transfer definitions and symbol definition ---

						// 2 input values
						const int number1 = 2;
						// Get source address
						iAddress = DevTool.GetIntProperty("onboardslots", "slot0", "mediamapping1", "addressinputperipheral1");
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.COUNTER_ENCODER_0", SymbolType.Constant, 0, 0, iAddress, "Address of counter/encoder 0 in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.COUNTER_ENCODER_1", SymbolType.Constant, 0, 0, iAddress + 4, "Address of counter/encoder 0 in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.ENCODER_0_STATUS_REF_MODE", SymbolType.Constant, 0, 0, iAddress + 8, "Address of encoder 0 refmode in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.ENCODER_1_STATUS_REF_MODE", SymbolType.Constant, 0, 0, iAddress + 9, "Address of encoder 1 refmode in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.ENCODER_0_REF_COUNTER", SymbolType.Constant, 0, 0, iAddress + 10, "Address of encoder 0 refcounter in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.ENCODER_1_REF_COUNTER", SymbolType.Constant, 0, 0, iAddress + 12, "Address of encoder 1 refcounter in memory input range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );

						// Get destination address / output memory mapping
						int iDestinationAddress = DevTool.GetIntProperty( "onboardslots", "slot0", "mediamapping2", "addressoutputperipheral2" );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.REF_MODE_ENCODER_0_AND_1", SymbolType.Constant, 0, 0, iDestinationAddress, "Address of refmode encoder 0/1 in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.PRESET_VALUE_ENCODER_COUNTER_0", SymbolType.Constant, 0, 0, iDestinationAddress + 2, "Address of preset enc./cntr 0 in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.COMPARE_VALUE_ENCODER_COUNTER_0", SymbolType.Constant, 0, 0, iDestinationAddress + 6, "Address of compare enc./cntr 0 in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.PRESET_VALUE_ENCODER_COUNTER_1", SymbolType.Constant, 0, 0, iDestinationAddress + 10, "Address of preset enc./cntr 1 in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.COMPARE_VALUE_ENCODER_COUNTER_1", SymbolType.Constant, 0, 0, iDestinationAddress + 14, "Address of compare enc./cntr 1 in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );
						symbolDefinition = new SymbolDefinition( "IO.IOAccess.INTERRUPT_CONFIG", SymbolType.Constant, 0, 0, iDestinationAddress + 18, "Address of interrupt config in memory output range - used for direct access", true );
						symbolDefinitionList.Add( symbolDefinition );

						// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
						DevTool.GetSymbolsProperty("onboardslots", "slot0", "mediamapping1", "registersymbols1",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot0", "mediamapping1", "registeraddress1",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
						iSymbolAddr = new int[number1];
						bool[] bSymbolNameValide1 = new bool[number1];
						bool[] bSymbolAddrValide1 = new bool[number1];
						bIsPublic = new bool[number1];
						for ( int iCounter = 0; iCounter < number1; iCounter++ )
						{
							int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
							bSymbolNameValide1[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
							bSymbolAddrValide1[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
							bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
						}
						sBaseSymbol = DevTool.GetStringProperty("onboardslots", "slot0", "mediamapping1", "basesymbols1" ).Trim();
						sBaseAddress = DevTool.GetStringProperty("onboardslots", "slot0", "mediamapping1", "addressmedia1" ).Trim();
						bool bMediaMapping1 = DevTool.GetBoolProperty("onboardslots", "slot0", "mediamapping1", "enabledmediamapping1");

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Counter/encoder inputs into registers ---

						if ( bMediaMapping1 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for 2 counter/encoder values / Compact IOs" );
							for ( int iCounter = 0; iCounter < number1; iCounter++ )
							{
								if ( !bSymbolNameValide1[iCounter] && !bSymbolAddrValide1[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 143, "Tfr_Fct : DWord to Register" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : DWord {0} to Register", iCounter ) );
								dbTransferDefinition.AddDWord( (uint)( iAddress + iCounter * 2 ), "Source Address" );
								if ( bSymbolNameValide1[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Register, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs Counter/encoder input base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number1, "Compact IOs Counter/encoder input base address", "S_IO" );
							// Transfer to register
							for ( int iCounter = 0; iCounter < number1; iCounter++ )
							{
								if ( bSymbolNameValide1[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- 4 analog input transfer definitions and analog input symbol definition ---

						// 4 analogue inputs
						const int number2 = 4;
						// Get source address
						iAddress = DevTool.GetIntProperty("onboardslots", "slot2", "mediamapping0", "addressinputperipheral0");
						for (int iChannelCounter = 0; iChannelCounter < number2; iChannelCounter ++)
						{
							symbolDefinition = new SymbolDefinition(string.Format("IO.IOAccess.ANALOGUE_INPUT_{0}",iChannelCounter.ToString()), SymbolType.Constant, 0, 0, iAddress + 2 * iChannelCounter, string.Format("Address of analogue input {0} in memory input range - used for direct access", iChannelCounter.ToString()), true);
							symbolDefinitionList.Add(symbolDefinition);
						}

						// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping0", "registersymbols0",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping0", "registeraddress0",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
						iSymbolAddr = new int[number2];
						bool[] bSymbolNameValide2 = new bool[number2];
						bool[] bSymbolAddrValide2 = new bool[number2];
						bIsPublic = new bool[number2];
						for ( int iCounter = 0; iCounter < number2; iCounter++ )
						{
							int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
							bSymbolNameValide2[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
							bSymbolAddrValide2[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
							bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
						}
						sBaseSymbol = DevTool.GetStringProperty("onboardslots", "slot2", "mediamapping0", "basesymbols0" ).Trim();
						sBaseAddress = DevTool.GetStringProperty("onboardslots", "slot2", "mediamapping0", "addressmedia0" ).Trim();
						bool bMediaMapping2 = DevTool.GetBoolProperty("onboardslots", "slot2", "mediamapping0", "enabledmediamapping0");

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- 2 analogue inputs into registers ---

						if ( bMediaMapping2 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for 2 analogue inputs / Compact IOs" );
							for ( int iCounter = 0; iCounter < number2; iCounter++ )
							{
								if ( !bSymbolNameValide2[iCounter] && !bSymbolAddrValide2[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 141, "Tfr_Fct : Word to Register(signed expanded)" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : Word {0} to Register", iCounter ) );
								dbTransferDefinition.AddDWord( (uint)( iAddress + iCounter * 2 ), "Source Address" );
								if ( bSymbolNameValide2[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Register, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs Analogue input base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number2, "Compact IOs Analogue input base address", "S_IO" );
							// Transfer to register
							for ( int iCounter = 0; iCounter < number2; iCounter++ )
							{
								if ( bSymbolNameValide2[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

					// --- Analogue input status transfer definitions and input symbol definition ---

					bool bTypeMediaReg3 = DevTool.GetStringProperty("onboardslots", "slot2", "mediamapping1", "typemedia1" ) == "register";
					int number3 = 32;
					if (bTypeMediaReg3)
						number3 = 4;

					// Get source address
					iAddress += 8;
					// Status
					for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
					{
						symbolDefinition = new SymbolDefinition(string.Format("IO.IOAccess.STATUS_ANALOGUE_INPUT_{0}",iChannelCounter.ToString()), SymbolType.Constant, 0, 0, iAddress + iChannelCounter, string.Format("Address of status AI {0} in memory input range - used for direct access", iChannelCounter.ToString()), true);
						symbolDefinitionList.Add(symbolDefinition);
					}

					// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
					if (bTypeMediaReg3)
					{
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping1", "registersymbols1",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping1", "registeraddress1",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
					}
					else
					{
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping1", "flagsymbols1",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot2", "mediamapping1", "flagaddress1",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
					}
					iSymbolAddr = new int[number3];
					bool[] bSymbolNameValide3 = new bool[number3];
					bool[] bSymbolAddrValide3 = new bool[number3];
					bIsPublic = new bool[number3];
					for ( int iCounter = 0; iCounter < number3; iCounter++ )
					{
						int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
						bSymbolNameValide3[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
						bSymbolAddrValide3[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
						bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
					}
					sBaseSymbol = DevTool.GetStringProperty( "onboardslots", "slot2", "mediamapping1", "basesymbols1" ).Trim();
					sBaseAddress = DevTool.GetStringProperty( "onboardslots", "slot2", "mediamapping1", "addressmedia1" ).Trim();
					bool bMediaMapping3 = bMediaMapping2;

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Analogue input status into registers ---

						if ( bTypeMediaReg3 && bMediaMapping3 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for analogue input status / Compact IOs" );
							for ( int iCounter = 0; iCounter < number3; iCounter++ )
							{
								if ( !bSymbolNameValide3[iCounter] && !bSymbolAddrValide3[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 130, "Tfr_Fct : Byte to Register (expanded)");
								dbTransferDefinition.AddByte(1, "Tfr_Number : 1 x Byte to Register");
								dbTransferDefinition.AddDWord( (uint)( iAddress + iCounter ), "Source Address" );
								if ( bSymbolNameValide3[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Register, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs Analogue input status base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number3, "Compact IOs Digital input base address", "S_IO" );
							// Transfer to register
							for ( int iCounter = 0; iCounter < number3; iCounter++ )
							{
								if ( bSymbolNameValide3[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx maxfwver="1.16.00">
					<![CDATA[

						//--- Analogue input status into flags ---

						if ( !bTypeMediaReg3 && bMediaMapping3 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Input transfer definition for analogue input status / Compact IOs" );
							dbTransferDefinition.AddWord( 14, "Str_Size" );
							dbTransferDefinition.AddWord( 10, "Str_Type" );
							// Main
							dbTransferDefinition.AddByte( 138, "Tfr_Fct : Byte to 8 Flag" );
							dbTransferDefinition.AddByte( 4, "Tfr_Number : 4 x Byte to 8 Flag" );
							dbTransferDefinition.AddDWord( (uint)( iAddress ), "Source Address" );
							dbTransferDefinition.AddSymbol( sBaseSymbol, "Destination Base Symbol" );
							dbTransferDefinition.AddComment( string.Empty );
							inputTransferDefinitionList.Add( dbTransferDefinition );
							dbTransferDefinition = new DBSourceBuilder( 0, false );

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs Analogue input status base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number3, "Compact IOs Analogue input status base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number3; iCounter++ )
							{
								if ( bSymbolNameValide3[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx minfwver="1.16.00">
					<![CDATA[

						// --- Analogue input status into flags ---

						if ( !bTypeMediaReg3 && bMediaMapping3 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Analogue input status transfer definition / Compact IOs" );
							int valueBitSize = 8; // BYTE=8 WORD=16 DWORD=32 ...
							for ( int iCounter = 0; iCounter < number3; iCounter++ )
							{
								if ( !bSymbolNameValide3[iCounter] && !bSymbolAddrValide3[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 145, "Tfr_Fct : PI bit to Flag" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : bit {0} to Flag", iCounter ) );
								dbTransferDefinition.AddByte( (byte)( (valueBitSize/8-1-(iCounter%valueBitSize)/8)*8+iCounter%8+(iCounter/valueBitSize)*valueBitSize ), String.Format( "Bit Shift {0}", iCounter ) );
								dbTransferDefinition.AddByte( (byte)( iAddress >> 16 ), String.Format( "Source Address {0} (8bit High)", iAddress ) );
								dbTransferDefinition.AddWord( (ushort)( iAddress % 65536 ), String.Format( "Source Address {0} (16bit Low)", iAddress ) );
								if ( bSymbolNameValide3[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Destination Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Flag, iSymbolAddr[iCounter], "Destination Media" );
								}
								dbTransferDefinition.AddComment( string.Empty );
								inputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs Analogue input status base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number3, "Compact IOs Analogue input status base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number3; iCounter++ )
							{
								if ( bSymbolNameValide3[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

					// --- Digital output transfer definitions and symbol definition ---

					bool bTypeMediaReg4 = DevTool.GetStringProperty("onboardslots", "slot1", "mediamapping0", "typemedia0" ) == "register";
					int number4 = 16;
					if (bTypeMediaReg4)
						number4 = 1;

					iAddress = DevTool.GetIntProperty("onboardslots", "slot1", "mediamapping0", "addressoutputperipheral0");
					symbolDefinition = new SymbolDefinition( "IO.IOAccess.DIGITAL_OUTPUT_0TO7", SymbolType.Constant, 0, 0, iAddress, "Address of digital outputs 0 to 7 in memory output range-used for direct access", true );
					symbolDefinitionList.Add( symbolDefinition );
					symbolDefinition = new SymbolDefinition( "IO.IOAccess.DIGITAL_OUTPUT_8TO11", SymbolType.Constant, 0, 0, iAddress + 1, "Address of digital outputs 8 to 12 in memory output range-used for direct access", true );
					symbolDefinitionList.Add( symbolDefinition );


					// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
					if (bTypeMediaReg4)
					{
						DevTool.GetSymbolsProperty("onboardslots", "slot1", "mediamapping0", "registersymbols0",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot1", "mediamapping0", "registeraddress0",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
					}
					else
					{
						DevTool.GetSymbolsProperty("onboardslots", "slot1", "mediamapping0", "flagsymbols0",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot1", "mediamapping0", "flagaddress0",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
					}
					iSymbolAddr = new int[number4];
					bool[] bSymbolNameValide4 = new bool[number4];
					bool[] bSymbolAddrValide4 = new bool[number4];
					bIsPublic = new bool[number4];
					for ( int iCounter = 0; iCounter < number4; iCounter++ )
					{
						int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
						bSymbolNameValide4[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
						bSymbolAddrValide4[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
						bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
					}
					sBaseSymbol = DevTool.GetStringProperty( "onboardslots", "slot1", "mediamapping0", "basesymbols0" ).Trim();
					sBaseAddress = DevTool.GetStringProperty( "onboardslots", "slot1", "mediamapping0", "addressmedia0" ).Trim();
					bool bMediaMapping4 =DevTool.GetBoolProperty("onboardslots", "slot1", "mediamapping0", "enabledmediamapping0");

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						//--- Digital outputs from register ---

						if ( bTypeMediaReg4 && bMediaMapping4 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Output transfer definition for digital output / Compact IOs" );
							dbTransferDefinition.AddWord( 14, "Str_Size" );
							dbTransferDefinition.AddWord( 10, "Str_Type" );
							// Main
							dbTransferDefinition.AddByte( 7, "Tfr_Fct : Register to Word (expanded swapped" );
							dbTransferDefinition.AddByte( 1, "Tfr_Number : 1 x Register to Word" );
							dbTransferDefinition.AddSymbol(sBaseSymbol, "Source Base Symbol");
							dbTransferDefinition.AddDWord((uint)iAddress , "Destination Address");
							dbTransferDefinition.AddComment( string.Empty );
							outputTransferDefinitionList.Add( dbTransferDefinition );
							dbTransferDefinition = new DBSourceBuilder( 0, false );

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs digital output base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number4, "Compact IOs Digital output base address", "S_IO" );
							// Transfer to register
							for ( int iCounter = 0; iCounter < number4; iCounter++ )
							{
								if ( bSymbolNameValide4[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx maxfwver="1.16.00">
					<![CDATA[

						//--- Digital outputs from flags ---

						if ( !bTypeMediaReg4 && bMediaMapping4 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Output transfer definition for digital output / Compact IOs" );
							dbTransferDefinition.AddWord( 14, "Str_Size" );
							dbTransferDefinition.AddWord( 10, "Str_Type" );
							// Main
							dbTransferDefinition.AddByte( 10, "Tfr_Fct : 8 Flag to PI bit" );
							dbTransferDefinition.AddByte( 2, "Tfr_Number : 2 x Flag to Byte" );
							dbTransferDefinition.AddSymbol( sBaseSymbol, "Source Base Symbol" );
							dbTransferDefinition.AddDWord( (uint)iAddress , "Destination Address" );
							dbTransferDefinition.AddComment( string.Empty );
							outputTransferDefinitionList.Add( dbTransferDefinition );
							dbTransferDefinition = new DBSourceBuilder( 0, false );

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs digital output base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number4, "Onboard IOs Digital output base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number4; iCounter++ )
							{
								if ( bSymbolNameValide4[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx minfwver="1.16.00">
					<![CDATA[

						// --- Digital output from flags ---

						if ( !bTypeMediaReg4 && bMediaMapping4 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Digital outputs transfer definition / Compact IOs" );
							int valueBitSize = 8; // BYTE=8 WORD=16 DWORD=32 ...
							for ( int iCounter = 0; iCounter < number4; iCounter++ )
							{
								if ( !bSymbolNameValide4[iCounter] && !bSymbolAddrValide4[iCounter] )
									continue;
								dbTransferDefinition.AddComment( iCounter.ToString() + " digital output" );
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 17, "Tfr_Fct : Flag to PI bit" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : 1 Flag to bit {0}", iCounter ) );
								if ( bSymbolNameValide4[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Source Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Flag, iSymbolAddr[iCounter], "Source Media" );
								}
								dbTransferDefinition.AddByte( (byte)( (valueBitSize/8-1-(iCounter%valueBitSize)/8)*8+iCounter%8+(iCounter/valueBitSize)*valueBitSize ), String.Format( "Bit Shift {0}", iCounter ) );
								dbTransferDefinition.AddByte( (byte)( iAddress >> 16 ), String.Format( "Destination Address {0} (8bit High)", iAddress ) );
								dbTransferDefinition.AddWord( (ushort)( iAddress % 65536 ), String.Format( "Destination Address {0} (16bit Low)", iAddress ) );
								dbTransferDefinition.AddComment( string.Empty );
								outputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}
							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Flag, null, 0, 0, "Compact IOs Digital output base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "F", sBaseAddress, number4, "Compact IOs Digital output base address", "S_IO" );
							// Transfer to flags
							for ( int iCounter = 0; iCounter < number4; iCounter++ )
							{
								if ( bSymbolNameValide4[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Flag, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "F", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Analogue output transfer definitions and symbol definition ---

						// 2 analogue outputs
						int number5 = 2;
						// Get source address
						iAddress = DevTool.GetIntProperty("onboardslots", "slot3", "mediamapping0", "addressoutputperipheral0");
						for ( int iCounter = 0; iCounter < number5; iCounter++ )
						{
							symbolDefinition = new SymbolDefinition( string.Format("IO.IOAccess.ANALOGUE_OUTPUT_{0}", iCounter.ToString()), SymbolType.Constant, 0, 0, iAddress + iCounter * 2, string.Format("Address of analogue output {0} in memory output range - used for direct access", iCounter.ToString()), true );
							symbolDefinitionList.Add( symbolDefinition );
						}

						// Retrieve all information (this part has to be in a script TAG without min max firmware attribut)
						DevTool.GetSymbolsProperty("onboardslots", "slot3", "mediamapping0", "registersymbols0",
							out sSymbolName, out sSymbolComment, out sSymbolTags );
						DevTool.GetSymbolsProperty("onboardslots", "slot3", "mediamapping0", "registeraddress0",
							out sSymbolAddr, out sSymbolFreeValue, out sSymbolScope );
						iSymbolAddr = new int[number5];
						bool[] bSymbolNameValide5 = new bool[number5];
						bool[] bSymbolAddrValide5 = new bool[number5];
						bIsPublic = new bool[number5];
						for ( int iCounter = 0; iCounter < number5; iCounter++ )
						{
							int.TryParse( sSymbolAddr[iCounter], out iSymbolAddr[iCounter] );
							bSymbolNameValide5[iCounter] = !String.IsNullOrEmpty( sSymbolName[iCounter] );
							bSymbolAddrValide5[iCounter] = !String.IsNullOrEmpty( sSymbolAddr[iCounter] );
							bIsPublic[iCounter] = sSymbolScope[iCounter] == "Public";
						}
						sBaseSymbol = DevTool.GetStringProperty( "onboardslots", "slot3", "mediamapping0", "basesymbols0" ).Trim();
						sBaseAddress = DevTool.GetStringProperty( "onboardslots", "slot3", "mediamapping0", "addressmedia0" ).Trim();
						bool bMediaMapping5 =DevTool.GetBoolProperty("onboardslots", "slot3", "mediamapping0", "enabledmediamapping0");

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx>
					<![CDATA[

						// --- Analogue outputs from registers ---

						if ( bMediaMapping5 )
						{
							DBSourceBuilder dbTransferDefinition = new DBSourceBuilder( 0, false );
							// Header
							dbTransferDefinition.AddComment( "Output transfer definition for 2 analogue outputs / Compact IOs" );
							for ( int iCounter = 0; iCounter < number5; iCounter++ )
							{
								if ( !bSymbolNameValide5[iCounter] && !bSymbolAddrValide5[iCounter] )
									continue;
								dbTransferDefinition.AddWord( 14, "Str_Size" );
								dbTransferDefinition.AddWord( 10, "Str_Type" );
								// Main
								dbTransferDefinition.AddByte( 13, "Tfr_Fct : Word of Register(signed, expanded)" );
								dbTransferDefinition.AddByte( 1, String.Format( "Tfr_Number : Register to Word {0}", iCounter ) );
								if ( bSymbolNameValide5[iCounter] ) {
									dbTransferDefinition.AddSymbol( sSymbolName[iCounter], "Source Symbol" );
								} else {
									dbTransferDefinition.AddMedia( SymbolType.Register, iSymbolAddr[iCounter], "Source Media" );
								}
								dbTransferDefinition.AddDWord( ( uint )(iAddress + iCounter * 2), "Destination Address" );
								dbTransferDefinition.AddComment( string.Empty );
								outputTransferDefinitionList.Add( dbTransferDefinition );
								dbTransferDefinition = new DBSourceBuilder( 0, false );
							}

							// Base Address
							symbolDefinition = new SymbolDefinition( sBaseSymbol, SymbolType.Register, null, 0, 0, "Compact IOs Analogue output base address", false, "S_IO" );
							symbolDefinitionList.Add( symbolDefinition );
							dbTransferDefinition.AddILDeclaration( sBaseSymbol, "PEQU", "R", sBaseAddress, number5, "Compact IOs Analogue output base address", "S_IO" );
							// Transfer from register
							for ( int iCounter = 0; iCounter < number5; iCounter++ )
							{
								if ( bSymbolNameValide5[iCounter] )
								{
									symbolDefinition = new SymbolDefinition( sSymbolName[iCounter], SymbolType.Register, null, 0, 0, sSymbolComment[iCounter], false, sSymbolTags[iCounter] );
									if ( bIsPublic[iCounter] ) {
										dbTransferDefinition.AddILDeclaration( sSymbolName[iCounter], "PEQU", "R", sSymbolAddr[iCounter], 0, sSymbolComment[iCounter], sSymbolTags[iCounter] );
									}
									symbolDefinitionList.Add( symbolDefinition );
								}
							}
							ILCodeToAdd.Insert( 0, dbTransferDefinition );
						}

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx maxfwver="1.16.00">
					<![CDATA[

						// Slot description
						string sObjectName = "pcd3compact.onboard.20digitalinputs";

						// Media mapping and struct length and alignment byte
						int iMediaMappingLength = 1 + 1 + 2 + 4 + 1 + 1 + 1 + 2;
						if (bTypeMediaReg3)
							iMediaMappingLength = 1 + 1 + 2 + 4 + 4 + 1 + 1 + 2;
						int iStructLength = 9 + sObjectName.Length + 1 + iMediaMappingLength;
						bool bAddAlignmentByte = iStructLength % 2 != 0;
						if (bAddAlignmentByte)
							iStructLength ++;

						// Header
						slotDescription.AddComment( "IO Slot description (only used by the Device Configurator)" );
						slotDescription.AddWord( (ushort)( iStructLength ), "Struct Size" );
						slotDescription.AddWord( 12, "Struct type" );
						// Main
						slotDescription.AddByte( 0, "Is expansion" );
						// Number of slots used by module
						slotDescription.AddByte( (byte)1, "Number of IO slot configuration for the module" );
						// Global slot number
						slotDescription.AddByte( 0, "Global Slot Number" );
						// Board slot number
						slotDescription.AddByte( 0, "Board Slot Number" );
						slotDescription.AddByte( (byte)( sObjectName.Length + 1 ), "Module ident size" );
						slotDescription.AddString( sObjectName, "Module ident" );

						// Number of input transfer functions
						if (bTypeMediaReg3)
							slotDescription.AddByte(11, "Number of available input transfer function");
						else
							slotDescription.AddByte(8, "Number of available input transfer function");
						byte byCounter = 0;
						if (bMediaMapping0)
						{
							slotDescription.AddByte(byCounter, "Tfr_Fct number for digital inputs");
							byCounter ++;
						}
						else
							slotDescription.AddByte( 255, "Tfr_Fct number for digital inputs");
						// 2 Counter/encoder inputs
						for (int iCounter = 0; iCounter < number1; iCounter ++)
						{
							if ( bMediaMapping1 && ( bSymbolNameValide1[iCounter] || bSymbolAddrValide1[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for counter/encoder inputs");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for counter/encoder inputs");
						}
						// 4 analogue inputs
						for (int iCounter = 0; iCounter < number2; iCounter ++)
						{
							if ( bMediaMapping2 && ( bSymbolNameValide2[iCounter] || bSymbolAddrValide2[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue inputs");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for analogue inputs");
						}
						// Analogue input status
						if (bTypeMediaReg3)
						{
							// 2 analogue inputs status
							for (int iCounter = 0; iCounter < number3; iCounter ++)
							{
							if ( bMediaMapping3 && ( bSymbolNameValide3[iCounter] || bSymbolAddrValide3[iCounter] ) )
								{
									slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue input status");
									byCounter ++;
								}
								else
									slotDescription.AddByte( 255, "Tfr_Fct number for analogue input status");
							}
						}
						else  // Transfer to registers
						{
							if (bMediaMapping3)
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue input status");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for analogue input status");
						}
						// Output transfer functions
						slotDescription.AddByte(3, "Number of available output transfer function");
						byCounter = 0;
						if (bMediaMapping4)
						{
							slotDescription.AddByte(byCounter, "Tfr_Fct number for digital outputs");
							byCounter ++;
						}
						else
							slotDescription.AddByte( 255, "Tfr_Fct number for digital outputs");

						// 2 analogue outputs
						for (int iCounter = 0; iCounter < number5; iCounter ++)
						{
							if ( bMediaMapping5 && ( bSymbolNameValide5[iCounter] || bSymbolAddrValide5[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue output");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for analogue output");
						}
						if (bAddAlignmentByte)
							slotDescription.AddByte( 0, "Reserved" );

						// Footer
						slotDescription.AddComment( "End of IO Slot description" );
						slotDescription.AddComment( string.Empty );

					]]>
				</IOHandlingToDBx>
				<IOHandlingToDBx minfwver="1.16.00">
					<![CDATA[

						// Slot description
						string sObjectName = "pcd3compact.onboard.20digitalinputs";

						// Media mapping and struct length and alignment byte
						int iInputTransferFunctionNbr = 0;
						// Digital input
						if (bTypeMediaReg0)
							iInputTransferFunctionNbr ++;
						else
							iInputTransferFunctionNbr += 24;
						// Counter/encoder
						iInputTransferFunctionNbr += 2;
						// Analogue input
						iInputTransferFunctionNbr += 4;
						// Analogue input status
						if (bTypeMediaReg3)
							iInputTransferFunctionNbr += 4;
						else
							iInputTransferFunctionNbr += 32;
						int iOutputTransferFunctionNbr = 0;
						// Digital output
						if (bTypeMediaReg4)
							iOutputTransferFunctionNbr ++;
						else
							iOutputTransferFunctionNbr += 16;
						// Analogue outputs
						iOutputTransferFunctionNbr +=2;

						int iStructLength = 9 + sObjectName.Length + 1 + iInputTransferFunctionNbr + 1 + iOutputTransferFunctionNbr + 1;
						bool bAddAlignmentByte = iStructLength % 2 != 0;
						if (bAddAlignmentByte)
							iStructLength ++;

						// Header
						slotDescription.AddComment( "IO Slot description (only used by the Device Configurator)" );
						slotDescription.AddWord( (ushort)( iStructLength ), "Struct Size" );
						slotDescription.AddWord( 12, "Struct type" );
						// Main
						slotDescription.AddByte( 0, "Is expansion" );
						// Number of slots used by module
						slotDescription.AddByte( (byte)1, "Number of IO slot configuration for the module" );
						// Global slot number
						slotDescription.AddByte( 0, "Global Slot Number" );
						// Board slot number
						slotDescription.AddByte( 0, "Board Slot Number" );
						slotDescription.AddByte( (byte)( sObjectName.Length + 1 ), "Module ident size" );
						slotDescription.AddString( sObjectName, "Module ident" );

						// Number of input transfer functions
						slotDescription.AddByte((byte)iInputTransferFunctionNbr, "Number of available input transfer function");
						byte byCounter = 0;
						// Digital input
						for (int iCounter = 0; iCounter < number0; iCounter ++)
						{
							if ( bMediaMapping0 && ( bSymbolNameValide0[iCounter] || bSymbolAddrValide0[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number digital inputs");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for digital inputs");
						}
						// 2 Counter/encoder inputs
						for (int iCounter = 0; iCounter < number1; iCounter ++)
						{
							if ( bMediaMapping1 && ( bSymbolNameValide1[iCounter] || bSymbolAddrValide1[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for counter/encoder inputs");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for counter/encoder inputs");
						}
						// Analogue inputs
						for (int iCounter = 0; iCounter < number2; iCounter ++)
						{
							if ( bMediaMapping2 && ( bSymbolNameValide2[iCounter] || bSymbolAddrValide2[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue inputs");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for analogue inputs");
						}
						// Analogue inputs status
						for (int iCounter = 0; iCounter < number3; iCounter ++)
						{
							if ( bMediaMapping3 && ( bSymbolNameValide3[iCounter] || bSymbolAddrValide3[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for analogue input status");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for analogue input status");
						}
						// Output transfer functions
						slotDescription.AddByte((byte)iOutputTransferFunctionNbr, "Number of available output transfer function");
						byCounter = 0;
						// Digital outputs
						for (int iCounter = 0; iCounter < number4; iCounter ++)
						{
							if ( bMediaMapping4 && ( bSymbolNameValide4[iCounter] || bSymbolAddrValide4[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for digital output");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for digital output");
						}
						// Analogue outputs
						for (int iCounter = 0; iCounter < number5; iCounter ++)
						{
							if ( bMediaMapping5 && ( bSymbolNameValide5[iCounter] || bSymbolAddrValide5[iCounter] ) )
							{
								slotDescription.AddByte(byCounter, "Tfr_Fct number for digital output");
								byCounter ++;
							}
							else
								slotDescription.AddByte( 255, "Tfr_Fct number for digital output");
						}
						if (bAddAlignmentByte)
							slotDescription.AddByte( 0, "Reserved" );

						// Footer
						slotDescription.AddComment( "End of IO Slot description" );
						slotDescription.AddComment( string.Empty );

					]]>
				</IOHandlingToDBx>
				<!-- IO handling from DBx -->
				<IOHandlingFromDBx>
					<![CDATA[
						// Set binary reader to the memory stream
						DBxBinaryReader reader = new DBxBinaryReader( moduleConfiguration.ioSlotConfiguration[0].streamConfigurations );
						// Expanded configuration with temperature support ? (in the first HW version, the temperature inputs were not supported)
						bool bAnaConfigWithTemp = reader.StreamLength == 78;
						// PANbrDigi : fixed -> no change
						ushort usValue = reader.ReadUInt16();
						// InCntDigi : fixed -> no change
						usValue = reader.ReadUInt16();
						// OutCntDigi : fixed -> no change
						usValue = reader.ReadUInt16();
						// InBaseDigi
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot0", "mediamapping0", "addressinputperipheral0", usValue.ToString() );
						// OutBaseDigi
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot1", "mediamapping0", "addressoutputperipheral0", usValue.ToString() );
						// RetVal : fixed -> no change
						usValue = reader.ReadUInt16();
						// PANbrAna : fixed -> no change
						usValue = reader.ReadUInt16();
						// InCntAna : fixed -> no change
						usValue = reader.ReadUInt16();
						// OutCntAna : fixed -> no change
						usValue = reader.ReadUInt16();
						// InBaseAna
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot2", "mediamapping0", "addressinputperipheral0", usValue.ToString() );
						// OutBaseAna
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot3", "mediamapping0", "addressoutputperipheral0", usValue.ToString() );
						// Configuration with temperature input
						if (bAnaConfigWithTemp)
						{
							// AnaInConf
							byte[] byAnaInConf = new byte[4];
							for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
							{
								byAnaInConf[iChannelCounter] = reader.ReadByte();
							}
							// AnaInmin and AnaInmax
							short[] sAnaInMin = new short[4];
							short[] sAnaInMax = new short[4];
							for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
							{
								sAnaInMin[iChannelCounter] = reader.ReadInt16();
								sAnaInMax[iChannelCounter] = reader.ReadInt16();
							}
							// Update analogue inputs configuration
							for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter ++)
							{
								// Set filter
								bResult &= DevTool.SetBoolProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("filteranalogueinput{0}", iChannelCounter.ToString()), Convert.ToBoolean(byAnaInConf[iChannelCounter] & (byte)0x01));
								// Set mode
								byte byMode = (byte)(byAnaInConf[iChannelCounter] & 0x70);
								switch (byMode)
								{
									case 0x00 :
										// Voltage
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "-10000..10000");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), sAnaInMin[iChannelCounter]);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), sAnaInMax[iChannelCounter]);
										break;
									case 0x20 :
										// Current
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "-20000..20000");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), sAnaInMin[iChannelCounter]);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), sAnaInMax[iChannelCounter]);
										break;
									case 0x40 :
										// 2500 Ohms
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "r2500");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), sAnaInMin[iChannelCounter]);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), sAnaInMax[iChannelCounter]);
										break;
									case 0x50 :
										// Pt1000
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "pt1000");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), -500);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), 4000);
										break;
									case 0x60 :
										// Ni1000
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "ni1000");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), -600);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), 2000);
										break;
									case 0x70 :
										// Ni1000 L&S
										bResult &= DevTool.SetStringProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("rangeinput{0}", iChannelCounter.ToString()), "ni1000ls");
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("mininput{0}", iChannelCounter.ToString()), -600);
										bResult &= DevTool.SetIntProperty("onboardslots", "slot2", string.Format("analogueinput{0}", iChannelCounter.ToString()), string.Format("maxinput{0}", iChannelCounter.ToString()), 2000);
										break;
								}
							}
						}
						else	// Old configuration (without temperature)
						{
							// AnaInConf
							usValue = reader.ReadUInt16();
							bResult &= DevTool.SetBoolProperty( "onboardslots", "slot2", "analogueinput0", "filteranalogueinput0", Convert.ToBoolean( usValue & 0x0001 ) );
							bResult &= DevTool.SetBoolProperty( "onboardslots", "slot2", "analogueinput1", "filteranalogueinput1", Convert.ToBoolean( usValue & 0x0002 ) );
							bResult &= DevTool.SetBoolProperty( "onboardslots", "slot2", "analogueinput2", "filteranalogueinput2", Convert.ToBoolean( usValue & 0x0004 ) );
							bResult &= DevTool.SetBoolProperty( "onboardslots", "slot2", "analogueinput3", "filteranalogueinput3", Convert.ToBoolean( usValue & 0x0008 ) );
							// Analogue inputs
							for (int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter++)
							{
								// AnaIn min
								int iMinValue = reader.ReadInt16();
								bResult &= DevTool.SetIntProperty( "onboardslots", "slot2", string.Format( "analogueinput{0}", iChannelCounter.ToString() ), string.Format( "mininput{0}", iChannelCounter.ToString() ), iMinValue );
								// AnaIn max
								int iMaxValue = reader.ReadInt16();
								bResult &= DevTool.SetIntProperty( "onboardslots", "slot2", string.Format( "analogueinput{0}", iChannelCounter.ToString() ), string.Format( "maxinput{0}", iChannelCounter.ToString() ), iMaxValue );
								if ( ( iMinValue == -20000 ) && ( iMaxValue == 20000 ) )
									bResult &= DevTool.SetStringProperty( "onboardslots", "slot2", string.Format( "analogueinput{0}", iChannelCounter.ToString() ), string.Format( "rangeinput{0}", iChannelCounter.ToString() ), "-20000..20000" );
								else
									bResult &= DevTool.SetStringProperty( "onboardslots", "slot2", string.Format( "analogueinput{0}", iChannelCounter.ToString() ), string.Format( "rangeinput{0}", iChannelCounter.ToString() ), "-10000..10000" );
							}
						}

						// Analogue outputs
						for ( int iChannelCounter = 0; iChannelCounter < 2; iChannelCounter++ )
						{
							// AnaOut min
							int iMinValue = reader.ReadInt16();
							bResult &= DevTool.SetIntProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "minoutput{0}", iChannelCounter.ToString() ), iMinValue );
							// AnaOut max
							int iMaxValue = reader.ReadInt16();
							bResult &= DevTool.SetIntProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "maxoutput{0}", iChannelCounter.ToString() ), iMaxValue );
							// Set range
							if ( ( iMinValue == 0 ) && ( iMaxValue == 4095 ) )
								bResult &= DevTool.SetStringProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "rangeoutput{0}", iChannelCounter.ToString() ), "0..4095" );
							else if ( ( iMinValue == 0 ) && ( iMaxValue == 10000 ) )
								bResult &= DevTool.SetStringProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "rangeoutput{0}", iChannelCounter.ToString() ), "0..10000" );
							else
								bResult &= DevTool.SetStringProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "rangeoutput{0}", iChannelCounter.ToString() ), "specific" );
							// AnaOut res
							int iResetValue = reader.ReadInt16();
							bResult &= DevTool.SetIntProperty( "onboardslots", "slot3", string.Format( "analogueoutput{0}", iChannelCounter.ToString() ), string.Format( "resetoutput{0}", iChannelCounter.ToString() ), iResetValue );
						}
						// ConfDIn
						byte byValue = reader.ReadByte();
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "inputmode", "inputmode0to2", (int)( byValue & 0x03 ) );
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "inputmode", "inputmode3to5", (int)( ( byValue >> 4 ) & 0x03 ) );
						// ConfEncoder
						byValue = reader.ReadByte();
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder0", "enabledoutput0", Convert.ToBoolean( byValue & 0x01 ) );
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder0", "polarityoutput0", Convert.ToBoolean( byValue & 0x02 ) );
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder0", "indexpolarity0", Convert.ToBoolean( byValue & 0x04 ) );
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder1", "enabledoutput1", Convert.ToBoolean( byValue & 0x10 ) );
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder1", "polarityoutput1", Convert.ToBoolean( byValue & 0x20 ) );
						bResult &= DevTool.SetBoolProperty( "onboardslots", "slot0", "counterencoder1", "indexpolarity1", Convert.ToBoolean( byValue & 0x40 ) );
						// Encoder reset output 0
						int iEncoderResetOutput = reader.ReadUInt16();
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "counterencoder0", "resetvalue0", iEncoderResetOutput );
						// Encoder reset output 1
						iEncoderResetOutput = reader.ReadUInt16();
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "counterencoder1", "resetvalue1", iEncoderResetOutput );
						// PANbrEnc
						usValue = reader.ReadUInt16();
						// InCntEnc : fixed -> no change
						usValue = reader.ReadUInt16();
						// OutCntEnc : fixed -> no change
						usValue = reader.ReadUInt16();
						// InBaseEnc
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot0", "mediamapping1", "addressinputperipheral1", usValue.ToString() );
						// OutBaseEnc
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetStringProperty( "onboardslots", "slot0", "mediamapping2", "addressoutputperipheral2", usValue.ToString() );
						// ConfInt
						uint uiValue = reader.ReadUInt32();
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interrupta", (int)( uiValue & 0x0003 ) );
						uiValue >>= 4;
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptb", (int)( uiValue & 0x0003 ) );
						uiValue >>= 4;
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptc", (int)( uiValue & 0x0003 ) );
						uiValue >>= 4;
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptd", (int)( uiValue & 0x0003 ) );
						uiValue >>= 4;
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "counterencoder0", "interrupt0", (int)( uiValue & 0x0001 ) );
						uiValue >>= 4;
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "counterencoder1", "interrupt1", (int)( uiValue & 0x0001 ) );
						// IntXOB
						usValue = reader.ReadUInt16();
						// Interrupt enabled
						if ( usValue > 0 )
						{
							bResult &= DevTool.SetStringProperty( "onboardslots", "slot0", "interrupts", "interruptenabled", "1" );
							bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptxob", (int)usValue );
						}
						else  // Interrupt disabled
						{
							bResult &= DevTool.SetStringProperty( "onboardslots", "slot0", "interrupts", "interruptenabled", "0" );
							bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptxob", 35 );
						}
						// IntXOBInfo
						usValue = reader.ReadUInt16();
						bResult &= DevTool.SetIntProperty( "onboardslots", "slot0", "interrupts", "interruptxobinfo", (int)usValue );

						// Media mapping
						int inputSymbolIndex = 0;
						int outputSymbolIndex = 0;
						int mediaMappingIndex = 0;

						// Digital input (slot 0)
						// Get the media type
						string mediaType = "flag";
						int mediaNumber = 24;
						if ( moduleConfiguration.inputTransferDefinitionList[inputSymbolIndex].DestinationMediaType.ToString() == "Register" ) {
							mediaType = "register";
							mediaNumber = 1;
							bResult &= DevTool.SetPropertyValueStringOfSlot( xSlot, "typemedia" + mediaMappingIndex.ToString(), mediaType );
							bResult &= DevTool.SetPropertyValueIntOfSlot( xSlot, "numbermedia" + mediaMappingIndex.ToString(), mediaNumber );
						}

						int oldFlagFunctionNumber = 138;
						bResult &= moduleConfiguration.FillXmlFromInput( xSlot, ref mediaMappingIndex, ref inputSymbolIndex, mediaType, mediaNumber, oldFlagFunctionNumber );
						//bResult &= moduleConfiguration.FillXmlFromOutput( xSlot, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );

						// Media mapping counter/encoder inputs (slot 0)
						bResult &= moduleConfiguration.FillXmlFromInput( xSlot, ref mediaMappingIndex, ref inputSymbolIndex, null, -1, oldFlagFunctionNumber );
						//bResult &= moduleConfiguration.FillXmlFromOutput( xSlot, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );

						// Analogue input (slot 2)
						mediaMappingIndex = 0;
						XmlNode xSlot2 = DevTool.GetSlotObject("onboardslots", "slot2");

						bResult &= moduleConfiguration.FillXmlFromInput( (XmlElement) xSlot2, ref mediaMappingIndex, ref inputSymbolIndex, null, -1, oldFlagFunctionNumber );
						//bResult &= moduleConfiguration.FillXmlFromOutput( (XmlElement) xSlot2, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );

						// Analogue input status (slot 2)
						if (bAnaConfigWithTemp)
						{
							// Get the media type
							mediaType = "register";
							mediaNumber = 4;
							if ( moduleConfiguration.inputTransferDefinitionList[inputSymbolIndex].DestinationMediaType.ToString() == "Flag" ) {
								mediaType = "flag";
								mediaNumber = 32;
								bResult &= DevTool.SetPropertyValueStringOfSlot( xSlot2, "typemedia" + mediaMappingIndex.ToString(), mediaType );
								bResult &= DevTool.SetPropertyValueIntOfSlot( xSlot2, "numbermedia" + mediaMappingIndex.ToString(), mediaNumber );
							}
							oldFlagFunctionNumber = 138;
							bResult &= moduleConfiguration.FillXmlFromInput( (XmlElement) xSlot2, ref mediaMappingIndex, ref inputSymbolIndex, mediaType, mediaNumber, oldFlagFunctionNumber );
							//bResult &= moduleConfiguration.FillXmlFromOutput( xSlot, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );
						}
						// Digital output (slot 1)
						XmlNode xSlot1 = DevTool.GetSlotObject("onboardslots", "slot1");
						mediaMappingIndex = 0;
						// Get the media type
						mediaType = "flag";
						mediaNumber = 16;
						if ( moduleConfiguration.inputTransferDefinitionList[outputSymbolIndex].DestinationMediaType.ToString() == "Register" ) {
							mediaType = "register";
							mediaNumber = 1;
							bResult &= DevTool.SetPropertyValueStringOfSlot( xSlot1, "typemedia" + mediaMappingIndex.ToString(), mediaType );
							bResult &= DevTool.SetPropertyValueIntOfSlot( xSlot1, "numbermedia" + mediaMappingIndex.ToString(), mediaNumber );
						}
						oldFlagFunctionNumber = 138;
						//bResult &= moduleConfiguration.FillXmlFromInput( (XmlElement)xSlot2, ref mediaMappingIndex, ref inputSymbolIndex, mediaType, mediaNumber, oldFlagFunctionNumber );
						bResult &= moduleConfiguration.FillXmlFromOutput( (XmlElement)xSlot2, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );

						// Analogue output (slot 3)
						XmlNode xSlot3 = DevTool.GetSlotObject("onboardslots", "slot3");
						mediaMappingIndex = 0;
						//bResult &= moduleConfiguration.FillXmlFromInput( (XmlElement)xSlot3, ref mediaMappingIndex, ref inputSymbolIndex, null, -1, oldFlagFunctionNumber );
						bResult &= moduleConfiguration.FillXmlFromOutput( (XmlElement)xSlot3, ref mediaMappingIndex, ref outputSymbolIndex, null, -1, oldFlagFunctionNumber );

					]]>
				</IOHandlingFromDBx>
			</Object>
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- 12 Digital outputs (slot1)                                       -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<Object name="12digitaloutputs">
				<Desc lang="en">12 Digital Outputs</Desc>
				<Desc lang="de">12 digitale Ausgänge</Desc>
				<Desc lang="fr">12 Sorties Digitales</Desc>
				<Info lang="en">12 digital outputs, 24VDC, 0.5A, transistor, connectors 3 and 4.</Info>
				<Info lang="de">12 digitale Ausgänge, 24VDC, 0.5A, Transistor, Stecker 3 und 4.</Info>
				<Info lang="fr">12 sorties digitales, 24VDC, 0.5A, transistor, connecteurs 3 et 4.</Info>
				<PropertyList>
					<Category name="mediamapping0">
						<Desc lang="en">Media Mapping</Desc>
						<Desc lang="de">Media Mapping</Desc>
						<Desc lang="fr">Media mapping</Desc>
						<Item name="addressoutputperipheral0" type="uint" visible="true">
							<Desc lang="en">Peripheral Base Address</Desc>
							<Desc lang="de">Basis Peripherie Index</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique</Desc>
							<Info lang="en">Address of the digital output values in the peripheral output memory.</Info>
							<Info lang="de">Basis Peripherie Index im Ausgangs-Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für digitale Ausgänge.</Info>
							<Info lang="fr">Adresse des valeurs de sorties digitales dans la mémoire périphérique des sorties.</Info>
							<Default>0</Default>
							<Range min="0" max="65533" />
						</Item>
						<Item name="rangeoutputperipheral0" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range</Desc>
							<Desc lang="de">Bereich eines Peripherieindex</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique</Desc>
							<Info lang="en">Number of bytes needs in the peripheral output memory to store the digital output values.</Info>
							<Info lang="de">Zu reservierende Bytes im Peripheriespeicher für digitale Ausgänge.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs des sorties digitales dans la mémoire périphérique des sorties.</Info>
							<Default>2</Default>
						</Item>
						<Item name="enabledmediamapping0" type="stringlist">
							<Desc lang="en">Media Mapping Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv</Desc>
							<Desc lang="fr">Media mapping actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the digital outputs; a cyclic actualization of the output values present in the peripheral memory with the specified media contents.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die digitale Ausgänge zu aktivieren (Prozessabbild). Wenn gewählt werden die Werte der spezifizierten Flags zyklisch (zu Beginn des ersten programmierten COB) auf die Ausgänge kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour les sorties digitales; actualisation cyclique des valeurs de sorties présentes dans la mémoire périphérique avec le contenu des médias spécifiés.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping0" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping</Desc>
							<Desc lang="de">Richtung des Media Mapping</Desc>
							<Desc lang="fr">Media mapping direction</Desc>
							<Info lang="en">Direction of the media mapping transfer for the digital outputs.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping für die digitalen Ausgänge.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping des sorties digitales.</Info>
							<Default>mediatoperipheral</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia0" type="stringlist">
							<Desc lang="en">Media Type</Desc>
							<Desc lang="de">Medien Typ</Desc>
							<Desc lang="fr">Type de média</Desc>
							<Info lang="en">Type of media used to map the 12 digital values.</Info>
							<Info lang="de">Medientyp verwendet um die digitalen Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les 12 valeurs digitales.</Info>
							<Default>flag</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia0" type="uint" ro="true">
							<Desc lang="en">Number Of Media</Desc>
							<Desc lang="de">Medienanzahl</Desc>
							<Desc lang="fr">Nombre de médias</Desc>
							<Info lang="en">Number of media (register or flag) used to map the 12 digital values.</Info>
							<Info lang="de">Anzahl von Medien (Register oder Flags), von welchen die digitalen Werte durch das Media Mapping auf die Ausgänge geschrieben werden.</Info>
							<Info lang="fr">Nombre de médias (registre ou flag) utilisés pour contenir les 12 valeurs digitales.</Info>
							<Default>16</Default>
						</Item>
						<Item name="addressmedia0" type="text" visible="false">
							<Desc lang="en">Media Address</Desc>
							<Desc lang="de">Basis Medien Adresse</Desc>
							<Desc lang="fr">Adresse des médias</Desc>
							<Info lang="en">Address of the first mapped media (register or flag) where the digital values will be readen. Each media will have an address incremented from the base address.</Info>
							<Info lang="de">Medienadresse (Flag oder Register Adresse) von welchen die digitalen Werte durch das Media Mapping auf die Ausgänge kopiert werden. Die Adressen der einzelnen Medien für die Ausgänge werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse des médias (registre ou flag) à partir de laquelle les valeurs digitales seront lues. Chaque media aura son adresse incrémentée à partir de l'adresse de base.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols0" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions</Desc>
							<Desc lang="de">Basis Symbol Definitionen</Desc>
							<Desc lang="fr">Définition du symboles de base</Desc>
							<Info lang="en">Base Symbol definitions.</Info>
							<Info lang="de">Definition der Symbolnamen der Register oder Flags, auf/von welchen die Ein/Ausgänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles de base.</Info>
							<Default>S.IO.DigitalOutput</Default>
						</Item>
						<Item name="flagsymbols0" type="text" visible="false">
							<Desc lang="en">Flag Symbol Definitions</Desc>
							<Desc lang="de">Flag Symboldefinitionen</Desc>
							<Desc lang="fr">Flag définition symboles</Desc>
							<Info lang="en">Symbol definitions for the flags.</Info>
							<Info lang="de">Symboldefinitionen für Flags.</Info>
							<Info lang="fr">Définition des symboles pour les flags.</Info>
							<Default xml:space="preserve">IO.DigitalOutput0	Digital output 0	S_IO	IO.DigitalOutput1	Digital output 1	S_IO	IO.DigitalOutput2	Digital output 2	S_IO	IO.DigitalOutput3	Digital output 3	S_IO	IO.DigitalOutput4	Digital output 4	S_IO	IO.DigitalOutput5	Digital output 5	S_IO	IO.DigitalOutput6	Digital output 6	S_IO	IO.DigitalOutput7	Digital output 7	S_IO	IO.DigitalOutput8	Digital output 8	S_IO	IO.DigitalOutput9	Digital output 9	S_IO	IO.DigitalOutput10	Digital output 10	S_IO	IO.DigitalOutput11	Digital output 11	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO</Default>
						</Item>
						<Item name="flagaddress0" type="text" visible="false">
							<Desc lang="en">Media Address </Desc>
							<Desc lang="de">Basis Medien Adresse </Desc>
							<Desc lang="fr">Adresse des médias </Desc>
							<Info lang="en">Media Address for the flag.</Info>
							<Info lang="de">Basis Medien Adresse für die Flag.</Info>
							<Info lang="fr">Adresse des médias pour les flags.</Info>
							<Default xml:space="preserve">S.IO.DigitalOutput + 0	1	Public	S.IO.DigitalOutput + 1	1	Public	S.IO.DigitalOutput + 2	1	Public	S.IO.DigitalOutput + 3	1	Public	S.IO.DigitalOutput + 4	1	Public	S.IO.DigitalOutput + 5	1	Public	S.IO.DigitalOutput + 6	1	Public	S.IO.DigitalOutput + 7	1	Public	S.IO.DigitalOutput + 8	1	Public	S.IO.DigitalOutput + 9	1	Public	S.IO.DigitalOutput + 10	1	Public	S.IO.DigitalOutput + 11	1	Public		0	Public		0	Public		0	Public		0	Public</Default>
						</Item>
						<Item name="registersymbols0" type="text" visible="false">
							<Desc lang="en">Register Symbol Definitions</Desc>
							<Desc lang="de">Register Symboldefinitionen</Desc>
							<Desc lang="fr">Registre définition symboles</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Symboldefinitionen für Register.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.DigitalOutput	Digital output (0 - 15)	S_IO</Default>
						</Item>
						<Item name="registeraddress0" type="text" visible="false">
							<Desc lang="en">Media Address  </Desc>
							<Desc lang="de">Basis Medien Adresse  </Desc>
							<Desc lang="fr">Adresse des médias  </Desc>
							<Info lang="en">Media Address for the registers.</Info>
							<Info lang="de">Basis Medien Adresse für die Register.</Info>
							<Info lang="fr">Adresse des médias pour les registres.</Info>
							<Default xml:space="preserve">S.IO.DigitalOutput + 0	1	Public</Default>
						</Item>
						<!--Item name="xx7mappingingcycle0" type="stringlist" visible="false">
							<Desc lang="en">Included In Process Image</Desc>
							<Desc lang="de">Im Prozessabbild</Desc>
							<Desc lang="fr">Inclus dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<!--Called when a property changes-->
					<PropertyNotificationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty("this", "this", "system", "xx7plc") )
							{

								// CLASSIC

								// Get process image and media mapping status
								bool bAutoProcessImage =
									DevTool.GetStringProperty( "this", "this", "iohandling", "peripheraladdressdefinition" ) == "auto";
								bool bMediaMapping = PropTool.GetPropertyValueString( "enabledmediamapping0" ) != "0";
								// Adjust visibility of process image parameters
								PropTool.SetVisibleProperty( "addressoutputperipheral0", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeoutputperipheral0", !bAutoProcessImage );
								// Adjust the process image address
								if ( bAutoProcessImage )
								{
									int iAddressPeripheral = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
									int iRangePeripheral = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );
									iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, false, bMediaMapping, 1024, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressoutputperipheral0", iAddressPeripheral.ToString() );
								}

								// Set media definition status
								PropTool.SetReadOnlyProperty( "typemedia0", !bMediaMapping );
								PropTool.SetReadOnlyProperty( "addressmedia0", !bMediaMapping );

								// Adjust the type of media, the number of media and the address of media
								if ( PropTool.GetPropertyValueString( "typemedia0" ) == "flag" )
								{
									bPropertyModified |= PropTool.SetPropertyValueString( "numbermedia0", "16" );
//									PropTool.SetMaxRange("addressmedia0", 14319);
//									if (bMediaMapping)
//									{
//										int iValueMediaAddress = PropTool.GetPropertyValueInt( "addressmedia0" );
//										iValueMediaAddress = DevTool.GetFlagAddress( sCurrentSlotFullPath, 0, iValueMediaAddress, 16 );
//										bPropertyModified |= PropTool.SetPropertyValueString( "addressmedia0", iValueMediaAddress.ToString() );
//									}
//									PropTool.SetReadOnlyProperty( "flagsymbols0", !bMediaMapping );
//									PropTool.SetReadOnlyProperty( "registersymbols0", true );
								}
								else	// Register
								{
									bPropertyModified |= PropTool.SetPropertyValueString( "numbermedia0", "1" );
//									PropTool.SetMaxRange("addressmedia0", 16383);
//									if (bMediaMapping)
//									{
//										int iValueMediaAddress = PropTool.GetPropertyValueInt( "addressmedia0" );
//										iValueMediaAddress = DevTool.GetRegisterAddress( sCurrentSlotFullPath, 0, iValueMediaAddress, 1 );
//										bPropertyModified |= PropTool.SetPropertyValueString( "addressmedia0", iValueMediaAddress.ToString() );
//									}
//									PropTool.SetReadOnlyProperty( "registersymbols0", !bMediaMapping );
//									PropTool.SetReadOnlyProperty( "flagsymbols0", true );
								}
								switch ( sModifiedPropertyName )
								{
								case "enabledmediamapping0":
									PropTool.PropToolEventArgs propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sModifiedPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
									propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sModifiedPropertyName );
									propToolEventArgs.value = PropTool.GetPropertyValueBool( sModifiedPropertyName );
									try {
										PropTool.OnMediaMappingEnableChange( propToolEventArgs );
									} catch ( Exception e ) {
										throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange() on enabledmediamapping0", e );
									}
									break;

								case "typemedia0":
									propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sModifiedPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
									propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sModifiedPropertyName );
									propToolEventArgs.value = PropTool.GetPropertyValueString( sModifiedPropertyName );
									try {
										PropTool.OnTypeMediaChange( propToolEventArgs );
									} catch ( Exception e ) {
										throw new Exception( "Error durring PropTool.OnTypeMediaChange()", e );
									}
									break;
								}
							}
							else
							{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse(DevTool.GetStringProperty("this", "this", "iohandling", "xx7cycleloop"));

								PropTool.SetVisibleProperty( "rangeoutputperipheral0", false);
								PropTool.SetVisibleProperty( "enabledmediamapping0", false);
								PropTool.SetVisibleProperty( "typemedia0", false);
								PropTool.SetVisibleProperty( "addressmedia0", false);
								PropTool.SetVisibleProperty( "numbermedia0", false);
								PropTool.SetVisibleProperty( "flagsymbols0", false);
								PropTool.SetVisibleProperty( "registersymbols0", false);
								//PropTool.SetVisibleProperty( "xx7mappingingcycle0", true);

								PropTool.SetPropertyDefaultValue( "addressoutputperipheral0", "0");
								//PropTool.SetPropertyValueString( "enabledmediamapping0", PropTool.GetPropertyValueString("xx7mappingingcycle0"));

								// Adjust process image address
								int iAddressPeripheral = PropTool.GetPropertyValueInt("addressoutputperipheral0");
								if ( iAddressPeripheral == 1024 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressoutputperipheral0", false );
									iAddressPeripheral = PropTool.GetPropertyValueInt("addressoutputperipheral0");
								}
								int iRangePeripheral = PropTool.GetPropertyValueInt("rangeoutputperipheral0");

								//bool iXX7incycleloop = PropTool.GetPropertyValueString("xx7mappingingcycle0") == "1";
								bool iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

								iAddressPeripheral = DevTool.GetMemoryImageAddress(sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, false, iXX7incycleloop, iXX7cycleAdrThreshold, 65534);
								bPropertyModified |= PropTool.SetPropertyValueString("addressoutputperipheral0", iAddressPeripheral.ToString());
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

							}

						]]>
					</PropertyNotificationScript>
					<!--Called	when property grid loses the focus-->
					<PropertyValidationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty("this", "this", "system", "xx7plc") )

							{

								// CLASSIC

								// Get address and range output process image
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( 1024, out bWarning ) )
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

									// Check MediaMapping
									PropTool.CheckMediaMapping( messageList, sItem, sItemLocation, sCurrentSlotFullPath, "ER_1204", "ER_1205" );

								// Overlap with analogue output or with encoder output range ?
								if ( DevTool.OutputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "WR_1202", sItem, sItemLocation );

							}
							else
							{

								// XX7

								// Get address and range output process image
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								int iXX7cycleAdrThreshold = int.Parse(DevTool.GetStringProperty("this", "this", "iohandling", "xx7cycleloop"));
								if (!PropTool.MemoryImageRangeFittsWithMediaMappingState(iXX7cycleAdrThreshold, out bWarning)) {
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								} else {
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

								// Overlap with analogue output or with encoder output range ?
								if ( DevTool.OutputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "WR_1202", sItem, sItemLocation );

							}

						]]>
					</PropertyValidationScript>
				</PropertyList>
			</Object>
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- 4 Analogue inputs (slot2)                                        -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<Object name="4analogueinputs">
				<Desc lang="en">4 Analogue Inputs</Desc>
				<Desc lang="de">4 analoge Eingänge</Desc>
				<Desc lang="fr">4 Entrées Analogiques</Desc>
				<Info lang="en">4 analogue inputs, -10..+10VDC, 0..20mA, Pt/Ni 1000 or resistance, 12/13 bit, connector 0.</Info>
				<Info lang="de">4 analoge Eingänge, -10..+10VDC, 0..20mA, Pt/Ni 1000 oder Widerstandsmessung, 12/13 Bit, Stecker 0.</Info>
				<Info lang="fr">4 entrées analogiques, -10..+10VDC, 0..20mA, Pt/Ni 1000 ou mesure de résistance, 12/13 bit, connecteur 0.</Info>
				<PropertyList>
					<Category name="mediamapping0">
						<Desc lang="en">					Media Mapping Analogue Inputs</Desc>
						<Desc lang="de">					Media Mapping analoge Eingänge</Desc>
						<Desc lang="fr">					Media mapping entrées analogiques</Desc>
						<Item name="addressinputperipheral0" type="uint" visible="true">
							<Desc lang="en">Peripheral Base Address For Inputs</Desc>
							<Desc lang="de">Basis Peripherie Index für Eingänge</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique pour entrées</Desc>
							<Info lang="en">Address of the 4 analogue input values in the peripheral input memory.</Info>
							<Info lang="de">Basis Peripherie Index im Eingangs-Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für analoge Eingänge.</Info>
							<Info lang="fr">Adresse des 4 valeurs d'entrées analogiques dans la mémoire périphérique des entrées.</Info>
							<Default>4</Default>
							<Range min="0" max="65533" />
						</Item>
						<Item name="rangeinputperipheral0" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range For Inputs</Desc>
							<Desc lang="de">Bereich eines Peripherieindex für analoge Eingänge</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique pour entrées</Desc>
							<Info lang="en">Number of bytes needs in the peripheral input memory to store to analogue input values.</Info>
							<Info lang="de">Zu reservierende Bytes im Peripheriespeicher für analoge Eingänge.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs d'entrées analogiques dans la mémoire périphérique des entrées.</Info>
							<Default>12</Default>
						</Item>
						<Item name="enabledmediamapping0" type="stringlist">
							<Desc lang="en">Media Mapping For Inputs Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv für analoge Eingänge</Desc>
							<Desc lang="fr">Media mapping pour entrées actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the analogue inputs; a cyclic actualization of the media specified with the inputs values present in the peripheral memory.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die analogen Eingänge zu aktivieren (Prozessabbild). Wenn gewählt werden die Eingangswerte der Eingänge zyklisch (zu Beginn des ersten programmierten COB) auf die spezifizierten Medien (Register) kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour les entrées analogiques; actualisation cyclique des médias spécifiés avec les valeurs d'entrées présentes dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping0" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping For Inputs</Desc>
							<Desc lang="de">Richtung des Media Mapping für Eingänge</Desc>
							<Desc lang="fr">Media mapping direction pour entrées</Desc>
							<Info lang="en">Direction of the media mapping transfer for the analogue inputs.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping  für die analogen Eingänge.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping des entrées analogiques.</Info>
							<Default>peripheraltomedia</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia0" type="stringlist" ro="true">
							<Desc lang="en">Media Type For Inputs</Desc>
							<Desc lang="de">Medien Typ For Inputs</Desc>
							<Desc lang="fr">Type de média For Inputs</Desc>
							<Info lang="en">Type of media used to map the 4 analogue values.</Info>
							<Info lang="de">Medientyp verwendet um die analogen Werte durch Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les 4 valeurs analogiques.</Info>
							<Default>register</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia0" type="uint" ro="true">
							<Desc lang="en">Number Of Media For Inputs</Desc>
							<Desc lang="de">Medienanzahl für Eingänge</Desc>
							<Desc lang="fr">Nombre de médias pour entrées</Desc>
							<Info lang="en">Number of media (register) used to map the 4 analogue values.</Info>
							<Info lang="de">Anzahl von Medien (Register), die  verwendet werden um die analogen Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Nombre de médias (registre) utilisés pour contenir les 4 valeurs analogiques.</Info>
							<Default>4</Default>
						</Item>
						<Item name="addressmedia0" type="text" visible="false">
							<Desc lang="en">Media Address For Inputs</Desc>
							<Desc lang="de">Basis Medien Adresse für Eingänge</Desc>
							<Desc lang="fr">Adresse des médias pour entrées</Desc>
							<Info lang="en">Address of the first mapped media (register) where the analogue values will be stored. Each media will have an address incremented from the base address.</Info>
							<Info lang="de">Erste Medienadresse (Registeradresse) in welche die analogen Einganswerte durch das Media Mapping kopiert werden. Die Adressen der einzelnen Register für die Eingänge werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse de base des médias (register) à partir de laquelle les valeurs analogiques seront sauvegardées. Chaque media aura son adresse incrémentée à partir de l'adresse de base.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols0" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions</Desc>
							<Desc lang="de">Basis Symbol Definitionen</Desc>
							<Desc lang="fr">Définition du symboles de base</Desc>
							<Info lang="en">Base Symbol definitions for the register.</Info>
							<Info lang="de">Basisdefinition der Symbolnamen der Register, auf welche die Eingänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles de base pour les registres.</Info>
							<Default>S.IO.AnalogueInput</Default>
						</Item>
						<Item name="registersymbols0" type="text" visible="false">
							<Desc lang="en">Symbol Definitions For Inputs</Desc>
							<Desc lang="de">Symboldefinitionen für Eingänge</Desc>
							<Desc lang="fr">Définition symboles pour entrées</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Definition der Symbolnamen der Register, auf welche die Einganswerte kopiert werden.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.AnalogueInput0	Analogue input 0	S_IO	IO.AnalogueInput1	Analogue input 1	S_IO	IO.AnalogueInput2	Analogue input 2	S_IO	IO.AnalogueInput3	Analogue input 3	S_IO</Default>
						</Item>
						<Item name="registeraddress0" type="text" visible="false">
							<Desc lang="en">Symbol Address For Inputs</Desc>
							<Desc lang="de">Symboladdresse für Eingänge</Desc>
							<Desc lang="fr">Définition adresses symboles pour entrées</Desc>
							<Info lang="en">Address definitions for the registers.</Info>
							<Info lang="de">Definition der Symboladdresse der Register, auf welche die Einganswerte kopiert werden.</Info>
							<Info lang="fr">Définition des adresses de symboles pour les registres.</Info>
							<Default xml:space="preserve">S.IO.AnalogueInput + 0	1	Public	S.IO.AnalogueInput + 1	1	Public	S.IO.AnalogueInput + 2	1	Public	S.IO.AnalogueInput + 3	1	Public</Default>
						</Item>
						<!--Item name="xx7mappingingcycle0" type="stringlist" visible="false">
							<Desc lang="en">Included In Process Image</Desc>
							<Desc lang="de">Im Prozessabbild</Desc>
							<Desc lang="fr">Inclus dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<Category name="mediamapping1">
						<Desc lang="en">				Media Mapping Status/Diagnostic</Desc>
						<Desc lang="de">				Media Mapping Status/Diagnose</Desc>
						<Desc lang="fr">				Media mapping statut/diagnostic</Desc>
						<Item name="addressinputperipheral1" type="uint" visible="false">
							<Desc lang="en">Peripheral Address For Status/Diagnostic</Desc>
							<Desc lang="de">Peripherie Index für Status/Diagnose</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique pour statut/diagnostic</Desc>
							<Info lang="en">Address of the analogue input status/diagnostic values in the peripheral input memory.</Info>
							<Info lang="de">Index der Status/Diagnose-Werte der analogen Eingänge im Eingangs-Peripheriespeicher.</Info>
							<Info lang="fr">Adresse des valeurs de statut/diagnostic des entrées analogiques dans la mémoire périphérique des entrées.</Info>
							<Default>4</Default>
							<Range min="0" max="65533" />
						</Item>
						<Item name="rangeinputperipheral1" type="uint" visible="false">
							<Desc lang="en">Peripheral Address Range For Status/Diagnostic</Desc>
							<Desc lang="de">Bereich eines Peripherieindex für Status/Diagnose</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique pour statut/diagnostic</Desc>
							<Info lang="en">Number of bytes needs in the peripheral input memory to store to analogue input status/diagnostic values.</Info>
							<Info lang="de">Zu reservierende Bytes im Peripheriespeicher für Status/Diagnose der analogen Eingangswerte.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs de statut/diagnostic des entréees analogiques dans la mémoire périphérique des entrées.</Info>
							<Default>0</Default>
						</Item>
						<Item name="enabledmediamapping1" type="stringlist" visible="false">
							<Desc lang="en">Media Mapping For Status/Diagnostic Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv für Status/Diagnose</Desc>
							<Desc lang="fr">Media mapping actif pour statut/diagnostic</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the status/diagnostic value of the analogue inputs; a cyclic actualization of the specified media content with the status values present in the peripheral memory.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für Status/Diagnose-Werte zu aktivieren (Prozessabbild). Wenn gewählt werden die Status/Diagnose-Werte der analogen Eingänge zyklisch (zu Beginn des ersten programmierten COB) auf die spezifizierten Medien kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour le statut/diagnostic des entrées analogiques, actualisation cyclique des médias spécifiés avec les valeurs des entrées présentes dans la mémoire périphérique.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping1" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping For Status/Diagnostic</Desc>
							<Desc lang="de">Richtung des Media Mapping für Status/Diagnose</Desc>
							<Desc lang="fr">Media mapping direction pour statut/diagnostic</Desc>
							<Info lang="en">Direction of the media mapping transfer for the status/diagnostic values.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping  für Status/Diagnose der analogen Eingänge.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping du statut/diagnostic des entrées analogiques.</Info>
							<Default>peripheraltomedia</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia1" type="stringlist">
							<Desc lang="en">Media Type For Status/Diagnostic</Desc>
							<Desc lang="de">Medien Typ für Status/Diagnose</Desc>
							<Desc lang="fr">Type de média pour statut/diagnostic</Desc>
							<Info lang="en">Type of media used to map the status/diagnostic values.</Info>
							<Info lang="de">Medientyp verwendet um die Status/Diagnose-Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les valeurs de statut/diagnostic.</Info>
							<Default>register</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia1" type="uint" ro="true">
							<Desc lang="en">Number Of Media For Status/Diagnostic</Desc>
							<Desc lang="de">Medienanzahl für Status/Diagnose</Desc>
							<Desc lang="fr">Nombre de médias pour statut/diagnostic</Desc>
							<Info lang="en">Number of media (flag or register) used to map the status/diagnostic values.</Info>
							<Info lang="de">Anzahl von Medien (Flag oder Register), die verwendet werden um die Status/Diagnose-Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Nombre de médias (flag ou registre) utilisés pour contenir les valeurs de statut/diagnostic.</Info>
							<Default>4</Default>
						</Item>
						<Item name="addressmedia1" type="text" visible="false">
							<Desc lang="en">Media Address For Status/Diagnostic</Desc>
							<Desc lang="de">Basis Medien Adresse für Status/Diagnose</Desc>
							<Desc lang="fr">Adresse des médias pour statut/diagnostic</Desc>
							<Info lang="en">Address of the first mapped media (flag or register) where the status/diagnostic values will be written. Each media will have an address incremented from the first media address.</Info>
							<Info lang="de">Medienadresse (Flag oder Register Adresse) auf welche die Status/Diagnose-Werte durch das Media Mapping kopiert werden. Die Adressen der einzelnen Medien werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse du premier média (flag ou registre) à partir duquel les valeurs de statut/diagnostic seront écrites. Chaque media aura son adresse incrémentée à partir de l'adresse du premier média.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols1" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions </Desc>
							<Desc lang="de">Basis Symbol Definitionen </Desc>
							<Desc lang="fr">Définition du symboles de base </Desc>
							<Info lang="en">Base Symbol definitions.</Info>
							<Info lang="de">Definition der Symbolnamen der Register oder Flags, auf/von welchen die Ein/Ausgänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles.</Info>
							<Default>S.IO.StatusAnalogueInput</Default>
						</Item>
						<Item name="flagsymbols1" type="text" visible="false">
							<Desc lang="en">Flags Definition For Status/Diagnostic</Desc>
							<Desc lang="de">Flag Symboldefinition für Status/Diagnose</Desc>
							<Desc lang="fr">Definition Flag pour statut/diagnostic</Desc>
							<Info lang="en">Symbol definitions for the flags.</Info>
							<Info lang="de">Symboldefinition der Flags, die verwendet werden um die Status/Diagnose-Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Définition des symboles pour les flags.</Info>
							<Default xml:space="preserve">IO.AnalogueInput0StatusError	Analogue input 0 status error	S_IO	IO.AnalogueInput0StatusUnderRun	Analogue input 0 status under run	S_IO	IO.AnalogueInput0StatusOverRun	Analogue input 0 status over run	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO	IO.AnalogueInput1StatusError	Analogue input 1 status error	S_IO	IO.AnalogueInput1StatusUnderRun	Analogue input 1 status under run	S_IO	IO.AnalogueInput1StatusOverRun	Analogue input 1 status over run	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO	IO.AnalogueInput2StatusError	Analogue input 2 status error	S_IO	IO.AnalogueInput2StatusUnderRun	Analogue input 2 status under run	S_IO	IO.AnalogueInput2StatusOverRun	Analogue input 2 status over run	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO	IO.AnalogueInput3StatusError	Analogue input 3 status error	S_IO	IO.AnalogueInput3StatusUnderRun	Analogue input 3 status under run	S_IO	IO.AnalogueInput3StatusOverRun	Analogue input 3 status over run	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO		not used	S_IO</Default>
						</Item>
						<Item name="flagaddress1" type="text" visible="false">
							<Desc lang="en">Media Address</Desc>
							<Desc lang="de">Basis Medien Adresse</Desc>
							<Desc lang="fr">Adresse des médias</Desc>
							<Info lang="en">Media Address for the flag</Info>
							<Info lang="de">Basis Medien Adresse for the flag</Info>
							<Info lang="fr">Adresse des médias for the flag</Info>
							<Default xml:space="preserve">S.IO.StatusAnalogueInput + 0	1	Public	S.IO.StatusAnalogueInput + 1	1	Public	S.IO.StatusAnalogueInput + 2	1	Public		0	Public		0	Public		0	Public		0	Public		0	Public	S.IO.StatusAnalogueInput + 8	1	Public	S.IO.StatusAnalogueInput + 9	1	Public	S.IO.StatusAnalogueInput + 10	1	Public		0	Public		0	Public		0	Public		0	Public		0	Public	S.IO.StatusAnalogueInput + 16	1	Public	S.IO.StatusAnalogueInput + 17	1	Public	S.IO.StatusAnalogueInput + 18	1	Public		0	Public		0	Public		0	Public		0	Public		0	Public	S.IO.StatusAnalogueInput + 24	1	Public	S.IO.StatusAnalogueInput + 25	1	Public	S.IO.StatusAnalogueInput + 26	1	Public		0	Public		0	Public		0	Public		0	Public		0	Public</Default>
						</Item>
						<Item name="registersymbols1" type="text" visible="false">
							<Desc lang="en">Registers Definition For Status/Diagnostic</Desc>
							<Desc lang="de">Register Symboldefinition für Status/Diagnose</Desc>
							<Desc lang="fr">Definition Registres pour statut/diagnostic</Desc>
							<Info lang="en">Symbol definitions for the register.</Info>
							<Info lang="de">Symboldefinition der Register, die verwendet werden um die Status/Diagnose-Werte durch das Media Mapping abzubilden.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.StatusAnalogueInput0	Status analogue input 0	S_IO	IO.StatusAnalogueInput1	Status analogue input 1	S_IO	IO.StatusAnalogueInput2	Status analogue input 2	S_IO	IO.StatusAnalogueInput3	Status analogue input 3	S_IO</Default>
						</Item>
						<Item name="registeraddress1" type="text" visible="false">
							<Desc lang="en">Media Address </Desc>
							<Desc lang="de">Basis Medien Adresse </Desc>
							<Desc lang="fr">Adresse des médias </Desc>
							<Info lang="en">Media Address for the registers</Info>
							<Info lang="de">Basis Medien Adresse für Register</Info>
							<Info lang="fr">Adresse des médias pour les registres</Info>
							<Default xml:space="preserve">S.IO.StatusAnalogueInput + 0	1	Public	S.IO.StatusAnalogueInput + 1	1	Public	S.IO.StatusAnalogueInput + 2	1	Public	S.IO.StatusAnalogueInput + 3	1	Public</Default>
						</Item>
					</Category>
					<Category name="analogueinput0">
						<Desc lang="en">			Analogue Input 0</Desc>
						<Desc lang="de">			Analog Eingang 0</Desc>
						<Desc lang="fr">			Entrée Analogique 0</Desc>
						<Item name="filteranalogueinput0" type="stringlist">
							<Desc lang="en">Filter Analogue Input 0</Desc>
							<Desc lang="de">Filter für analogen Eingang 0</Desc>
							<Desc lang="fr">Filtre entrée analogique 0</Desc>
							<Info lang="en">Select 'On' to enable the average filter for this analogue input.</Info>
							<Info lang="de">'Ein' anwählen um den Eingangsfilter für diesen analogen Eingang einzuschalten.</Info>
							<Info lang="fr">Sélectionner 'Actif' pour activer le filtre pour cette entrée analogique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Off</StringItem>
								<StringItem value="1">On</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aus</StringItem>
								<StringItem value="1">Ein</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas actif</StringItem>
								<StringItem value="1">Actif</StringItem>
							</StringList>
						</Item>
						<Item name="rangeinput0" type="stringlist">
							<Desc lang="en">Input 0 Range</Desc>
							<Desc lang="de">Bereich Eingang 0</Desc>
							<Desc lang="fr">Plage pour entrée 0</Desc>
							<Info lang="en">Select the range for the analogue input 0.</Info>
							<Info lang="de">Bereich für den analogen Eingang 0 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour l'entrée analogique 0.</Info>
							<Default>-10000..10000</Default>
							<StringList lang="en">
								<StringItem value="-10000..10000">Voltage Input (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Current Input (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="-10000..10000">Spannungseingang (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Stromeingang (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="-10000..10000">Entrée de tension (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Entrée de courrant (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
						</Item>
						<Item name="mininput0" type="int" ro="false">
							<Desc lang="en">Minimum Value Input 0</Desc>
							<Desc lang="de">Minimalwert Eingang 0</Desc>
							<Desc lang="fr">Valeur minimale entrée 0</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue input 0.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Eingangs 0.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 0.</Info>
							<Default>-10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxinput0" type="int" ro="false">
							<Desc lang="en">Maximum Value Input 0</Desc>
							<Desc lang="de">Maximalwert Eingang 0</Desc>
							<Desc lang="fr">Valeur maximale entrée 0</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue input 0.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Eingangs 0.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 0.</Info>
							<Default>10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<Category name="analogueinput1">
						<Desc lang="en">		Analogue Input 1</Desc>
						<Desc lang="de">		Analog Eingang 1</Desc>
						<Desc lang="fr">		Entrée Analogique 1</Desc>
						<Item name="filteranalogueinput1" type="stringlist">
							<Desc lang="en">Filter Analogue Input 1</Desc>
							<Desc lang="de">Filter für ananlogen Eingang 1</Desc>
							<Desc lang="fr">Filtre entrée analogique 1</Desc>
							<Info lang="en">Select 'On' to enable the average filter for this analogue input.</Info>
							<Info lang="de">'Ein' anwählen um den Eingangsfilter für diesen analogen Eingang einzuschalten.</Info>
							<Info lang="fr">Sélectionner 'Actif' pour activer le filtre pour cette entrée analogique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Off</StringItem>
								<StringItem value="1">On</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aus</StringItem>
								<StringItem value="1">Ein</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas actif</StringItem>
								<StringItem value="1">Actif</StringItem>
							</StringList>
						</Item>
						<Item name="rangeinput1" type="stringlist">
							<Desc lang="en">Input 1 Range</Desc>
							<Desc lang="de">Bereich Eingang 1</Desc>
							<Desc lang="fr">Plage pour entrée 1</Desc>
							<Info lang="en">Select the range for the analogue input 1.</Info>
							<Info lang="de">Bereich für den analogen Eingang 1 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour l'entrée analogique 1.</Info>
							<Default>-10000..10000</Default>
							<StringList lang="en">
								<StringItem value="-10000..10000">Voltage Input (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Current Input (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="-10000..10000">Spannungseingang (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Stromeingang (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="-10000..10000">Entrée de tension (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Entrée de courrant (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
						</Item>
						<Item name="mininput1" type="int" ro="false">
							<Desc lang="en">Minimum Value Input 1</Desc>
							<Desc lang="de">Minimalwert Eingang 1</Desc>
							<Desc lang="fr">Valeur minimale entrée 1</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue input 1.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Eingangs 1.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 1.</Info>
							<Default>-10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxinput1" type="int" ro="false">
							<Desc lang="en">Maximum Value Input 1</Desc>
							<Desc lang="de">Maximalwert Eingang 1</Desc>
							<Desc lang="fr">Valeur maximale entrée 1</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue input 1.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Eingangs 1.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 1.</Info>
							<Default>10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<Category name="analogueinput2">
						<Desc lang="en">	Analogue Input 2</Desc>
						<Desc lang="de">	Analoger Eingang 2</Desc>
						<Desc lang="fr">	Entrée Analogique 2</Desc>
						<Item name="filteranalogueinput2" type="stringlist">
							<Desc lang="en">Filter Analogue Input 2</Desc>
							<Desc lang="de">Filter analog Eingang 2</Desc>
							<Desc lang="fr">Filtre entrée analogique 2</Desc>
							<Info lang="en">Select 'On' to enable the average filter for this analogue input.</Info>
							<Info lang="de">'Ein' anwählen um den Mittelwertfilter für diesen analogen Eingang einschalten.</Info>
							<Info lang="fr">Sélectionner 'Actif' pour activer le filtre pour cette entrée analogique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Off</StringItem>
								<StringItem value="1">On</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aus</StringItem>
								<StringItem value="1">Ein</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas actif</StringItem>
								<StringItem value="1">Actif</StringItem>
							</StringList>
						</Item>
						<Item name="rangeinput2" type="stringlist">
							<Desc lang="en">Input 2 Range</Desc>
							<Desc lang="de">Bereich Eingang 2</Desc>
							<Desc lang="fr">Plage pour entrée 2</Desc>
							<Info lang="en">Select the range for the analogue input 2.</Info>
							<Info lang="de">Bereich für den analogen Eingang 2 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour l'entrée analogique 2.</Info>
							<Default>-10000..10000</Default>
							<StringList lang="en">
								<StringItem value="-10000..10000">Voltage Input (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Current Input (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="-10000..10000">Spannungseingang (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Stromeingang (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="-10000..10000">Entrée de tension (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Entrée de courrant (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
						</Item>
						<Item name="mininput2" type="int" ro="false">
							<Desc lang="en">Minimum Value Input 2</Desc>
							<Desc lang="de">Minimalwert Eingang 2</Desc>
							<Desc lang="fr">Valeur minimale entrée 2</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue input 2.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Eingangs 2.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 2.</Info>
							<Default>-10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxinput2" type="int" ro="false">
							<Desc lang="en">Maximum Value Input 2</Desc>
							<Desc lang="de">Maximalwert Eingang 2</Desc>
							<Desc lang="fr">Valeur maximale entrée 2</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue input 2.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Eingangs 2.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 2.</Info>
							<Default>10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<Category name="analogueinput3">
						<Desc lang="en">Analogue Input 3</Desc>
						<Desc lang="de">Analoger Eingang 3</Desc>
						<Desc lang="fr">Entrée Analogique 3</Desc>
						<Item name="filteranalogueinput3" type="stringlist">
							<Desc lang="en">Filter Analogue Input 3</Desc>
							<Desc lang="de">Filter analog Eingang 3</Desc>
							<Desc lang="fr">Filtre entrée analogique 3</Desc>
							<Info lang="en">Select 'On' to enable the average filter for this analogue input.</Info>
							<Info lang="de">'Ein' anwählen um den Mittelwertfilter für diesen analogen Eingang einschalten.</Info>
							<Info lang="fr">Sélectionner 'Actif' pour activer le filtre pour cette entrée analogique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">Off</StringItem>
								<StringItem value="1">On</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Aus</StringItem>
								<StringItem value="1">Ein</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Pas actif</StringItem>
								<StringItem value="1">Actif</StringItem>
							</StringList>
						</Item>
						<Item name="rangeinput3" type="stringlist">
							<Desc lang="en">Input 3 Range</Desc>
							<Desc lang="de">Bereich Eingang 3</Desc>
							<Desc lang="fr">Plage pour entrée 3</Desc>
							<Info lang="en">Select the range for the analogue input 3.</Info>
							<Info lang="de">Bereich für den analogen Eingang 3 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour l'entrée analogique 3.</Info>
							<Default>-10000..10000</Default>
							<StringList lang="en">
								<StringItem value="-10000..10000">Voltage Input (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Current Input (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="-10000..10000">Spannungseingang (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Stromeingang (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="-10000..10000">Entrée de tension (-10..+10V)</StringItem>
								<StringItem value="-20000..20000">Entrée de courrant (-20..+20mA)</StringItem>
								<StringItem value="pt1000">Pt 1000 (-50..400°C)</StringItem>
								<StringItem value="ni1000">Ni 1000 (-50..210°C)</StringItem>
								<StringItem value="ni1000ls"><![CDATA[Ni 1000 L&S (-30..140°C)]]></StringItem>
								<StringItem value="r2500">0..2500Ohms</StringItem>
							</StringList>
						</Item>
						<Item name="mininput3" type="int" ro="false">
							<Desc lang="en">Minimum Value Input 3</Desc>
							<Desc lang="de">Minimalwert Eingang 3</Desc>
							<Desc lang="fr">Valeur minimale entrée 3</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue input 3.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Eingangs 3.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 3.</Info>
							<Default>-10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxinput3" type="int" ro="false">
							<Desc lang="en">Maximum Value Input 3</Desc>
							<Desc lang="de">Maximalwert Eingang 3</Desc>
							<Desc lang="fr">Valeur maximale entrée 3</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue input 3.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Eingangs 3.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de l'entrée analogique 3.</Info>
							<Default>10000</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<!--Called when a property changes-->
					<PropertyNotificationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty( "this", "this", "system", "xx7plc" ) )
							{

								// CLASSIC

								// Check peripheral address range (in case of old hardware configuration without temperature)
								if (PropTool.GetPropertyValueInt("rangeinputperipheral0") != 12)
									bPropertyModified |= PropTool.SetPropertyValueString("rangeinputperipheral0", "12");

								// Get process image and media mapping status
								bool bAutoProcessImage =
									DevTool.GetStringProperty( "this", "this", "iohandling", "peripheraladdressdefinition" ) == "auto";

								bool bMediaMapping;
								List<String> lModifiedPropertiesName = new List<String>();
								// if the modified property is "enabledmediamapping1" then set it to "enabledmediamapping0"
								if ( sModifiedPropertyName == "enabledmediamapping1" )
								{
									lModifiedPropertiesName.Add( "enabledmediamapping0" );
									lModifiedPropertiesName.Add( "enabledmediamapping1" );
									sModifiedPropertyName = "enabledmediamapping0";
									bMediaMapping = PropTool.GetPropertyValueString( "enabledmediamapping1" ) != "0";
									bPropertyModified |= PropTool.SetPropertyValueString( "enabledmediamapping0", bMediaMapping ? "1" : "0" );
								} else {
									if (sModifiedPropertyName == "enabledmediamapping0")
									{
										lModifiedPropertiesName.Add( "enabledmediamapping0" );
										lModifiedPropertiesName.Add( "enabledmediamapping1" );
									} else {
										lModifiedPropertiesName.Add( sModifiedPropertyName );
									}
									bMediaMapping = PropTool.GetPropertyValueString( "enabledmediamapping0" ) != "0";
									bPropertyModified |= PropTool.SetPropertyValueString( "enabledmediamapping1", bMediaMapping ? "1" : "0" );
								}

								// Adjust the process image address
								if ( bAutoProcessImage )
								{
									int iAddressPeripheral = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
									int iRangePeripheral = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );
									iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, true, bMediaMapping, 1024, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral0", iAddressPeripheral.ToString() );
								}

								// Adjust visibility of process image parameters
								PropTool.SetVisibleProperty( "addressinputperipheral0", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeinputperipheral0", !bAutoProcessImage );

								// Set readonly media definition
								PropTool.SetReadOnlyProperty( "addressmedia0", !bMediaMapping );
								PropTool.SetReadOnlyProperty( "registersymbols0", !bMediaMapping );
								PropTool.SetReadOnlyProperty( "addressmedia1", !bMediaMapping );
								PropTool.SetReadOnlyProperty( "typemedia1", !bMediaMapping );

								// Adjust number of media
								bool bTypeMedia1IsRegister = PropTool.GetPropertyValueString( "typemedia1" ) == "register";
								if ( bTypeMedia1IsRegister )
								{
									bPropertyModified |= PropTool.SetPropertyValueString( "numbermedia1", "4" );
//									PropTool.SetMaxRange("addressmedia1", 16380);
//									PropTool.SetReadOnlyProperty( "registersymbols1", !bMediaMapping );
//									PropTool.SetReadOnlyProperty( "flagsymbols1", true );
								}
								else
								{
									bPropertyModified |= PropTool.SetPropertyValueString( "numbermedia1", "32" );
//									PropTool.SetMaxRange("addressmedia1", 14303);
//									PropTool.SetReadOnlyProperty( "flagsymbols1", !bMediaMapping );
//									PropTool.SetReadOnlyProperty( "registersymbols1", true );
								}

								// Adjust min and max value depending on the selected range
								for ( int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter++ )
								{
									string sRange = PropTool.GetPropertyValueString( string.Format( "rangeinput{0}", iChannelCounter.ToString() ) );
									switch ( sRange )
									{
									case "-10000..10000":
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										// Modified property ?
										if ( sModifiedPropertyName == string.Format( "rangeinput{0}", iChannelCounter.ToString() ) )
										{
											// Adjust min and max value
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-10000" );
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "10000" );
										}
										break;
									case "-20000..20000":
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										// Modified property ?
										if ( sModifiedPropertyName == string.Format( "rangeinput{0}", iChannelCounter.ToString() ) )
										{
											// Adjust min and max value
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-20000" );
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "20000" );
										}
										break;
									case "pt1000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-500" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "4000" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "ni1000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-500" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "2100" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "ni1000ls":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-300" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "1400" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "r2500":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "0" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "25000" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									default :
										// In case of old configuration without temperature input
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "rangeinput{0}", iChannelCounter.ToString() ), "-10000..10000" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										break;

									}
								}

								// Send event
								foreach ( String sPropertyName in lModifiedPropertiesName )
								{
									switch ( sPropertyName )
									{
										case "enabledmediamapping0":
											PropTool.PropToolEventArgs propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
											propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
											propToolEventArgs.value = PropTool.GetPropertyValueBool( sPropertyName );
											try {
												PropTool.OnMediaMappingEnableChange( propToolEventArgs );
											} catch ( Exception e ) {
												throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange() on enabledmediamapping0", e );
											}
											break;
										case "enabledmediamapping1":
											propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
											propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
											propToolEventArgs.value = PropTool.GetPropertyValueBool( sPropertyName );
											try {
												PropTool.OnMediaMappingEnableChange( propToolEventArgs );
											} catch ( Exception e ) {
												throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange() on enabledmediamapping1", e );
											}
											break;
										case "typemedia1":
											propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
											propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sPropertyName );
											propToolEventArgs.value = PropTool.GetPropertyValueString( sPropertyName );
											try {
												PropTool.OnTypeMediaChange( propToolEventArgs );
											} catch ( Exception e ) {
												throw new Exception( "Error durring PropTool.OnTypeMediaChange()", e );
											}
											break;
									}
								}

							}
							else
							{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse( DevTool.GetStringProperty( "this", "this", "iohandling", "xx7cycleloop" ) );

								PropTool.SetVisibleProperty( "rangeinputperipheral0", false );
								PropTool.SetVisibleProperty( "enabledmediamapping0", false );
								PropTool.SetVisibleProperty( "typemedia0", false );
								PropTool.SetVisibleProperty( "addressmedia0", false );
								PropTool.SetVisibleProperty( "numbermedia0", false );
								PropTool.SetVisibleProperty( "registersymbols0", false );
								//PropTool.SetVisibleProperty( "xx7mappingingcycle0", true );

								PropTool.SetVisibleProperty( "typemedia1", false );
								PropTool.SetVisibleProperty( "numbermedia1", false );
								PropTool.SetVisibleProperty( "addressmedia1", false );
								PropTool.SetVisibleProperty( "registersymbols1", false );
								PropTool.SetVisibleProperty( "flagsymbols1", false );

								PropTool.SetPropertyDefaultValue( "addressinputperipheral0", iXX7cycleAdrThreshold.ToString() );
								//PropTool.SetPropertyValueString( "enabledmediamapping0", PropTool.GetPropertyValueString( "xx7mappingingcycle0" ) );

								// Adjust process image address
								int iAddressPeripheral = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
								if ( iAddressPeripheral == 1028 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressinputperipheral0", false );
									iAddressPeripheral = PropTool.GetPropertyValueInt("addressinputperipheral0");
								}
								int iRangePeripheral = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );

								//bool iXX7incycleloop = PropTool.GetPropertyValueString( "xx7mappingingcycle0" ) == "1";
								bool iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

								iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, true, iXX7incycleloop, iXX7cycleAdrThreshold, 65534, 2 );
								bPropertyModified |= PropTool.SetPropertyValueString( "addressinputperipheral0", iAddressPeripheral.ToString() );
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

								// Adjust min and max value depending on the selected range
								for ( int iChannelCounter = 0; iChannelCounter < 4; iChannelCounter++ )
								{
									string sRange = PropTool.GetPropertyValueString( string.Format( "rangeinput{0}", iChannelCounter.ToString() ) );
									switch ( sRange )
									{
									case "-10000..10000":
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										// Modified property ?
										if ( sModifiedPropertyName == string.Format( "rangeinput{0}", iChannelCounter.ToString() ) )
										{
											// Adjust min and max value
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-10000" );
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "10000" );
										}
										break;
									case "-20000..20000":
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										// Modified property ?
										if ( sModifiedPropertyName == string.Format( "rangeinput{0}", iChannelCounter.ToString() ) )
										{
											// Adjust min and max value
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-20000" );
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "20000" );
										}
										break;
									case "pt1000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-500" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "4000" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "ni1000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-500" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "2100" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "ni1000ls":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "-300" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "1400" );
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), true );
										break;
									case "r2500":
										PropTool.SetReadOnlyProperty( string.Format( "mininput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxinput{0}", iChannelCounter.ToString() ), false );
										// Modified property ?
										if ( sModifiedPropertyName == string.Format( "rangeinput{0}", iChannelCounter.ToString() ) )
										{
											// Adjust min and max value
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "mininput{0}", iChannelCounter.ToString() ), "0" );
											bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxinput{0}", iChannelCounter.ToString() ), "25000" );
										}
										break;
									}
								}
							}
						]]>
					</PropertyNotificationScript>
					<!--Called when the property grid loose the focus-->
					<PropertyValidationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty( "this", "this", "system", "xx7plc" ) )
							{

								// CLASSIC

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( 1024, out bWarning ) )
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

									// Check MediaMapping
									PropTool.CheckMediaMapping( messageList, sItem, sItemLocation, sCurrentSlotFullPath, "ER_1204", "ER_1205" );

								// Overlap in input range ?
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );
								if ( DevTool.InputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "ER_1203", sItem, sItemLocation );

						}
						else
						{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse( DevTool.GetStringProperty( "this", "this", "iohandling", "xx7cycleloop" ) );

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( iXX7cycleAdrThreshold, out bWarning ) ) {
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								} else {
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

								// Overlap with digital input or with encoder input range ?
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressinputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeinputperipheral0" );
								if ( DevTool.InputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "ER_1203", sItem, sItemLocation );

							}
						]]>
					</PropertyValidationScript>
				</PropertyList>
			</Object>
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<!-- 2 Analogue outputs (slot3)                                       -->
			<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
			<Object name="2analogueoutputs">
				<Desc lang="en">2 Analogue Outputs</Desc>
				<Desc lang="de">2 analoge Ausgänge</Desc>
				<Desc lang="fr">2 Sorties Analogiques</Desc>
				<Info lang="en">2 analogue outputs, 0..10VDC, 12 bit, connector 0.</Info>
				<Info lang="de">2 analoge Ausgänge, 0..10VDC, 12 Bit, Stecker 0.</Info>
				<Info lang="fr">2 sorties analogiques, 0..10VDC, 12 bit, connecteur 0.</Info>
				<PropertyList>
					<Category name="mediamapping0">
						<Desc lang="en">		Media Mapping</Desc>
						<Desc lang="de">		Media Mapping</Desc>
						<Desc lang="fr">		Media mapping</Desc>
						<Item name="addressoutputperipheral0" type="uint" visible="true">
							<Desc lang="en">Peripheral Base Address</Desc>
							<Desc lang="de">Basis Peripherie Index</Desc>
							<Desc lang="fr">Adresse de base dans mémoire périphérique</Desc>
							<Info lang="en">Address of the 2 analogue output values in the peripheral output memory.</Info>
							<Info lang="de">Basis Peripherie Index im Ausgangs-Peripheriespeicherbereich (oder Index für direkten Peripheriezugriff) für analoge Ausgänge.</Info>
							<Info lang="fr">Adresse des 2 valeurs de sorties analogiques dans la mémoire périphérique des sorties.</Info>
							<Default>2</Default>
							<Range min="0" max="65533" />
						</Item>
						<Item name="rangeoutputperipheral0" type="uint" ro="true" visible="true">
							<Desc lang="en">Peripheral Address Range</Desc>
							<Desc lang="de">Bereich eines Peripherieindex</Desc>
							<Desc lang="fr">Espace dans mémoire périphérique</Desc>
							<Info lang="en">Number of bytes needs in the peripheral output memory to store to analogue output values.</Info>
							<Info lang="de">Zu reservierende Bytes im Peripheriespeicher für analoge Ausgänge.</Info>
							<Info lang="fr">Nombre de byte nécessaires pour stocker les valeurs des sorties analogiques dans la mémoire périphérique des sorties.</Info>
							<Default>4</Default>
						</Item>
						<Item name="enabledmediamapping0" type="stringlist">
							<Desc lang="en">Media Mapping Enabled</Desc>
							<Desc lang="de">Media Mapping aktiv</Desc>
							<Desc lang="fr">Media mapping actif</Desc>
							<Info lang="en">Select 'Yes' to enable the media mapping for the analogue outputs; a cyclic actualization of the output values present in the peripheral memory with the specified media content.</Info>
							<Info lang="de">'Ja' anwählen um Media Mapping für die analogen Ausgänge zu aktivieren (Prozessabbild). Wenn gewählt werden die Werte der spezifizierten Register zyklisch (zu Beginn des ersten programmierten COB) auf die Ausgänge kopiert.</Info>
							<Info lang="fr">Sélectionner 'Oui' pour activer le Media Mapping pour les sorties analogiques, actualisation cyclique des valeurs de sorties présentes dans la mémoire périphérique avec le contenu des médias spécifiés.</Info>
							<Default>1</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item>
						<Item name="directionmediamapping0" type="stringlist" ro="true" visible="false">
							<Desc lang="en">Direction Media Mapping</Desc>
							<Desc lang="de">Richtung des Media Mapping</Desc>
							<Desc lang="fr">Media mapping direction</Desc>
							<Info lang="en">Direction of the media mapping transfer for the analogue outputs.</Info>
							<Info lang="de">Übertragungsrichtung des Media Mapping  für die analoge Ausgänge.</Info>
							<Info lang="fr">Direction de transfer pour le média mapping des sorties analogiques.</Info>
							<Default>mediatoperipheral</Default>
							<StringList lang="en">
								<StringItem value="peripheraltomedia">From peripheral memory into media</StringItem>
								<StringItem value="mediatoperipheral">From media into peripheral memory</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="peripheraltomedia">Von Zusatzspeicher zu Medien</StringItem>
								<StringItem value="mediatoperipheral">Von Medien zu Zusatzspeicher</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="peripheraltomedia">De mémoire périphérique vers média</StringItem>
								<StringItem value="mediatoperipheral">De média vers mémoire périphérique</StringItem>
							</StringList>
						</Item>
						<Item name="typemedia0" type="stringlist" ro="true">
							<Desc lang="en">Media Type</Desc>
							<Desc lang="de">Medien Typ</Desc>
							<Desc lang="fr">Type de média</Desc>
							<Info lang="en">Type of media used to map the 2 analogue values.</Info>
							<Info lang="de">Medientyp verwendet um die analogen Werte durch Media Mapping abzubilden.</Info>
							<Info lang="fr">Type de média utilisé pour contenir les 2 valeurs analogiques.</Info>
							<Default>register</Default>
							<StringList lang="en">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Register</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="flag">Flag</StringItem>
								<StringItem value="register">Registre</StringItem>
							</StringList>
						</Item>
						<Item name="numbermedia0" type="uint" ro="true">
							<Desc lang="en">Number Of Media</Desc>
							<Desc lang="de">Medienanzahl</Desc>
							<Desc lang="fr">Nombre de médias</Desc>
							<Info lang="en">Number of media (register) used to map the 2 analogue values.</Info>
							<Info lang="de">Anzahl von Medien (Register), von welchen die analogen Werte durch das Media Mapping auf die Ausgänge geschrieben werden.</Info>
							<Info lang="fr">Nombre de médias (registre) utilisés pour contenir les 2 valeurs analogiques.</Info>
							<Default>2</Default>
						</Item>
						<Item name="addressmedia0" type="text" visible="false">
							<Desc lang="en">Media Address</Desc>
							<Desc lang="de">Basis Medien Adresse</Desc>
							<Desc lang="fr">Adresse des médias</Desc>
							<Info lang="en">Address of the first mapped media (register) where the analogue values will be read. Each media will have an address incremented from the first media address.</Info>
							<Info lang="de">Medienadresse (Register Adresse) von welchen die analogen Werte durch das Media Mapping auf die Ausgänge kopiert werden. Die Adressen der einzelnen Register für die Ausgänge werden inkrementiert, basierend auf dieser Basisadresse.</Info>
							<Info lang="fr">Adresse du premier média (registre) à partir duquel les valeurs analogiques seront lues. Chaque media aura son adresse incrémentée à partir de l'adresse du premier média.</Info>
							<Default></Default>
						</Item>
						<Item name="basesymbols0" type="text" ro="true" visible="false">
							<Desc lang="en">Base Symbol Definitions</Desc>
							<Desc lang="de">Basis Symbol Definitionen</Desc>
							<Desc lang="fr">Définition du symboles de base</Desc>
							<Info lang="en">Base Symbol definitions for the register.</Info>
							<Info lang="de">Basisdefinition der Symbolnamen der Register, auf welche die Eingänge kopiert werden.</Info>
							<Info lang="fr">Définition le symboles de base pour les registres.</Info>
							<Default>S.IO.AnalogueOutput</Default>
						</Item>
						<Item name="registersymbols0" type="text" visible="false">
							<Desc lang="en">Symbol Definitions</Desc>
							<Desc lang="de">Symboldefinitionen</Desc>
							<Desc lang="fr">Définition symboles</Desc>
							<Info lang="en">Symbol definitions for the registers.</Info>
							<Info lang="de">Symboldefinition für Register.</Info>
							<Info lang="fr">Définition des symboles pour les registres.</Info>
							<Default xml:space="preserve">IO.AnalogueOutput0	Analogue output 0	S_IO	IO.AnalogueOutput1	Analogue output 1	S_IO</Default>
						</Item>
						<Item name="registeraddress0" type="text" visible="false">
							<Desc lang="en">Symbol Address For Outputs</Desc>
							<Desc lang="de">Symboladdresse für Ausgänge</Desc>
							<Desc lang="fr">Définition adresses symboles pour sorties</Desc>
							<Info lang="en">Address definitions for the registers.</Info>
							<Info lang="de">Definition der Symboladdresse der Register.</Info>
							<Info lang="fr">Définition des adresses de symboles pour les registres.</Info>
							<Default xml:space="preserve">S.IO.AnalogueOutput + 0	1	Public	S.IO.AnalogueOutput + 1	1	Public</Default>
						</Item>
						<!--Item name="xx7mappingingcycle0" type="stringlist" visible="false">
							<Desc lang="en">Included In Process Image</Desc>
							<Desc lang="de">Im Prozessabbild</Desc>
							<Desc lang="fr">Inclus dans la mémoire périphérique</Desc>
							<Info lang="en">Select 'Yes' in order to include the input/output value of the module in the process image.</Info>
							<Info lang="de">Wählen Sie 'Ja' aus um die Ein/Ausgangswerte des Modules im Prozessabbild einzufügen.</Info>
							<Info lang="fr">Sélectionner 'Oui' afin d'inclure les valeurs d'entrée/sortie du module dans la mémoire périphérique.</Info>
							<Default>0</Default>
							<StringList lang="en">
								<StringItem value="0">No</StringItem>
								<StringItem value="1">Yes</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0">Nein</StringItem>
								<StringItem value="1">Ja</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0">Non</StringItem>
								<StringItem value="1">Oui</StringItem>
							</StringList>
						</Item-->
					</Category>
					<Category name="analogueoutput0">
						<Desc lang="en">	Analogue Output 0</Desc>
						<Desc lang="de">	Analog Ausgang 0</Desc>
						<Desc lang="fr">	Sortie Analogique 0</Desc>
						<Item name="rangeoutput0" type="stringlist">
							<Desc lang="en">Output 0 Range</Desc>
							<Desc lang="de">Bereich Ausgang 0</Desc>
							<Desc lang="fr">Plage pour sortie 0</Desc>
							<Info lang="en">Select the range for the analogue output 0.</Info>
							<Info lang="de">Bereich für den analogen Ausgang 0 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour la sortie analogique 0.</Info>
							<Default>0..4095</Default>
							<StringList lang="en">
								<StringItem value="0..4095">12 Bit resolution</StringItem>
								<StringItem value="0..10000">0..10V in mV or % resolution</StringItem>
								<StringItem value="specific">User defined range</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0..4095">12 Bit Auflösung</StringItem>
								<StringItem value="0..10000">0..10V in mV oder % Auflösung</StringItem>
								<StringItem value="specific">Benutzer spezifisch Bereich</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0..4095">12 Bit de résolution</StringItem>
								<StringItem value="0..10000">0..10V avec résolution au mV ou au %</StringItem>
								<StringItem value="specific">Plage spécifique</StringItem>
							</StringList>
						</Item>
						<Item name="minoutput0" type="int" ro="false">
							<Desc lang="en">Minimum Value Output 0</Desc>
							<Desc lang="de">Minimalwert Ausgang 0</Desc>
							<Desc lang="fr">Valeur minimale sortie 0</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue output 0.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Ausgangs 0.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de la sortie analogique 0.</Info>
							<Default>0</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxoutput0" type="int" ro="false">
							<Desc lang="en">Maximum Value Output 0</Desc>
							<Desc lang="de">Maximalwert Ausgang 0</Desc>
							<Desc lang="fr">Valeur maximale sortie 0</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue output 0.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Ausgangs 0.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de la sortie analogique 0.</Info>
							<Default>4095</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="resetoutput0" type="int" ro="false">
							<Desc lang="en">Reset Value Output 0</Desc>
							<Desc lang="de">Resetwert Ausgang 0</Desc>
							<Desc lang="fr">Valeur de reset sortie 0</Desc>
							<Info lang="en">Default value after reset of the analogue output 0.</Info>
							<Info lang="de">Default Wert nach Reset des analogen Ausgangs 0.</Info>
							<Info lang="fr">Valeur par défaut après un reset de la sortie analogique 0.</Info>
							<Default>0</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<Category name="analogueoutput1">
						<Desc lang="en">Analogue Output 1</Desc>
						<Desc lang="de">Analog Ausgang 1</Desc>
						<Desc lang="fr">Sortie Analogique 1</Desc>
						<Item name="rangeoutput1" type="stringlist">
							<Desc lang="en">Output 1 Range</Desc>
							<Desc lang="de">Bereich Ausgang 1</Desc>
							<Desc lang="fr">Plage pour sortie 1</Desc>
							<Info lang="en">Select the range for the analogue output 1.</Info>
							<Info lang="de">Bereich für den analogen Ausgang 1 wählen.</Info>
							<Info lang="fr">Sélectionner la plage d'entrée pour la sortie analogique 1.</Info>
							<Default>0..4095</Default>
							<StringList lang="en">
								<StringItem value="0..4095">12 Bit resolution</StringItem>
								<StringItem value="0..10000">0..10V in mV or % resolution</StringItem>
								<StringItem value="specific">User defined range</StringItem>
							</StringList>
							<StringList lang="de">
								<StringItem value="0..4095">12 Bit Auflösung</StringItem>
								<StringItem value="0..10000">0..10V in mV oder % Auflösung</StringItem>
								<StringItem value="specific">Benutzer spezifisch Bereich</StringItem>
							</StringList>
							<StringList lang="fr">
								<StringItem value="0..4095">12 Bit de résolution</StringItem>
								<StringItem value="0..10000">0..10V avec résolution au mV ou au %</StringItem>
								<StringItem value="specific">Plage spécifique</StringItem>
							</StringList>
						</Item>
						<Item name="minoutput1" type="int" ro="false">
							<Desc lang="en">Minimum Value Output 1</Desc>
							<Desc lang="de">Minimalwert Ausgang 1</Desc>
							<Desc lang="fr">Valeur minimale sortie 1</Desc>
							<Info lang="en">Minimal value for the conversion of the analogue output 1.</Info>
							<Info lang="de">Minimaler Wert für die Konvertierung des analogen Ausgangs 1.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de la sortie analogique 1.</Info>
							<Default>0</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="maxoutput1" type="int" ro="false">
							<Desc lang="en">Maximum Value Output 1</Desc>
							<Desc lang="de">Maximalwert Ausgang 1</Desc>
							<Desc lang="fr">Valeur maximale sortie 1</Desc>
							<Info lang="en">Maximal value for the conversion of the analogue output 1.</Info>
							<Info lang="de">Maximaler Wert für die Konvertierung des analogen Ausgangs 1.</Info>
							<Info lang="fr">Valeur minimale pour la conversion de la sortie analogique 1.</Info>
							<Default>4095</Default>
							<Range min="-32768" max="32767" />
						</Item>
						<Item name="resetoutput1" type="int" ro="false">
							<Desc lang="en">Reset Value Output 1</Desc>
							<Desc lang="de">Resetwert Ausgang 1</Desc>
							<Desc lang="fr">Valeur de reset sortie 1</Desc>
							<Info lang="en">Default value after reset of the analogue output 1.</Info>
							<Info lang="de">Default Wert nach Reset des analogen Ausgangs 1.</Info>
							<Info lang="fr">Valeur par défaut après un reset de la sortie analogique 1.</Info>
							<Default>0</Default>
							<Range min="-32768" max="32767" />
						</Item>
					</Category>
					<!--Called when a property changes-->
					<PropertyNotificationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty( "this", "this", "system", "xx7plc" ) )
							{
								// CLASSIC

								// Get process image and media mapping status
								bool bAutoProcessImage =
									DevTool.GetStringProperty( "this", "this", "iohandling", "peripheraladdressdefinition" ) == "auto";
								bool bMediaMapping = PropTool.GetPropertyValueString( "enabledmediamapping0" ) != "0";
								// Adjust visibility of process image parameters
								PropTool.SetVisibleProperty( "addressoutputperipheral0", !bAutoProcessImage );
								PropTool.SetVisibleProperty( "rangeoutputperipheral0", !bAutoProcessImage );
								// Adjust the process image address
								if ( bAutoProcessImage )
								{
									int iAddressPeripheral = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
									int iRangePeripheral = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );
									iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, false, bMediaMapping, 1024, 65534 );
									bPropertyModified |= PropTool.SetPropertyValueString( "addressoutputperipheral0", iAddressPeripheral.ToString() );
								}
								// Set readonly media definition
								//PropTool.SetReadOnlyProperty( "addressmedia0", !bMediaMapping );
								//PropTool.SetReadOnlyProperty( "registersymbols0", !bMediaMapping );

								// Send event
								switch ( sModifiedPropertyName )
								{
									case "enabledmediamapping0":
										PropTool.PropToolEventArgs propToolEventArgs = new PropTool.PropToolEventArgs( xPropertyListRoot, sModifiedPropertyName, xDeviceRoot, sCurrentSlotCat, sCurrentSlot, sCurrentSlotFullPath );
										propToolEventArgs.eventSpecific = PropTool.GetPropertyNode( sModifiedPropertyName );
										propToolEventArgs.value = PropTool.GetPropertyValueBool( sModifiedPropertyName );
										try {
											PropTool.OnMediaMappingEnableChange( propToolEventArgs );
										} catch ( Exception e ) {
											throw new Exception( "Error durring PropTool.OnMediaMappingEnableChange()", e );
										}
										break;
								}

								// Adjust min and max value depending on the selected range
								for ( int iChannelCounter = 0; iChannelCounter < 2; iChannelCounter++ )
								{
									string sRange = PropTool.GetPropertyValueString( string.Format( "rangeoutput{0}", iChannelCounter.ToString() ) );
									switch ( sRange )
									{
									case "0..4095":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "minoutput{0}", iChannelCounter.ToString() ), "0" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), "4095" );
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), true );
										break;
									case "0..10000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "minoutput{0}", iChannelCounter.ToString() ), "0" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), "10000" );
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), true );
										break;
									case "specific":
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), false );
										break;
									}
								}

							}
							else
							{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse( DevTool.GetStringProperty( "this", "this", "iohandling", "xx7cycleloop" ) );

								PropTool.SetVisibleProperty( "rangeoutputperipheral0", false );
								PropTool.SetVisibleProperty( "enabledmediamapping0", false );
								PropTool.SetVisibleProperty( "typemedia0", false );
								PropTool.SetVisibleProperty( "addressmedia0", false );
								PropTool.SetVisibleProperty( "numbermedia0", false );
								PropTool.SetVisibleProperty( "registersymbols0", false );
								//PropTool.SetVisibleProperty( "xx7mappingingcycle0", true );

								PropTool.SetPropertyDefaultValue( "addressoutputperipheral0", iXX7cycleAdrThreshold.ToString() );
								//PropTool.SetPropertyValueString( "enabledmediamapping0", PropTool.GetPropertyValueString( "xx7mappingingcycle0" ) );

								// Adjust process image address
								int iAddressPeripheral = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
								if ( iAddressPeripheral == 1026 ) {
									bPropertyModified |= PropTool.SetDefaultPropertyValue( "addressoutputperipheral0", false );
									iAddressPeripheral = PropTool.GetPropertyValueInt("addressoutputperipheral0");
								}
								int iRangePeripheral = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );

								//bool iXX7incycleloop = PropTool.GetPropertyValueString( "xx7mappingingcycle0" ) == "1";
								bool iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

								iAddressPeripheral = DevTool.GetMemoryImageAddress( sCurrentSlotFullPath, iAddressPeripheral, iRangePeripheral, false, iXX7incycleloop, iXX7cycleAdrThreshold, 65534, 2 );
								bPropertyModified |= PropTool.SetPropertyValueString( "addressoutputperipheral0", iAddressPeripheral.ToString() );
								// Correct the enabledmediamapping if the address move from down to upper the process image limit
								iXX7incycleloop = ( iAddressPeripheral < iXX7cycleAdrThreshold );
								PropTool.SetPropertyValueString( "enabledmediamapping0", iXX7incycleloop ? "1" : "0" );

								// Adjust min and max value depending on the selected range
								for ( int iChannelCounter = 0; iChannelCounter < 2; iChannelCounter++ )
								{
									string sRange = PropTool.GetPropertyValueString( string.Format( "rangeoutput{0}", iChannelCounter.ToString() ) );
									switch ( sRange )
									{
									case "0..4095":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "minoutput{0}", iChannelCounter.ToString() ), "0" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), "4095" );
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), true );
										break;
									case "0..10000":
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "minoutput{0}", iChannelCounter.ToString() ), "0" );
										bPropertyModified |= PropTool.SetPropertyValueString( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), "10000" );
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), true );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), true );
										break;
									case "specific":
										PropTool.SetReadOnlyProperty( string.Format( "minoutput{0}", iChannelCounter.ToString() ), false );
										PropTool.SetReadOnlyProperty( string.Format( "maxoutput{0}", iChannelCounter.ToString() ), false );
										break;
									}
								}

							}
						]]>
					</PropertyNotificationScript>
					<!--Called	when property grid loses the focus-->
					<PropertyValidationScript>
						<![CDATA[
							if ( !DevTool.GetBoolProperty("this", "this", "system", "xx7plc") )
							{

								// CLASSIC

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( 1024, out bWarning ) )
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

									// Check MediaMapping
									PropTool.CheckMediaMapping( messageList, sItem, sItemLocation, sCurrentSlotFullPath, "ER_1204", "ER_1205" );

								// Overlap with digital output or with encoder output range ?
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );
								if ( DevTool.OutputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "WR_1202", sItem, sItemLocation );

								// Check reset value fits with min and max value
								for ( int iChannelCounter = 0; iChannelCounter < 2; iChannelCounter++ )
								{
									int iMinValue = PropTool.GetPropertyValueInt( String.Format( "minoutput{0}", iChannelCounter.ToString() ) );
									int iMaxValue = PropTool.GetPropertyValueInt( String.Format( "maxoutput{0}", iChannelCounter.ToString() ) );
									int iResetValue = PropTool.GetPropertyValueInt( String.Format( "resetoutput{0}", iChannelCounter.ToString() ) );
									if ( ( ( iMinValue < iMaxValue ) && ( ( iResetValue < iMinValue ) || ( iResetValue > iMaxValue ) ) )
										|| ( ( iMinValue >= iMaxValue ) && ( ( iResetValue < iMaxValue ) || ( iResetValue > iMinValue ) ) ) )
									{
										messageList.AddMessage( "ER_1230", sItem, sItemLocation );
										break;
									}
								}

							}
							else
							{

								// XX7

								int iXX7cycleAdrThreshold = int.Parse(DevTool.GetStringProperty("this", "this", "iohandling", "xx7cycleloop"));

								// Check if peripheral memory placement fits with media mapping state
								bool bWarning;
								if ( !PropTool.MemoryImageRangeFittsWithMediaMappingState( iXX7cycleAdrThreshold, out bWarning ) ) {
									messageList.AddMessage( "ER_1200", sItem, sItemLocation );
								}
								else
								{
									if ( bWarning )
										messageList.AddMessage( "WR_1201", sItem, sItemLocation );
								}

								// Check register mapping range ?
								if ( PropTool.GetPropertyValueString( "enabledmediamapping0" ) == "1" )
								{
									int iRegisterAddress = PropTool.GetPropertyValueInt( "addressmedia0" );
									int iRegisterRange = PropTool.GetPropertyValueInt( "numbermedia0" );
									if ( DevTool.RegisterMappingRangeOverlap( iRegisterAddress, iRegisterRange, sItemLocation ) )
										messageList.AddMessage( "ER_1204", sItem, sItemLocation );
								}

								// Overlap with digital input or with encoder input range ?
								int iAddressProcessImage = PropTool.GetPropertyValueInt( "addressoutputperipheral0" );
								int iRangeProcessImage = PropTool.GetPropertyValueInt( "rangeoutputperipheral0" );
								if ( DevTool.InputMemoryRangeOverlap( iAddressProcessImage, iRangeProcessImage, sItemLocation ) )
									messageList.AddMessage( "ER_1203", sItem, sItemLocation );

							}

						]]>
					</PropertyValidationScript>
				</PropertyList>
			</Object>
		</Category>
	</Family>
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
	<!--                                                                      -->
	<!-- PCD3 Series Expansion Modules                                        -->
	<!--                                                                      -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
	<Family name="pcd3compact">
		<Category name="expansionmodule">
			<Desc lang="en">Expansion Modules for PCD3 Compact</Desc>
			<Desc lang="de">Erweiterungsmodule für PCD3 Compact</Desc>
			<Desc lang="fr">Modules d'expansion pour PCD3 Compact</Desc>
		</Category>
	</Family>
</SaiaObjectTemplate>
