<root>
<document scada='0' schema='102' license='1,Christina Frauenberger,DWBU9N' title='' description='' fcversion='524802' target='PIC16.33E.ECIO40P16' >
	<config data='' clkspd='140000000' simspd='1' usewdt='0' constif='0' commport='14' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='retval' />
		<watch expr='UIDBytes' />
		<watch expr='CardID' />
	</debug>
	<traces />
	<ghost >
		<FK2 >
			<data name='FK2D0' port='4294967295' pin='4294967295' />
			<data name='FK2D1' port='4294967295' pin='4294967295' />
			<data name='FK2D2' port='4294967295' pin='4294967295' />
			<data name='FK2D3' port='4294967295' pin='4294967295' />
			<data name='FK2D4' port='4294967295' pin='4294967295' />
			<data name='FK2D5' port='4294967295' pin='4294967295' />
			<data name='FK2D6' port='4294967295' pin='4294967295' />
			<data name='FK2D7' port='4294967295' pin='4294967295' />
			<data name='FK2D8' port='4294967295' pin='4294967295' />
			<data name='FK2D9' port='4294967295' pin='4294967295' />
			<data name='FK2D10' port='4294967295' pin='4294967295' />
			<data name='FK2D11' port='4294967295' pin='4294967295' />
			<data name='FK2D12' port='4294967295' pin='4294967295' />
			<data name='FK2D13' port='4294967295' pin='4294967295' />
			<data name='FK2D14' port='4294967295' pin='4294967295' />
			<data name='FK2D15' port='4294967295' pin='4294967295' />
			<data name='FK2A0' port='4294967295' pin='4294967295' />
			<data name='FK2A1' port='4294967295' pin='4294967295' />
			<data name='FK2A2' port='4294967295' pin='4294967295' />
			<data name='FK2A3' port='4294967295' pin='4294967295' />
			<data name='FK2A4' port='4294967295' pin='4294967295' />
			<data name='FK2A5' port='4294967295' pin='4294967295' />
		</FK2>
		<ICD >
			<data name='AnalogPrescaleValue' value='19' />
			<data name='DigitalSampleRate' value='100000' />
			<data name='BreakpointCount' value='8' />
			<data name='CallStackDepthCount' value='8' />
			<data name='ClockPort' value='6' />
			<data name='ClockPin' value='3' />
			<data name='DataPort' value='4' />
			<data name='DataPin' value='2' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='2' />
			<data name='CalculatedCommsDelay' value='2' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='d00dc8d9-3341-42f9-b534-7fd999d02852' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' 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' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='b' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='a' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bKey' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Str1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='retval' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DataBufferIn' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='18' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='z' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='y' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='xSum' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DataBufferOut' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='16' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='aKey' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='6' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CardUID' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CardID' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='DataBufferSize' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='1' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='UIDBytes' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='cardType' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='Example program to Read to UID of a MIFARE card and attempt to read and write values to and from the card.
' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Ausgang' cmdcolor='15138777' cmdcolor_sec='15138777' mode='1' port='1048580' mask='4' exp='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
							<argument exp='&quot;INIT: &quot;' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='Initialise' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
							<argument exp='&quot;OK&quot;' />
							<argument exp='62' />
							<argument exp='2' />
							<argument exp='1' />
							<argument exp='0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
						<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
						<command class_type='loop' title='Loop' cmdcolor='13959167' cmdcolor_sec='13959167' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Check for a new RFID tag' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='IsNewCardPresent' >
									<return exp='retval' />
								</command>
								<command class_type='decision' title='New Card Present?' cmdcolor='13959167' cmdcolor_sec='13959167' exp='retval' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
										<command class_type='call' title='Read UID' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='ReadCardSerial' >
											<return exp='retval' />
										</command>
										<command class_type='call' title='Read Number Of Bytes in UID' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='ReadUIDByte' >
											<return exp='UIDbytes' />
											<argument exp='10' />
										</command>
										<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
											<exp exp='a = 2' />
										</command>
										<command class_type='loop' title='Output UID data (could read length from card - but assumed 4 byt' cmdcolor='13959167' cmdcolor_sec='13959167' type='2' forvar='y' exp='UIDbytes' >
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='ReadUIDByte' >
													<return exp='CardUID[y]' />
													<argument exp='y' />
												</command>
												<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
													<exp exp='gLCD_SSD1306_i2c1 :: Print (&quot;Card found&quot;,2,2,0,0)' />
													<exp exp='Str1 = NumberToHex$ (CardUID[y])' />
													<exp exp='Str1 = Right$ (Str1,2)' />
													<exp exp='xSum = xSum + CardUID[y]' />
													<exp exp='gLCD_SSD1306_i2c1 :: Print (Str1,a,14,0,0)' />
												</command>
												<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
													<exp exp='a = a + 15' />
												</command>
											</flowline>
										</command>
										<command class_type='decision' title='Entscheidung' cmdcolor='13959167' cmdcolor_sec='13959167' exp='xSum = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' cmdcolor='13959167' cmdcolor_sec='13959167' >
													<exp exp='gLCD_SSD1306_i2c1 :: ClearDisplay ()' />
													<exp exp='gLCD_SSD1306_i2c1 :: Print (&quot;Lesefehler!&quot;,30,25,0,0)' />
												</command>
												<command class_type='delay' title='Warten' cmdcolor='13959167' cmdcolor_sec='13959167' exp='3' type='2' />
												<command class_type='goto' title='Gehe zum Verbindungspunkt' cmdcolor='13959167' cmdcolor_sec='13959167' labelid='0' labelname='' />
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='Card Selected?' break='1' cmdcolor='13959167' cmdcolor_sec='13959167' exp='retval' swap='0' >
											<flowline >
												<command class_type='call' title='Read Card Type From UID SAK' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='ReadUIDByte' >
													<return exp='cardType' />
													<argument exp='11' />
												</command>
												<command class_type='call' title='Convert to meaningful value' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='GetType' >
													<return exp='cardType' />
													<argument exp='cardType' />
												</command>
												<command class_type='decision' title='Check for MIFARE MINII, 1K, 4K' cmdcolor='13959167' cmdcolor_sec='13959167' exp='(cardType = RFID :: PICC_TYPE_MIFARE_MINI) || (CardType = RFID :: PICC_TYPE_MIFARE_1K) || (CardType = RFID :: PICC_TYPE_MIFARE_4K)' swap='0' >
													<flowline >
														<command class_type='calculation' title='Default Factory Auth Key' cmdcolor='13959167' cmdcolor_sec='13959167' >
															<exp exp='aKey[0] = 0xFF' />
															<exp exp='aKey[1] = 0xFF' />
															<exp exp='aKey[2] = 0xFF' />
															<exp exp='aKey[3] = 0xFF' />
															<exp exp='aKey[4] = 0xFF' />
															<exp exp='aKey[5] = 0xFF' />
														</command>
														<command class_type='calculation' title='Default Factory Auth Key' cmdcolor='13959167' cmdcolor_sec='13959167' >
															<exp exp='bKey[0] = 0xFF' />
															<exp exp='bKey[1] = 0xFF' />
															<exp exp='bKey[2] = 0xFF' />
															<exp exp='bKey[3] = 0xFF' />
															<exp exp='bKey[4] = 0xFF' />
															<exp exp='bKey[5] = 0xFF' />
															<exp exp='bKey[6] = 0x3A' />
															<exp exp='bKey[7] = 0x35' />
															<exp exp='bKey[8] = 0x71' />
															<exp exp='bKey[9] = 0x25' />
														</command>
														<command class_type='call' title='Enable Mifare Auth Mode' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='Authenticate' >
															<return exp='retval' />
															<argument exp='RFID :: PICC_CMD_MF_AUTH_KEY_B' />
															<argument exp='4' />
															<argument exp='bKey' />
														</command>
														<command class_type='decision' title='Error?' cmdcolor='13959167' cmdcolor_sec='13959167' exp='retval' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Auth ERR &quot;' />
																	<argument exp='2' />
																	<argument exp='26' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																	<argument exp='retval' />
																	<argument exp='75' />
																	<argument exp='26' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='3' type='2' />
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='13959167' cmdcolor_sec='13959167' labelid='0' labelname='' />
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Auth OK&quot;' />
																	<argument exp='2' />
																	<argument exp='26' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																	<argument exp='retval' />
																	<argument exp='75' />
																	<argument exp='26' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Data to Write to Card' cmdcolor='13959167' cmdcolor_sec='13959167' >
															<exp exp='DataBufferSize[0] = 16' />
															<exp exp='DataBufferOut[0] = 10' />
															<exp exp='DataBufferOut[1] = 28' />
															<exp exp='DataBufferOut[2] = 33' />
															<exp exp='DataBufferOut[3] = 46' />
															<exp exp='DataBufferOut[4] = 5' />
															<exp exp='DataBufferOut[5] = 6' />
															<exp exp='DataBufferOut[6] = 7' />
															<exp exp='DataBufferOut[7] = 8' />
															<exp exp='DataBufferOut[8] = 9' />
															<exp exp='DataBufferOut[9] = 10' />
															<exp exp='DataBufferOut[10] = 11' />
															<exp exp='DataBufferOut[11] = 12' />
															<exp exp='DataBufferOut[12] = 13' />
															<exp exp='DataBufferOut[13] = 14' />
															<exp exp='DataBufferOut[14] = 15' />
															<exp exp='DataBufferOut[15] = 16' />
														</command>
														<command class_type='call' title='Write To Block 4' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='MifareWrite' >
															<return exp='retval' />
															<argument exp='4' />
															<argument exp='DataBufferOut' />
															<argument exp='DataBufferSize' />
														</command>
														<command class_type='decision' title='Error?' cmdcolor='13959167' cmdcolor_sec='13959167' exp='retval' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Write ERR &quot;' />
																	<argument exp='2' />
																	<argument exp='38' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																	<argument exp='retval' />
																	<argument exp='60' />
																	<argument exp='38' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='13959167' cmdcolor_sec='13959167' labelid='0' labelname='' />
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Write OK &quot;' />
																	<argument exp='2' />
																	<argument exp='38' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																	<argument exp='retval' />
																	<argument exp='60' />
																	<argument exp='38' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
															</flowline>
														</command>
														<command class_type='calculation' title='Reset Readback Data to ensure no cheating' cmdcolor='13959167' cmdcolor_sec='13959167' >
															<exp exp='DataBufferSize[0] = 18' />
															<exp exp='DataBufferIn[0] = 0' />
															<exp exp='DataBufferIn[1] = 0' />
															<exp exp='DataBufferIn[2] = 0' />
															<exp exp='DataBufferIn[3] = 0' />
															<exp exp='DataBufferIn[4] = 0' />
															<exp exp='DataBufferIn[5] = 0' />
															<exp exp='DataBufferIn[6] = 0' />
															<exp exp='DataBufferIn[7] = 0' />
															<exp exp='DataBufferIn[8] = 0' />
															<exp exp='DataBufferIn[9] = 0' />
															<exp exp='DataBufferIn[10] = 0' />
															<exp exp='DataBufferIn[11] = 0' />
															<exp exp='DataBufferIn[12] = 0' />
															<exp exp='DataBufferIn[13] = 0' />
															<exp exp='DataBufferIn[14] = 0' />
															<exp exp='DataBufferIn[15] = 0' />
														</command>
														<command class_type='call' title='Read Back From Card' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='MifareRead' >
															<return exp='retval' />
															<argument exp='4' />
															<argument exp='DataBufferIn' />
															<argument exp='DataBufferSize' />
														</command>
														<command class_type='decision' title='Error?' cmdcolor='13959167' cmdcolor_sec='13959167' exp='retval' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Read ERR &quot;' />
																	<argument exp='2' />
																	<argument exp='48' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='PrintNumber' >
																	<argument exp='retval' />
																	<argument exp='60' />
																	<argument exp='48' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
																<command class_type='goto' title='Goto Connection Point' cmdcolor='13959167' cmdcolor_sec='13959167' labelid='0' labelname='' />
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Read OK&quot;' />
																	<argument exp='2' />
																	<argument exp='48' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
																<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
															</flowline>
														</command>
														<command class_type='calculation' title='Reset Counter' cmdcolor='13959167' cmdcolor_sec='13959167' >
															<exp exp='a = 0' />
														</command>
														<command class_type='loop' title='Compare In data with Out Data' cmdcolor='13959167' cmdcolor_sec='13959167' type='2' forvar='b' exp='16' >
															<flowline >
																<command class_type='decision' title='If data bytes match' cmdcolor='13959167' cmdcolor_sec='13959167' exp='DataBufferIn[b] = DataBufferOut[b]' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='Increment Counter' cmdcolor='13959167' cmdcolor_sec='13959167' >
																			<exp exp='a = a + 1' />
																		</command>
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
														<command class_type='decision' title='All Data Bytes Match?' cmdcolor='13959167' cmdcolor_sec='13959167' exp='a = 16' swap='0' >
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Read/Write OK&quot;' />
																	<argument exp='2' />
																	<argument exp='44' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
															</flowline>
															<flowline >
																<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
																	<argument exp='&quot;Read/Write FAIL&quot;' />
																	<argument exp='2' />
																	<argument exp='44' />
																	<argument exp='0' />
																	<argument exp='0' />
																</command>
															</flowline>
														</command>
														<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='5' type='2' />
														<command class_type='call' title='Aufruf Komponenten-Makro' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='HaltA' />
														<command class_type='call' title='Aufruf Komponenten-Makro' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='StopCrypto' />
														<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
													</flowline>
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
															<argument exp='&quot;Cardtype fail&quot;' />
															<argument exp='20' />
															<argument exp='50' />
															<argument exp='0' />
															<argument exp='0' />
														</command>
														<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
														<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='Print' >
													<argument exp='&quot;Select ERR&quot;' />
													<argument exp='2' />
													<argument exp='22' />
													<argument exp='0' />
													<argument exp='0' />
												</command>
												<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='2' type='2' />
												<command class_type='call' title='Call Component Macro' cmdcolor='16772088' cmdcolor_sec='16772088' component='gLCD_SSD1306_i2c1' macro='ClearDisplay' />
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='delay' title='Delay' cmdcolor='13959167' cmdcolor_sec='13959167' exp='20' type='1' />
									</flowline>
								</command>
								<command class_type='label' title='Connection Point' cmdcolor='13959167' cmdcolor_sec='13959167' labelid='0' labelname='A' />
								<command class_type='call' title='Halt Active MIFARE card' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='HaltA' />
								<command class_type='call' title='Switch Off Authenitcation' cmdcolor='16772088' cmdcolor_sec='16772088' component='RFID' macro='StopCrypto' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='3f8d29a6-40a6-4d5e-a254-190c86d9ebb7' vmin='0' vmaj='3' codename='RFID' x='10.1' y='-7.4' z='0.283125' xsz='0.375' ysz='0.375' zsz='0.375' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi::CHANNEL' data='000' />
					<value target='cal_spi::PR_SCALE' data='004' />
					<value target='cal_spi::MOSI' data='$PORTD.3' />
					<value target='cal_spi::MOSIPins' data='008' />
					<value target='cal_spi::MISO' data='$PORTD.2' />
					<value target='cal_spi::MISOPins' data='013' />
					<value target='cal_spi::CLK' data='$PORTD.4' />
					<value target='cal_spi::CLKPins' data='004' />
					<value target='cal_spi::SS' data='$PORTD.5' />
					<value target='reset' data='$PORTD.6' />
					<value target='label' data='MFRC522' />
					<value target='cal_spi::ScopeTraces' data='1' />
					<value target='cal_spi::ConsoleData' data='1' />
					<value target='cal_spi::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f6ab6074-68ba-4cd4-9274-f973102f8518' vmin='8' vmaj='1' codename='gLCD_SSD1306_i2c1' x='-45.8' y='-8.2' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pixel_height' data='64' />
					<value target='pixel_width' data='128' />
					<value target='Interlaced' data='1' />
					<value target='monochrome' data='1' />
					<value target='foreground_colour' data='16777215' />
					<value target='background_colour' data='0' />
					<value target='colour_bit_depth' data='1' />
					<value target='red_bit_depth' data='0' />
					<value target='green_bit_depth' data='0' />
					<value target='blue_bit_depth' data='0' />
					<value target='Address' data='120' />
					<value target='cal_i2c1::CHANNEL' data='000' />
					<value target='cal_i2c1::BAUD_LIST' data='003' />
					<value target='cal_i2c1::BAUD' data='1000000' />
					<value target='cal_i2c1::StopDel' data='0' />
					<value target='cal_i2c1::SDA' data='$PORTB.14' />
					<value target='cal_i2c1::SDAPins' data='000' />
					<value target='cal_i2c1::SCL' data='$PORTB.15' />
					<value target='cal_i2c1::SCLPins' data='000' />
					<value target='DisplayMethod' data='000' />
					<value target='SimComms' data='0' />
					<value target='cal_i2c1::ConsoleData' data='0' />
					<value target='cal_i2c1::ScopeTraces' data='0' />
					<value target='cal_i2c1::Injector' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='14803425' img='' style='0' />
		<camera xe='-20.3156' ye='-7.54306' ze='268.854' xt='-20.3156' yt='-7.54306' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8404224' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAfAAAAIAUAAF0CAAA' zoom='75' scrollx='613' scrolly='4300' flags='0' />
	</layout>
</document>
</root>
