<root>
<document schema='101' license='1,NormanSchroeder1,0BN03P' title='' description='' target='ARM.AT91SAM7S.AT91SAM7S512_64' >
	<config data='' clkspd='47923200' simspd='1' usewdt='0' constif='0' />
	<plugins >
		<dll_dbg_icd enabled='0' >
			<data name='debug' value='1' />
			<data name='userpins' value='0' />
			<data name='speed' value='0' />
			<data name='usev9' value='0' />
			<data name='breaks' value='8' />
			<data name='stacks' value='8' />
			<data name='clkport' value='1' />
			<data name='clkbit' value='6' />
			<data name='dataport' value='1' />
			<data name='databit' value='7' />
			<data name='ghostype' value='0' />
			<data name='monitor' value='1' />
			<data name='ictloop' value='0' />
			<data name='ictrate' value='20000' />
			<data name='ictmask' value='0' />
			<data name='anlpres' value='255' />
			<data name='digmask1' value='-1' />
			<data name='digmask2' value='-1' />
		</dll_dbg_icd>
		<dll_models enabled='1' />
		<dll_upgrader enabled='1' />
		<dll_webhelp enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='Touch_DC1' />
		<watch expr='Touch_DC2' />
		<watch expr='Touch_len' />
		<watch expr='Touch_DataByte_0' />
		<watch expr='Touch_DataByte_1' />
		<watch expr='Touch_DataByte_2' />
		<watch expr='Touch_OpenTouchMakro_Nr' />
		<watch expr='Touch_bcc' />
	</debug>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Index_TouchData_Array' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_9' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_8' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_RXinProgress' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_7' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_OpenTouchMakro_Nr' type='u8' description='' isconst='0' isinit='1' usrinit='62' setinit='0x3E' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_6' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_5' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_4' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_3' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_2' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_1' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_bcc' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DataByte_0' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StackPointer_RX_Data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PortD_Data' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DC2' type='u8' description='' isconst='0' isinit='1' usrinit='18' setinit='0x12' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_DC1' type='u8' description='' isconst='0' isinit='1' usrinit='17' setinit='0x11' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Touch_len' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='True' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Initialise_ReadTouchData' description='' >
						<command class_type='comment' title='' comment='***************************************************************************
********** eDIP Initialise Read Touch Data over RS232 **********
***************************************************************************

Übergabevariablen:
no Variable Data' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang' mode='1' port='1048576' mask='1' exp='1' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_len = 0x01' />
							<exp exp='Touch_DataByte_0 = 0x53' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='&quot;S&quot; = 0x53' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_bcc = Touch_DC2 + Touch_len + Touch_DataByte_0' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' disable='1' component='RS232' macro='SendString' >
							<argument exp='&quot;cannot TX Array @Reg&quot;' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DC2' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_len' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_0' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_bcc' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='INTERRUPT_TMR0' description='' />
				</macro>
				<macro >
					<flowline name='RX_ReadTouchData' description='' >
						<command class_type='decision' title='Entscheidung' exp='Touch_RXinProgress = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='StackPointer_RX_Data = 0x00' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='ReceiveChar' >
							<argument exp='Touch_DataByte_0' />
						</command>
						<command class_type='decision' title='Entscheidung' exp='Touch_DataByte_0 = 0x06' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='StackPointer_RX_Data = StackPointer_RX_Data + 1' />
									<exp exp='Touch_RXinProgress = 1' />
								</command>
								<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='ReceiveChar' >
									<argument exp='Touch_DataByte_0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='&quot;ACK&quot; not OK --&gt; Repeat Databyte' textarea='12,0,12,0' />
								<command class_type='call' title='Aufruf Komponenten-Makro' disable='1' component='' macro='' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TX_OpenTouchMakro' description='' >
						<command class_type='comment' title='' comment='*****************************************************************************
********** eDIP Display - Open Touch Makro over RS232 **********
*****************************************************************************

Übergabevariablen:
Touch_OpenTouchMakro_Nr --&gt; Nr. des Touchmakros zum Öffnen (0x00h)' textarea='36,200,36,200' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_len = 0x04' />
							<exp exp='Touch_DataByte_0 = 0x1B' />
							<exp exp='Touch_DataByte_1 = 0x4D' />
							<exp exp='Touch_DataByte_2 = 0x54' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='&quot;ESC&quot; = 0x1B
