<root>
<document schema='101' license='1,Joerg Gueldner,0BBM29' title='' description='' target='PIC.16F.16F1829' >
	<config data='!0,2fa4!10,1eff%0,4%3,0%5,1%6,0%7,1%8,1%9,3%b,1%c,0%d,1%10,3%14,1%18,0%19,1%1a,1%1c,1%1d,0' clkspd='8000000' simspd='1' usewdt='1' 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='lcd_screen_counter' />
	</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='Misc' 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='taste_select_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_overdrive' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_speed_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_start_flanke_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_select' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_plus_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_min_left' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_start_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_minus_alt_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lcd_set_display_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_down_speed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_plus_alt_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_temp_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lcd_screen_counter' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='eeprom_write_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_stop_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_select_alt_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_minus' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_start_alt_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lcd_refresh_counter_temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_counter' type='u16' description='setup turnarounds by user' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_debounce_value' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_start' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_plus' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_stop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lcd_refresh_counter' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_select_flanke_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_down_speed_alt' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_up_speed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='taste_minus_bit' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_min_right' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='string_temp' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='4' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_speed' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='value_up_speed_alt' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='sensor_counter' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='lcd_temp' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_left_right' type='b1' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='motor_temp' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='_00_init_system' description='' >
						<command class_type='comment' title='' comment='timer 0 = delay flowcode
timer 1 = counter motor
timer 2 = pwm motor
timer 4 = not used
timer 6 = interrupt 4ms096' textarea='12,0,12,0' />
						<command class_type='native' title='hardware setup' textarea='188,113,188,113' ccode='// oszillator setup:
// 0x70 - 0b01110000 8mhz - 1us instruction cycle
osccon = 0b01111010;

' language='C' />
						<command class_type='delay' title='Warten' exp='100' type='1' />
						<command class_type='calculation' title='init variablen' textarea='78,37,78,37' >
							<exp exp='//taste init' />
							<exp exp='taste_debounce_value = 10 // 4ms096 x 20 = 40ms96' />
							<exp exp='taste_minus = 0' />
							<exp exp='taste_minus_bit = 0' />
							<exp exp='taste_minus_alt_bit = 0' />
							<exp exp='taste_plus = 0' />
							<exp exp='taste_plus_bit = 0' />
							<exp exp='taste_plus_alt_bit = 0' />
							<exp exp='taste_select = 0' />
							<exp exp='taste_select_bit = 0' />
							<exp exp='taste_select_alt_bit = 0' />
							<exp exp='taste_select_flanke_bit = 0' />
							<exp exp='taste_start = 0' />
							<exp exp='taste_start_alt_bit = 0' />
							<exp exp='taste_start_flanke_bit = 0' />
							<exp exp='taste_stop = 0' />
							<exp exp='taste_temp_bit = 0' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='//other' />
							<exp exp='motor_counter = 33 // timer1 counter' />
							<exp exp='motor_overdrive = 11 // 100% +x%' />
							<exp exp='motor_speed = 70 // 10...100%' />
							<exp exp='motor_speed_bit = 1 //' />
							<exp exp='motor_left_right = 1 // 1 = right' />
							<exp exp='//tle5205 deadtime' />
							<exp exp='motor_min_right = 60' />
							<exp exp='motor_min_left = 28' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='sensor_counter = 0' />
							<exp exp='value_down_speed = 200 // 4ms096 x 200 = 819ms2' />
							<exp exp='value_down_speed_alt = 200 // 4ms096 x 200 = 819ms2' />
							<exp exp='' />
							<exp exp='' />
							<exp exp='eeprom_write_bit = 0 // 1 = write to eeprom' />
							<exp exp='' />
							<exp exp='// r_/w is used from eeprom and lcd' />
							<exp exp='' />
							<exp exp='lcd_refresh_counter = 50 // 4ms096 x 50' />
							<exp exp='lcd_refresh_counter_temp = 50' />
							<exp exp='lcd_screen_counter = 0 //welcome screen' />
						</command>
						<command class_type='interrupt' title='Unterbrechung' enable='1' name='TMR6' call='_01_int_tmr6' >
							<settings timer='1' prescale='16' postscale='2' rollover='256' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='2' />
								<option value='1' />
								<option value='256' />
								<option value='-1' />
							</settings>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='_01_int_tmr6' description='int all 4ms096

