<root>
<document scada='0' schema='102' license='1,Ronnyvs,M286MC' title='' description='' fcversion='524802' target='AVR.ATMEGA.ATMEGA328P' >
	<config data='!0,ff!8,ff!10,ff%0,3f%6,1%7,1' clkspd='8000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='r' />
	</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='1' />
			<data name='ClockPin' value='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='21' />
			<data name='CalculatedCommsDelay' value='21' />
			<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='6e63b1bf-fd21-4bc2-8666-3c2dcfedf5d0' 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='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CountError' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='blokjes_bargraph_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Rotory_counter_value' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Rotory_changes_detected' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='blokjes_bargraph_str_length' 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='bargraph' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='1e Karakter' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='16' />
							<argument exp='16' />
							<argument exp='16' />
							<argument exp='16' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
						<command class_type='call' title='2e Karakter' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='1' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='8' />
							<argument exp='8' />
							<argument exp='8' />
							<argument exp='8' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
						<command class_type='call' title='3e Karakter' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='2' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='4' />
							<argument exp='4' />
							<argument exp='4' />
							<argument exp='4' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
						<command class_type='call' title='4e Karakter' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='3' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='2' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
						<command class_type='call' title='5e Karakter' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='4' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='1' />
							<argument exp='1' />
							<argument exp='1' />
							<argument exp='1' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
						<command class_type='call' title='2 streepjes' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='5' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='10' />
							<argument exp='10' />
						</command>
						<command class_type='call' title='3 streepjes' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='RAMWrite' >
							<argument exp='6' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='21' />
							<argument exp='21' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='interupt_rotory_encoder' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='CheckForChanges' >
							<return exp='Rotory_changes_detected' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Rotory_changes_detected = 255' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='CountError = 1' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Display_input' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Waarde_min' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='waarde_max' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Waarde_totaal' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='encoder_waarde' type='s16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='display_karakters_horizontaal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='display_karakters_verticaal' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='aantal_blokjes_bargraph' type='f32' description='' isconst='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='posities' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='full_number_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='4' />
						</local>
						<local name='Decimals_str' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='2' />
						</local>
						<local name='Decimals' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='full_number' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<local name='Marker_position_lcd' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='variabelen var1' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Waarde_min = 8' />
							<exp exp='.waarde_max = 30' />
							<exp exp='.display_karakters_horizontaal = 16' />
							<exp exp='.display_karakters_verticaal = 2' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Rotory_counter_value &gt; .waarde_max' swap='0' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='WriteCounter' >
									<argument exp='.waarde_max*4' />
								</command>
								<command class_type='comment' title='' comment='&quot;write counter&quot; waarde moet 4 keer groter zijn dan de werkelijke waarde...
dus wil je een werkelijke waarde van 16, dan moet de ingevulde waarde 4x16=64 zijn
dit heeft te maken met de prescaler van de encoder' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='ReadCounter' >
									<return exp='Rotory_counter_value' />
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Rotory_counter_value &lt; .Waarde_min' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='WriteCounter' >
											<argument exp='(.Waarde_min*4)' />
										</command>
										<command class_type='comment' title='' comment='&quot;write counter&quot; waarde moet 4 keer groter zijn dan de werkelijke waarde...
dus wil je een werkelijke waarde van 16, dan moet de ingevulde waarde 4x16=64 zijn
dit heeft te maken met de prescaler van de encoder' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='ReadCounter' >
											<return exp='Rotory_counter_value' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.encoder_waarde = Rotory_counter_value - .Waarde_min' />
							<exp exp='' />
							<exp exp='.Waarde_totaal = .waarde_max - .Waarde_min' />
							<exp exp='' />
							<exp exp='.posities = (.display_karakters_horizontaal - 2) * 5.0' />
							<exp exp='' />
							<exp exp='//even zorgen dat variabelen en waarden als Float worden gezien' />
							<exp exp='.aantal_blokjes_bargraph = FLOAT .encoder_waarde / (FLOAT .Waarde_totaal / FLOAT .posities) / 5.0' />
							<exp exp='' />
							<exp exp='.aantal_blokjes_bargraph = fround (.aantal_blokjes_bargraph,2) //             afronden op 2 decimalen' />
							<exp exp='blokjes_bargraph_str = FloatToString$ (.aantal_blokjes_bargraph) //          even omzetten naar string om op display te kunnen weergeven' />
							<exp exp='blokjes_bargraph_str = Mid$ (blokjes_bargraph_str,0,4) //                            even de string aanpassen zodat het juiste deel word weergegeven' />
							<exp exp='' />
						</command>
						<command class_type='comment' title='' comment='Positie bepalen voor de bargraph locatie op de display



' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.aantal_blokjes_bargraph &gt; 10' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.aantal_blokjes_bargraph = fround (.aantal_blokjes_bargraph,2) //             afronden op 2 decimalen' />
									<exp exp='blokjes_bargraph_str = FloatToString$ (.aantal_blokjes_bargraph) //             even omzetten naar string om op display te kunnen weergeven' />
									<exp exp='blokjes_bargraph_str = Mid$ (blokjes_bargraph_str,0,5) //                            even de string aanpassen zodat het juiste deel word weergegeven' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='blokjes_bargraph_str_length = Length$ (blokjes_bargraph_str)' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='blokjes_bargraph_str_length &gt; 4' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='blokjes_bargraph_str = Mid$ (blokjes_bargraph_str,0,5) //         even de string aanpassen zodat het juiste deel word weergegeven' />
									<exp exp='.full_number_str = Left$ (blokjes_bargraph_str,2)' />
									<exp exp='.Decimals_str = Right$ (blokjes_bargraph_str,2)' />
									<exp exp='' />
									<exp exp='' />
									<exp exp='' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='blokjes_bargraph_str = Mid$ (blokjes_bargraph_str,0,4) //        even de string aanpassen zodat het juiste deel word weergegeven' />
									<exp exp='.full_number_str = Left$ (blokjes_bargraph_str,1)' />
									<exp exp='.Decimals_str = Right$ (blokjes_bargraph_str,2)' />
									<exp exp='' />
									<exp exp='' />
									<exp exp='' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.full_number = StringToInt$ (.full_number_str)' />
							<exp exp='.Decimals = StringToInt$ (.Decimals_str)' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Clear' />
						<command class_type='comment' title='' comment='Plaatsen juiste karakter op juiste plaats' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Marker_position_lcd = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='1' exp='.Marker_position_lcd = (.display_karakters_horizontaal - 1)' start='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='.Marker_position_lcd = .Marker_position_lcd + 1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='.Marker_position_lcd' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
									<argument exp='6' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.Marker_position_lcd = .full_number + 1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='.Marker_position_lcd' />
							<argument exp='1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Decimals &gt; 20' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Decimals &gt; 40' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Decimals &gt; 60' swap='0' >
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='.Decimals &gt; 80' swap='0' >
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
															<argument exp='4' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
															<argument exp='03' />
														</command>
													</flowline>
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
													<argument exp='2' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
											<argument exp='1' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
									<argument exp='0' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='Plaatsen juiste karakter op juiste plaats END' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
							<argument exp='91' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='(.display_karakters_horizontaal-1)' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
							<argument exp='93' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='.encoder_waarde' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='Rotory_counter_value' />
						</command>
						<command class_type='group' title='Group' cmdcolor='3568629' cmdcolor_sec='3568629' >
							<flowline >
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='Rotory_counter_value' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='4' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='.posities' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='7' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='.Waarde_totaal' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='4' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
							<argument exp='blokjes_bargraph_str' />
						</command>
						<command class_type='group' title='Group' cmdcolor='3568629' cmdcolor_sec='3568629' >
							<flowline >
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='10' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='blokjes_bargraph_str_length' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='EINDE Bargraph display (Onderste LCD regel)



' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='11' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='.full_number' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
							<argument exp='.full_number_str' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
							<argument exp='14' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
							<argument exp='.Decimals' />
						</command>
						<command class_type='call' title='Call Component Macro' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
							<argument exp='.Decimals_str' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='Enable' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Start' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Clear' />
						<command class_type='comment' title='' comment='7 custom karakters' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='bargraph' />
						<command class_type='comment' title='' comment='7 custom karakters END' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='interrupt' title='Interrupt_rotory_encoder' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='IOC2' call='interupt_rotory_encoder' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='----DP--------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='----DP--------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Display_input' />
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Rotory_changes_detected = true' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='Rotory_changes_detected = false' />
										</command>
										<command class_type='decision' title='Decision' disable='1' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Rotory_counter_value &gt; 20' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='&quot;write counter&quot; waarde moet 4 keer groter zijn dan de werkelijke waarde...
dus wil je een werkelijke waarde van 16, dan moet de ingevulde waarde 4x16=64 zijn
dit heeft te maken met de prescaler van de encoder' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='WriteCounter' >
													<argument exp='80' />
												</command>
												<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='ReadCounter' >
													<return exp='Rotory_counter_value' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='QuadEncoder1' macro='ReadCounter' >
											<return exp='Rotory_counter_value' />
										</command>
										<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='Display_input' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='3531a68d-7686-44b7-a3a5-67afda8467dc' vmin='4' vmaj='1' codename='QuadEncoder1' x='7.26087' y='-43.5' z='10.5652' xsz='2.17391' ysz='2.17391' zsz='2.17391' 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='1' >
				<resources />
				<properties />
				<values >
					<value target='VarType' data='000' />
					<value target='Divider' data='004' />
					<value target='pin_a' data='$PORTD.2' />
					<value target='pin_b' data='$PORTD.3' />
					<value target='reprate' data='075' />
					<value target='RotInc' data='18.000000' />
					<value target='ScopeTraces' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f8c9b53d-0bf2-469f-8f0a-34caa93749ba' vmin='1' vmaj='1' codename='lcd_16x2' x='10' y='8.15' z='0' xsz='2.25' ysz='1.65289' 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='Pin_Data_0' data='$PORTB.1' />
					<value target='Pin_Data_1' data='$PORTB.2' />
					<value target='Pin_Data_2' data='$PORTB.3' />
					<value target='Pin_Data_3' data='$PORTB.4' />
					<value target='Pin_RS' data='$PORTD.7' />
					<value target='Pin_E' data='$PORTB.0' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' 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='1' >
		<background rgb='8409120' 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='Display_input' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbwYAAHgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbwYAAHgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='bargraph' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAbwYAAHgDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