&quot;M&quot;     = 0x4D
&quot;T&quot;      = 0x54' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_bcc = Touch_DC1 + Touch_len + Touch_DataByte_0 + Touch_DataByte_1 + Touch_DataByte_2 + Touch_OpenTouchMakro_Nr' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' disable='1' component='RS232' macro='SendString' >
							<argument exp='&quot;MTb3&quot;' />
						</command>
						<command class_type='call' title='Makro-Aufruf' component='RS232' macro='SendChar' >
							<argument exp='Touch_DC1' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_len' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_0' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_1' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_2' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_OpenTouchMakro_Nr' />
						</command>
						<command class_type='comment' title='' comment='92 = 0x5C = MtGrow CPU
62 = 0x3E = MtOnlineCPU
58 = 0x3A = MtVisual' textarea='12,0,12,0' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_bcc' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='INTERRUPT_PORTB' description='' />
				</macro>
				<macro >
					<flowline name='RX_Touch_test' description='' >
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='ReceiveChar' >
							<return exp='Touch_DataByte_0' />
							<argument exp='50' />
						</command>
						<command class_type='output' title='Ausgang' mode='0' port='1048579' mask='0' exp='Touch_DataByte_0' />
						<command class_type='delay' title='Warten' exp='1' type='2' />
					</flowline>
				</macro>
				<macro >
					<flowline name='TX_Touch_test' description='' >
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_len = 0x03' />
							<exp exp='Touch_DataByte_0 = 0x1B' />
							<exp exp='Touch_DataByte_1 = 0x44' />
							<exp exp='Touch_DataByte_2 = 0x4C' />
						</command>
						<command class_type='comment' title='' comment='0x44 = D
0x4C = L' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='Touch_bcc = Touch_DC1 + Touch_len + Touch_DataByte_0 + Touch_DataByte_1 + Touch_DataByte_2' />
						</command>
						<command class_type='call' title='Makro-Aufruf' component='RS232' macro='SendChar' >
							<argument exp='Touch_DC1' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_len' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_0' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_1' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_DataByte_2' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='SendChar' >
							<argument exp='Touch_bcc' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='INTERRUPT_RB0INT' description='' />
				</macro>
				<macro >
					<flowline name='Main' description='Moving LED display' >
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='Initialise' />
						<command class_type='interrupt' title='Unterbrechung' enable='1' name='INT1' call='Initialise_ReadTouchData' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='output' title='Clear Data Port D' textarea='36,0,511,300' mode='0' port='1048579' mask='0' exp='0' />
						<command class_type='interrupt' title='Unterbrechung' disable='1' enable='1' name='RXINT0' call='RX_ReadTouchData' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='label' title='Start: Connection Point' textarea='36,0,511,300' labelid='0' labelname='A' />
						<command class_type='comment' title='' comment='Port Abfrage for open Touch Makro' textarea='12,0,12,0' />
						<command class_type='input' title='Eingang' mode='0' port='1048579' mask='0' exp='PortD_Data' />
						<command class_type='switch' title='Port Abfrage = 1' textarea='500,56,500,56' exp='PortD_Data' >
							<case >
								<flowline />
							</case>
							<case exp='128' >
								<flowline >
									<command class_type='call' title='Makro-Aufruf' macro='TX_OpenTouchMakro' />
								</flowline>
							</case>
						</command>
						<command class_type='loop' title='Schleife' type='1' exp='PortD_Data = 0' >
							<flowline >
								<command class_type='input' title='Eingang' mode='0' port='1048579' mask='0' exp='PortD_Data' />
								<command class_type='delay' title='Warten' exp='50' type='1' />
							</flowline>
						</command>
						<command class_type='call' title='Makro-Aufruf' disable='1' macro='RX_Touch_test' />
						<command class_type='goto' title='Restart: Goto Connection Point' textarea='36,0,511,300' labelid='0' labelname='A' />
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='3' vmaj='1' codename='RS232' x='-72' y='48' z='22.055' xsz='60' ysz='26' zsz='1.51' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' interactive='1' solid='1' layer='0' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='002' />
					<value target='BAUD_LIST' data='009' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ToutVal' data='255' />
					<value target='FLOWEN' data='000' />
					<value target='ECHO' data='000' />
					<value target='TX' data='$PORTA.6' />
					<value target='RX' data='$PORTA.5' />
					<value target='CTS' data='$PORTB.1' />
					<value target='RTS' data='$PORTB.2' />
					<value target='TXRemap' data='' />
					<value target='RXRemap' data='' />
					<value target='label' data='RS232' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='1' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='001' />
					<value target='com_port' data='003' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='0' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAtAMAAFQCAAA' zoom='50' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Initialise_ReadTouchData' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAtAMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RX_Touch_test' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAtAMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='RX_ReadTouchData' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAtAMAAFQCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