' >
						<command class_type='decision' title='no switch during screen counter = 0' exp='lcd_screen_counter = 0' swap='1' >
							<flowline >
								<command class_type='comment' title='' comment='tasten abfragen
a0 = lcd -
a1 = lcd +
a2 = lcd select --&gt; flanke
a3 = stop
a4 = start --&gt; flanke
' textarea='12,0,12,0' />
								<command class_type='comment' title='' comment='taste minus
' textarea='12,0,12,0' />
								<command class_type='input' title='read pin' mode='1' port='1048576' mask='1' exp='taste_temp_bit' />
								<command class_type='decision' title='0 = taste gedrückt' exp='taste_temp_bit = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='reached debounce value' exp='taste_minus = taste_debounce_value' swap='0' >
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_minus_bit = 1' />
												</command>
												<command class_type='switch' title='change value at which screen' textarea='36,25,36,25' exp='lcd_screen_counter' >
													<case >
														<flowline />
													</case>
													<case exp='1' >
														<flowline />
													</case>
													<case exp='2' >
														<flowline >
															<command class_type='comment' title='' comment='motor counter' textarea='12,0,12,0' />
															<command class_type='decision' title='turnarounds 0...1000' exp='motor_counter &gt; 0' swap='0' >
																<flowline >
																	<command class_type='comment' title='' textarea='12,0,12,0' />
																	<command class_type='decision' title='value speed' exp='value_down_speed = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='value_down_speed_alt = 5' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_down_speed = value_down_speed_alt' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_down_speed_alt = value_down_speed_alt - 10' />
																						<exp exp='value_down_speed = value_down_speed_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='motor_counter = motor_counter - 1' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='comment' title='' comment='1 x tastendruck counts' textarea='12,0,12,0' />
																			<command class_type='decision' title='Entscheidung' exp='value_down_speed = 185' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Entscheidung' exp='value_down_speed_alt = 185' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='motor_counter = motor_counter - 1' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='value_down_speed = value_down_speed - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='3' >
														<flowline >
															<command class_type='comment' title='' comment='motor overdrive' textarea='12,0,12,0' />
															<command class_type='decision' title='motor overdrive 0...100%' exp='motor_overdrive &gt; 0' swap='0' >
																<flowline >
																	<command class_type='decision' title='value speed' exp='value_down_speed = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='value_down_speed_alt = 25' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_down_speed = value_down_speed_alt' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_down_speed_alt = value_down_speed_alt - 10' />
																						<exp exp='value_down_speed = value_down_speed_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='motor_overdrive = motor_overdrive - 1' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='comment' title='' comment='1 x tastendruck counts' textarea='12,0,12,0' />
																			<command class_type='decision' title='Entscheidung' exp='value_down_speed = 185' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Entscheidung' exp='value_down_speed_alt = 185' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='motor_overdrive = motor_overdrive - 1' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='value_down_speed = value_down_speed - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='4' >
														<flowline >
															<command class_type='comment' title='' comment='motor speed' textarea='12,0,12,0' />
															<command class_type='decision' title='flanke detection' exp='taste_minus_alt_bit = 0' swap='0' >
																<flowline >
																	<command class_type='calculation' title='stop flanke detection' >
																		<exp exp='taste_minus_alt_bit = 1' />
																	</command>
																	<command class_type='decision' title='motor speed = 0%' exp='motor_speed = 10' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='calculation' title='decrease motor speed' >
																				<exp exp='motor_speed = motor_speed - 10' />
																			</command>
																		</flowline>
																	</command>
																	<command class_type='calculation' title='set motor speed' >
																		<exp exp='motor_speed_bit = 1' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='5' >
														<flowline >
															<command class_type='comment' title='' comment='motor left right' textarea='12,0,12,0' />
															<command class_type='calculation' title='Berechnung' >
																<exp exp='motor_left_right = 0 // left' />
															</command>
														</flowline>
													</case>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='debounce +' >
													<exp exp='taste_minus = taste_minus + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='reached 0' exp='taste_minus &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='debounce -' textarea='36,0,468,0' >
													<exp exp='taste_minus = taste_minus - 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_minus_bit = 0' />
													<exp exp='taste_minus_alt_bit = 0' />
													<exp exp='value_down_speed = 185 // x 4ms096' />
													<exp exp='value_down_speed_alt = 185 // x 4ms096' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='taste plus' textarea='12,0,12,0' />
								<command class_type='input' title='read pin' mode='1' port='1048576' mask='2' exp='taste_temp_bit' />
								<command class_type='decision' title='0 = taste gedrückt' exp='taste_temp_bit = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='reached debounce value' exp='taste_plus = taste_debounce_value' swap='0' >
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_plus_bit = 1' />
												</command>
												<command class_type='switch' title='change value at which screen' textarea='36,25,36,25' exp='lcd_screen_counter' >
													<case >
														<flowline />
													</case>
													<case exp='1' >
														<flowline />
													</case>
													<case exp='2' >
														<flowline >
															<command class_type='comment' title='' comment='setup counter' textarea='12,0,12,0' />
															<command class_type='decision' title='turnarounds 0...1000' exp='motor_counter &lt; 1000' swap='0' >
																<flowline >
																	<command class_type='decision' title='value speed' exp='value_up_speed = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='value_up_speed_alt = 5' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_up_speed = value_up_speed_alt' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_up_speed_alt = value_up_speed_alt - 10' />
																						<exp exp='value_up_speed = value_up_speed_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='motor_counter = motor_counter + 1' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='comment' title='' comment='1 x tastendruck counts' textarea='12,0,12,0' />
																			<command class_type='decision' title='Entscheidung' exp='value_up_speed = 185' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Entscheidung' exp='value_up_speed_alt = 185' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='motor_counter = motor_counter + 1' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='value_up_speed = value_up_speed - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='3' >
														<flowline >
															<command class_type='comment' title='' comment='motor overdrive' textarea='12,0,12,0' />
															<command class_type='decision' title='motor overdrive 0...100%' exp='motor_overdrive &lt; 100' swap='0' >
																<flowline >
																	<command class_type='decision' title='value speed' exp='value_up_speed = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='value_up_speed_alt = 25' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_up_speed = value_up_speed_alt' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='value_up_speed_alt = value_up_speed_alt - 10' />
																						<exp exp='value_up_speed = value_up_speed_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='motor_overdrive = motor_overdrive + 1' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='comment' title='' comment='1 x tastendruck counts' textarea='12,0,12,0' />
																			<command class_type='decision' title='Entscheidung' exp='value_up_speed = 185' swap='0' >
																				<flowline >
																					<command class_type='decision' title='Entscheidung' exp='value_up_speed_alt = 185' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='motor_overdrive = motor_overdrive + 1' />
																							</command>
																						</flowline>
																						<flowline />
																					</command>
																				</flowline>
																				<flowline />
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='value_up_speed = value_up_speed - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='4' >
														<flowline >
															<command class_type='comment' title='' comment='motor speed' textarea='12,0,12,0' />
															<command class_type='decision' title='flanke detection' exp='taste_plus_alt_bit = 0' swap='0' >
																<flowline >
																	<command class_type='calculation' title='stop flanke detection' >
																		<exp exp='taste_plus_alt_bit = 1' />
																	</command>
																	<command class_type='decision' title='motor speed = 100%' exp='motor_speed = 100' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='calculation' title='increase motor speed' >
																				<exp exp='motor_speed = motor_speed + 10' />
																			</command>
																		</flowline>
																	</command>
																	<command class_type='calculation' title='set motor speed' >
																		<exp exp='motor_speed_bit = 1' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</case>
													<case exp='5' >
														<flowline >
															<command class_type='comment' title='' comment='motor left right' textarea='12,0,12,0' />
															<command class_type='calculation' title='Berechnung' >
																<exp exp='motor_left_right = 1 // right' />
															</command>
														</flowline>
													</case>
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='debounce +' >
													<exp exp='taste_plus = taste_plus + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='reached 0' exp='taste_plus &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='debounce -' >
													<exp exp='taste_plus = taste_plus - 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_plus_bit = 0' />
													<exp exp='taste_plus_alt_bit = 0' />
													<exp exp='value_up_speed = 185 // x 4ms096' />
													<exp exp='value_up_speed_alt = 185 // x 4ms096' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='taste select' textarea='12,0,12,0' />
								<command class_type='input' title='read pin' mode='1' port='1048576' mask='4' exp='taste_temp_bit' />
								<command class_type='decision' title='0 = taste gedrückt' exp='taste_temp_bit = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='reached debounce value' exp='taste_select = taste_debounce_value' swap='0' >
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_select_bit = 1' />
												</command>
												<command class_type='comment' title='' comment='calculate display rolling' textarea='39,4,39,4' />
												<command class_type='decision' title='low to high ?' exp='taste_select_alt_bit = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='init new screen' >
															<exp exp='taste_select_alt_bit = 1' />
															<exp exp='lcd_set_display_bit = 1 // writes one shot a screen' />
														</command>
														<command class_type='decision' title='Entscheidung' exp='lcd_screen_counter &gt; 7' swap='0' >
															<flowline >
																<command class_type='decision' title='which display ' exp='lcd_screen_counter = 10' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='display rolling starts at 1' >
																			<exp exp='lcd_screen_counter = 8' />
																			<exp exp='' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='display rolling starts at 1' >
																			<exp exp='lcd_screen_counter = lcd_screen_counter + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='which display ' exp='lcd_screen_counter = 5' swap='0' >
																	<flowline >
																		<command class_type='calculation' title='display rolling starts at 1' >
																			<exp exp='lcd_screen_counter = 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																	<flowline >
																		<command class_type='calculation' title='display rolling starts at 1' >
																			<exp exp='lcd_screen_counter = lcd_screen_counter + 1' />
																			<exp exp='' />
																		</command>
																	</flowline>
																</command>
															</flowline>
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='debounce +' >
													<exp exp='taste_select = taste_select + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='reached 0' exp='taste_select &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='decrease' >
													<exp exp='taste_select = taste_select - 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='detect flanke' >
													<exp exp='taste_select_alt_bit = 0' />
													<exp exp='' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='taste stop' textarea='12,0,12,0' />
								<command class_type='input' title='read pin' mode='1' port='1048576' mask='8' exp='taste_temp_bit' />
								<command class_type='decision' title='0 = taste gedrückt' exp='taste_temp_bit = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='reached debounce value' exp='taste_stop = taste_debounce_value' swap='0' >
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_stop_bit = 1' />
												</command>
												<command class_type='comment' title='' comment='reset taste start flanke' textarea='12,0,12,0' />
												<command class_type='calculation' title='reset taste start flanke bit' >
													<exp exp='taste_start_flanke_bit = 0' />
													<exp exp='taste_start_alt_bit = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='debounce +' >
													<exp exp='taste_stop = taste_stop + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='reached 0' exp='taste_stop &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='decrease' >
													<exp exp='taste_stop = taste_stop - 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='taste not pressed' >
													<exp exp='taste_stop_bit = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='taste start' textarea='12,0,12,0' />
								<command class_type='input' title='read pin' mode='1' port='1048576' mask='16' exp='taste_temp_bit' />
								<command class_type='decision' title='0 = taste gedrückt' exp='taste_temp_bit = 0' swap='0' >
									<flowline >
										<command class_type='decision' title='reached debounce value' exp='taste_start = taste_debounce_value' swap='0' >
											<flowline >
												<command class_type='calculation' title='taste ok' >
													<exp exp='taste_start_bit = 1' />
												</command>
												<command class_type='comment' title='' comment='select flanke' textarea='39,4,39,4' />
												<command class_type='decision' title='low to high ?' exp='taste_start_alt_bit = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='detect flanke' >
															<exp exp='taste_start_alt_bit = 1' />
															<exp exp='taste_start_flanke_bit = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='debounce +' >
													<exp exp='taste_start = taste_start + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='reached 0' exp='taste_start &gt; 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='decrease' >
													<exp exp='taste_start = taste_start - 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='taste not pressed' >
													<exp exp='taste_start_bit = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='calculate motor speed' textarea='36,17,36,17' />
								<command class_type='decision' title='write new speed = 1' exp='motor_speed_bit = 1' swap='0' >
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='motor_speed_bit = 0' />
										</command>
										<command class_type='decision' title='right=1   left=0' exp='motor_left_right = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='// math:' />
													<exp exp='// period = 0...250' />
													<exp exp='// motor min right (deadtime) = 60' />
													<exp exp='// 250 - 60 = 190 = 100%' />
													<exp exp='// motor speed 0...100% = 60... 250' />
													<exp exp='' />
													<exp exp='motor_temp = 250 - motor_min_right' />
													<exp exp='motor_temp = motor_temp * motor_speed / 100 // precision calculation for %' />
													<exp exp='motor_temp = motor_temp + motor_min_right // + deadtime' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='// math:' />
													<exp exp='// period = 0...250' />
													<exp exp='// motor min left (deadtime) = 28' />
													<exp exp='// 250 - 28 = 222 = 100%' />
													<exp exp='// motor speed 0...100% = 60... 250' />
													<exp exp='' />
													<exp exp='motor_temp = 250 - motor_min_right' />
													<exp exp='motor_temp = motor_temp * motor_speed / 100 // precision calculation for %' />
													<exp exp='motor_temp = motor_temp + motor_min_right // + deadtime' />
												</command>
											</flowline>
										</command>
										<command class_type='native' title='write pwm' textarea='52,0,52,0' ccode='ccpr1l = FCV_MOTOR_TEMP ;' language='C' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='_02_LCD' description='' >
						<command class_type='comment' title='' comment='display
0 = welcome
1 = main
2 = setup counter
3 = % overdrive
4 = % max speed
5 = right left
' textarea='66,110,66,110' />
						<command class_type='comment' title='' comment='welcome' textarea='12,0,12,0' />
						<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='40' type='0' />
						<command class_type='decision' title='lcd refresh' exp='lcd_refresh_counter_temp = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='lcd_refresh_counter_temp = lcd_refresh_counter' />
								</command>
								<command class_type='comment' title='' comment='write to lcd' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 0' swap='0' >
									<flowline >
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Start' />
										<command class_type='delay' title='Warten' exp='200' type='1' />
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
										<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='200' type='1' />
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
											<argument exp='&quot;MOTOR&quot;' />
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Cursor' >
											<argument exp='0' />
											<argument exp='1' />
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
											<argument exp='&quot;Control&quot;' />
										</command>
										<command class_type='delay' title='Warten' exp='3' type='2' />
										<command class_type='calculation' title='leave welcome display' >
											<exp exp='lcd_screen_counter = 1' />
											<exp exp='lcd_set_display_bit = 1' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='main' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='lcd display set one shot' exp='lcd_set_display_bit = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='lcd set display one shot' >
													<exp exp='lcd_set_display_bit = 0' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
												<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='200' type='1' />
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='2' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;+-   %&quot;' />
												</command>
												<command class_type='comment' title='' comment='motor counter' textarea='73,17,73,17' />
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='97,17,572,317' component='LCD1' macro='Cursor' >
													<argument exp='4' />
													<argument exp='0' />
												</command>
												<command class_type='calculation' title='Berechnung' textarea='97,17,97,17' >
													<exp exp='string_temp = ToString$ (motor_counter)' />
													<exp exp='lcd_temp = Length$ (string_temp)' />
												</command>
												<command class_type='decision' title='shift display' textarea='97,17,97,17' exp='lcd_temp = 1' swap='0' >
													<flowline >
														<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
															<argument exp='&quot;   &quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='shift display' textarea='97,17,97,17' exp='lcd_temp = 2' swap='0' >
															<flowline >
																<command class_type='call' title='Aufruf Komponenten-Makro' textarea='97,17,97,17' component='LCD1' macro='PrintString' >
																	<argument exp='&quot;  &quot;' />
																</command>
															</flowline>
															<flowline >
																<command class_type='decision' title='shift display' textarea='97,17,97,17' exp='lcd_temp = 3' swap='0' >
																	<flowline >
																		<command class_type='call' title='Aufruf Komponenten-Makro' textarea='97,17,97,17' component='LCD1' macro='PrintString' >
																			<argument exp='&quot; &quot;' />
																		</command>
																	</flowline>
																	<flowline />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintNumber' >
													<argument exp='motor_counter' />
												</command>
												<command class_type='comment' title='' comment='motor overdrive
' textarea='12,0,12,0' />
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='4' />
													<argument exp='1' />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='string_temp = ToString$ (motor_overdrive)' />
													<exp exp='lcd_temp = Length$ (string_temp)' />
												</command>
												<command class_type='decision' title='shift display' exp='lcd_temp = 1' swap='0' >
													<flowline >
														<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
															<argument exp='&quot;  &quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='shift display' exp='lcd_temp = 2' swap='0' >
															<flowline >
																<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
																	<argument exp='&quot; &quot;' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintNumber' >
													<argument exp='motor_overdrive' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='setup counter
' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 2' swap='0' >
									<flowline >
										<command class_type='decision' title='lcd display set one shot' exp='lcd_set_display_bit = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='lcd set display one shot' >
													<exp exp='lcd_set_display_bit = 0' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
												<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='3' type='1' />
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;_&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='2' />
													<argument exp='1' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='motor counter' textarea='12,0,12,0' />
										<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
											<argument exp='2' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='string_temp = ToString$ (motor_counter)' />
											<exp exp='lcd_temp = Length$ (string_temp)' />
										</command>
										<command class_type='decision' title='shift display' exp='lcd_temp = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;   &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='shift display' exp='lcd_temp = 2' swap='0' >
													<flowline >
														<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
															<argument exp='&quot;  &quot;' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='shift display' exp='lcd_temp = 3' swap='0' >
															<flowline >
																<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
																	<argument exp='&quot; &quot;' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintNumber' >
											<argument exp='motor_counter' />
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
											<argument exp='&quot; &quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='over drive' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 3' swap='0' >
									<flowline >
										<command class_type='decision' title='lcd display set one shot' exp='lcd_set_display_bit = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='lcd set display one shot' >
													<exp exp='lcd_set_display_bit = 0' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
												<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='3' type='1' />
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;   100%&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='1' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;+-   %&quot;' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='motor overdrive' textarea='12,0,12,0' />
										<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
											<argument exp='3' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='string_temp = ToString$ (motor_overdrive)' />
											<exp exp='lcd_temp = Length$ (string_temp)' />
										</command>
										<command class_type='decision' title='shift display' exp='lcd_temp = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;  &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='shift display' exp='lcd_temp = 2' swap='0' >
													<flowline >
														<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
															<argument exp='&quot; &quot;' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintNumber' >
											<argument exp='motor_overdrive' />
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
											<argument exp='&quot;% &quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='max speed' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 4' swap='0' >
									<flowline >
										<command class_type='decision' title='lcd display set one shot' exp='lcd_set_display_bit = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='lcd set display one shot' >
													<exp exp='lcd_set_display_bit = 0' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
												<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='3' type='1' />
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;&gt; &gt;&gt; &gt;&gt;&gt;&quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='5' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;%&quot;' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='comment' title='' comment='motor speed' textarea='12,0,12,0' />
										<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
											<argument exp='2' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='string_temp = ToString$ (motor_speed)' />
											<exp exp='lcd_temp = Length$ (string_temp)' />
										</command>
										<command class_type='decision' title='shift display' exp='lcd_temp = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;  &quot;' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='shift display' exp='lcd_temp = 2' swap='0' >
													<flowline >
														<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
															<argument exp='&quot; &quot;' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintNumber' >
											<argument exp='motor_speed' />
										</command>
										<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
											<argument exp='&quot;%  &quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='motor left right' textarea='12,0,12,0' />
								<command class_type='decision' title='lcd display counter' exp='lcd_screen_counter = 5' swap='0' >
									<flowline >
										<command class_type='decision' title='lcd display set one shot' exp='lcd_set_display_bit = 1' swap='0' >
											<flowline >
												<command class_type='calculation' title='lcd set display one shot' >
													<exp exp='lcd_set_display_bit = 0' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='Clear' />
												<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='3' type='1' />
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot;Motor &quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='0x7f' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='0x7e' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='7' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='decision' title='motor right = 1' exp='motor_left_right = 1' swap='0' >
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='6' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot; &quot;' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
											</flowline>
											<flowline >
												<command class_type='call' title='Aufruf Komponenten-Makro' textarea='36,0,511,300' component='LCD1' macro='Cursor' >
													<argument exp='6' />
													<argument exp='1' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintAscii' >
													<argument exp='255' />
												</command>
												<command class_type='call' title='Aufruf Komponenten-Makro' component='LCD1' macro='PrintString' >
													<argument exp='&quot; &quot;' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='lcd_refresh_counter_temp = lcd_refresh_counter_temp - 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<command class_type='call' title='Makro-Aufruf' macro='_00_init_system' />
						<command class_type='loop' title='Schleife' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Makro-Aufruf' macro='_02_LCD' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='0953aac0-9c23-4c2f-9843-88954a4191ea' vmin='1' vmaj='2' codename='LCD1' x='0' y='-48' z='0' xsz='160' ysz='60' zsz='1.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 >
					<value target='LCD_Mode' data='000' />
					<value target='Pin_Data_0' data='$PORTC.3' />
					<value target='Pin_Data_1' data='$PORTC.2' />
					<value target='Pin_Data_2' data='$PORTC.1' />
					<value target='Pin_Data_3' data='$PORTC.0' />
					<value target='Pin_Data_4' data='$PORTA.1' />
					<value target='Pin_Data_5' data='$PORTA.1' />
					<value target='Pin_Data_6' data='$PORTA.1' />
					<value target='Pin_Data_7' data='$PORTA.1' />
					<value target='LCD_Port' data='$PORTA' />
					<value target='Pin_RS' data='$PORTB.7' />
					<value target='Pin_E' data='$PORTB.5' />
					<value target='LCD_Use_Write' data='1' />
					<value target='Pin_RW' data='$PORTB.6' />
					<value target='Rows' data='002' />
					<value target='Columns' data='008' />
					<value target='BackgroundColor' data='49152' />
					<value target='LineColor' data='0' />
					<value target='TextColor' data='0' />
					<value target='Font' data='SansSerif' />
					<value target='CursorPosX' data='2' />
					<value target='CursorPosY' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='5c1da48f-ce54-4622-bdd9-fc812e373696' vmin='0' vmaj='1' codename='sw_push_rnd_pnl1' x='-48' y='48' 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 >
					<value target='pin' data='$PORTA.2' />
					<value target='polarity' data='001' />
					<value target='debounce' data='10' />
					<value target='operation' data='000' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='fc04a65f-f03d-40c8-9f69-0d23d2daac29' vmin='1' vmaj='1' codename='pcb_switch1' x='16' y='72' z='4.1' xsz='2.10526' ysz='2' zsz='2.02703' 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='pin' data='$PORTA.1' />
					<value target='polarity' data='001' />
					<value target='debounce' data='' />
					<value target='operation' data='000' />
					<value target='color' data='6908265' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='fc04a65f-f03d-40c8-9f69-0d23d2daac29' vmin='1' vmaj='1' codename='pcb_switch2' x='16' y='32' z='4.1' xsz='2.10526' ysz='2' zsz='2.02703' 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='pin' data='$PORTA.0' />
					<value target='polarity' data='001' />
					<value target='debounce' data='' />
					<value target='operation' data='000' />
					<value target='color' data='6908265' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='24219805-113d-4b12-b6bd-e1b0b0c33981' vmin='2' vmaj='1' codename='I2C_Master1' x='0' y='0' z='0.755' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='CHANNEL' data='000' />
					<value target='BAUD_LIST' data='000' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='BAUD' data='50000' />
					<value target='SDA' data='$PORTC.7' />
					<value target='SCL' data='$PORTC.6' />
					<value target='label' data='I2C Master' />
					<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='1' />
		<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='256' perspective='0' >
		<background rgb='8409120' img='' style='1' />
		<table rgb='7884836' img='' style='1' size='71' />
		<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='_02_LCD' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAvwUAAIEDAAA' zoom='75' scrollx='0' scrolly='2790' flags='0' />
		<view type='0' name='_00_init_system' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAvwUAAIEDAAA' zoom='75' scrollx='0' scrolly='209' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAvwUAAIEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_01_int_tmr6' mode='0' placement='LAAAAAAAAAABAAAA---------------------wAAAAAUAAAAvwUAAIEDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
