<root>
<document scada='0' projtype='1' schema='103' license='1,65920724,5Q78FW' title='' description='' fcversion='720896' target='PIC16.24F.24FV32KA304' >
	<config data='!0,fff8!10,ffff!20,ff7a!30,ffbe!40,fff8!50,ffb7!60,ffff!70,ff3f%0,0%1,4%10,1%11,1%20,2%25,1%26,1%27,0%30,2%32,1%33,3%35,1%36,2%40,8%44,1%45,5%46,1%50,3%52,1%53,0%54,1%55,1%57,1%60,3%67,1%70,f%74,1%76,0%77,0' clkspd='22118400' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<debug >
		<watch expr='ad9833_temp' />
		<watch expr='f1_value' />
		<watch expr='display_temp3' />
		<watch expr='fram_crc_temp' />
		<watch expr='fram_byte' />
		<watch expr='i2c_transceive_byte' />
		<watch expr='fram_address' />
	</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='8' />
			<data name='CalculatedCommsDelay' value='8' />
			<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='' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' category2='' category3='' bIs2dOnly='0' bIs3dOnly='0' bIsWysiwyg='0' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='0' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='' />
		<component class_type='root' codename='panel' panelId='-1' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='DAC En' target='SPI_Master1::DAC_En' typeid='5' hidden='0' locked='0' info='DAC enable pin - only used with the EB013 SPI E-block' />
				<property name='NVM En' target='SPI_Master1::NVM_En' typeid='5' hidden='0' locked='0' info='NVM enable pin - only used with the EB013 SPI E-block' />
				<property name='DAC En' target='SPI_Master2::DAC_En' typeid='5' hidden='0' locked='0' info='DAC enable pin - only used with the EB013 SPI E-block' />
				<property name='NVM En' target='SPI_Master2::NVM_En' typeid='5' hidden='0' locked='0' info='NVM enable pin - only used with the EB013 SPI E-block' />
			</properties>
			<values >
				<value target='SPI_Master1::DAC_En' data='$PORTC.8' />
				<value target='SPI_Master1::NVM_En' data='$PORTC.9' />
				<value target='SPI_Master2::DAC_En' data='$PORTC.8' />
				<value target='SPI_Master2::NVM_En' data='$PORTC.9' />
			</values>
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='led_remote_flag' type='b1' description='1=on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='profil_counter_temp' type='u8' description='0=no   1=fram   2=const' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_action_counter' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tmr0_1s_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='welcome_screen_timer' type='u16' description='2ms x1500 = 3s welcome screen' isconst='0' isHidden='0' isinit='1' usrinit='1500' setinit='1500' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_value_byte' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_write_f2_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_1_debounce_counter_long' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_refresh_counter' type='u8' description='200ms refresh counter' isconst='0' isHidden='0' isinit='1' usrinit='40' setinit='40' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_minus_flag' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_speed_max_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_device_id' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='160' setinit='0b10100000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_data0_l' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_crc_temp' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ack' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_dp_tausender_flag' type='b1' description='1 = point on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_temp' type='s32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_dynamic_count_max' type='s16' description='maximum counter speed x 2ms' isconst='1' isHidden='0' isinit='1' usrinit='40' setinit='40' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='parameter_save_time_flag' type='b1' description='0=time in stop   1=time counts down' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_refresh_flag' type='b1' description='write datas to display' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_plus_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_byte' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_dynamic_count_min' type='s16' description='dynamic adjust value (counter speed x 2ms)' isconst='1' isHidden='0' isinit='1' usrinit='60' setinit='60' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_address' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_speed_min' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='800' setinit='800' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_transceive_byte_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f2_value_old_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_minus_alt_flag' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_data0_h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_switch' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_plus_debounce_counter' type='u16' description='push button plus' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='jump_f1_from_extend_menue_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_x_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_minus_debounce_counter' type='u16' description='push button minus' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_speed_counter_alt' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_transceive_byte' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_device_id_address' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='tmr0_1s_counter' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='crc_temp' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_ack' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='software_version_revision' type='s16' description='version=1 revision=0' isconst='1' isHidden='0' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_on_value_temp' type='u16' description='compare with motor steps = on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f2_value' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='2500' setinit='2500' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_data1_l' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_speed_min_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_clock_speed' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='10' setinit='10' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='parameter_save_time' type='s16' description='time in seconds' isconst='1' isHidden='0' isinit='1' usrinit='60' setinit='60' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_dds_flag' type='b1' description='1=on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_byte' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f2_value_temp' type='u16' description='actual f2 freqency' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_freqx_f1_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_dynamic_count_min' type='s16' description='minimum counter speed x 2ms' isconst='1' isHidden='0' isinit='1' usrinit='150' setinit='150' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_ack' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='switch_menue_counter' type='u16' description='1 = welcome screen' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_return_flag' type='b1' description='1=on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_data1_h' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_off_value_temp' type='u16' description='compare with motor steps = off' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_minus_profile_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_value_old_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='parameter_save_time_temp' type='u16' description='time in seconds' isconst='0' isHidden='0' isinit='1' usrinit='120' setinit='120' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_write_f1_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='testcounter' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_1_flanke_flag' type='b1' description='set by pressing pb1' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_value_temp' type='u16' description='actual f1 freqency' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='fram_start_address_standard' type='s16' description='start standard values' isconst='1' isHidden='0' isinit='1' usrinit='1700' setinit='1700' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_dp_zener_flag' type='b1' description='1 = dp on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_x_extern_temp' type='u16' description='push button cable channel' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_1_debounce_counter' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_plus_alt_flag' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='jump_f1_from_extend_menue_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='led_pushout_flag' type='b1' description='1=on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_transceive_bit_counter' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='i2c_ack_temp' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='save_timer_counter_temp' type='u16' description='save parameter after last pressed push button' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_dp_hunderter_flag' type='b1' description='1= dp on' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_value' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='2000' setinit='2000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_speed_counter' type='u16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='profil_temp' type='u8' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_1_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_1_alt_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='jump_f1_from_extend_menue' type='s16' description='time in seconds' isconst='1' isHidden='0' isinit='1' usrinit='120' setinit='120' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_speed_max_menue' type='s16' description='choose inside menue' isconst='1' isHidden='0' isinit='1' usrinit='4600' setinit='4600' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_temp3' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_config_byte' type='u16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_dynamic_count_max' type='s16' description='dynamic adjust value (counter speed x 2ms)' isconst='1' isHidden='0' isinit='1' usrinit='12' setinit='12' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_on_value' type='s16' description='0...500' isconst='1' isHidden='0' isinit='1' usrinit='230' setinit='230' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ventil_off_value' type='s16' description='0...500' isconst='1' isHidden='0' isinit='1' usrinit='480' setinit='480' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='f1_f2_speed_max' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='4000' setinit='4000' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_temp2' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_x_debounce_counter' type='s16' description='debounce time for bush buttons 2ms x 20 = 40ms' isconst='1' isHidden='0' isinit='1' usrinit='20' setinit='20' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='display_temp1' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='profil' type='s16' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_address' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pb_plus_profile_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ad9833_freqx_f2_flag' type='b1' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='_50_fram_write' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='enable writing fram' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='0' usechipref='1' />
						<command class_type='comment' title='' comment='--- start ---
' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 2' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write id address ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_transceive_byte = fram_device_id &amp; 0b11111110 // read' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write address h ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// fram address high' />
							<exp exp='i2c_transceive_byte = 0x00' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write address l ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// fram address high' />
							<exp exp='i2c_transceive_byte = fram_address &amp; 0x00ff' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write data ---' textarea='12,0,12,0' disable='1' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_transceive_byte = fram_byte' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- stop ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 6' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='disable writing fram' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_52_software_i2c' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Schalter' textarea='36,25,36,25' exp='i2c_switch' >
							<case >
								<flowline />
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='native' title='C-Code' ccode='FCV_I2C_CLOCK_SPEED = 9; 
TRISB = TRISB &amp; 0b1111110011111111;
ANSB = 0x00;
ODCB = 0b0000001100000000;' language='C' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on' language='C' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB &amp; 0b1111110111111111; // bit9=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='calculation' title='Berechnung' >
										<exp exp='i2c_transceive_bit_counter = 8 //' />
									</command>
									<command class_type='loop' title='Schleife' type='1' exp='i2c_transceive_bit_counter = 0' start='0' >
										<flowline >
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_transceive_byte_temp = i2c_transceive_byte' />
												<exp exp='i2c_transceive_byte_temp = i2c_transceive_byte_temp &amp; 0b10000000 // isolate bit7' />
												<exp exp='' />
												<exp exp='i2c_transceive_bit_counter = i2c_transceive_bit_counter - 1 // loop counter' />
											</command>
											<command class_type='decision' title='Entscheidung' exp='i2c_transceive_byte_temp &gt; 0' swap='0' >
												<flowline >
													<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on' language='C' />
												</flowline>
												<flowline >
													<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB &amp; 0b1111110111111111; // bit9=off' language='C' />
												</flowline>
											</command>
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_transceive_byte = i2c_transceive_byte &lt;&lt; 1 // prepare next byte' />
												<exp exp='' />
											</command>
											<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
											<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
											<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
											<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
										</flowline>
									</command>
									<command class_type='comment' title='' comment='set sda to on for receive ack' textarea='12,0,12,0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on
TRISB = TRISB | 0b0000001000000000; // sda bit9=input ack' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='comment' title='' comment='read ack' textarea='12,0,12,0' />
									<command class_type='native' title='C-Code' ccode='FCV_I2C_ACK_TEMP = PORTB;' language='C' />
									<command class_type='calculation' title='Berechnung  --&gt; i2c2,ack' >
										<exp exp='i2c_ack_temp = i2c_ack_temp &amp; 0b0000001000000000 // bit9' />
									</command>
									<command class_type='decision' title='Entscheidung' exp='i2c_ack_temp &gt; 0' swap='0' >
										<flowline >
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_ack = 1' />
											</command>
										</flowline>
										<flowline >
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_ack = 0' />
											</command>
										</flowline>
									</command>
									<command class_type='native' title='C-Code --&gt; sda' ccode='TRISB = TRISB &amp; 0b1111110111111111; // sda bit9=output' language='C' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111110011111111; // bit8,9=off' language='C' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB &amp; 0b1111110111111111; // bit9=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB &amp; 0b1111110111111111; // bit9=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='TRISB = TRISB | 0b0000001000000000; // sda bit9=input' language='C' />
									<command class_type='calculation' title='Berechnung' >
										<exp exp='i2c_transceive_bit_counter = 8 // init' />
										<exp exp='i2c_transceive_byte = 0 // init' />
									</command>
									<command class_type='loop' title='Schleife' type='1' exp='i2c_transceive_bit_counter = 0' start='0' >
										<flowline >
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_transceive_byte = i2c_transceive_byte &lt;&lt; 1 // prepare next bit' />
												<exp exp='' />
												<exp exp='' />
											</command>
											<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
											<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
											<command class_type='native' title='C-Code --&gt; sda' ccode='FCV_I2C_TRANSCEIVE_BYTE_TEMP = PORTB;' language='C' />
											<command class_type='calculation' title='Berechnung --&gt; sda' >
												<exp exp='i2c_transceive_byte_temp = i2c_transceive_byte_temp &amp; 0b0000001000000000 // bit9' />
												<exp exp='' />
											</command>
											<command class_type='decision' title='Entscheidung' exp='i2c_transceive_byte_temp &gt; 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung --&gt; i2c1,sda' >
														<exp exp='i2c_transceive_byte = i2c_transceive_byte | 0x01 // set bit' />
														<exp exp='' />
													</command>
												</flowline>
												<flowline />
											</command>
											<command class_type='calculation' title='Berechnung' >
												<exp exp='i2c_transceive_bit_counter = i2c_transceive_bit_counter - 1 // loop counter' />
											</command>
											<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
											<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
										</flowline>
									</command>
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on' language='C' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='TRISB = TRISB &amp; 0b1111110111111111; // sda bit9=output' language='C' />
									<command class_type='comment' title='' comment='set ack' textarea='12,0,12,0' disable='1' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; i2c2,sda' ccode='PORTB = PORTB &amp; 0b1111110111111111; // bit9=off' language='C' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB &amp; 0b1111111011111111; // bit8=off' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; scl' ccode='PORTB = PORTB | 0b0000000100000000; // bit8=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
									<command class_type='native' title='C-Code --&gt; sda' ccode='PORTB = PORTB | 0b0000001000000000; // bit9=on' language='C' />
									<command class_type='delay' title='Warten' exp='i2c_clock_speed' type='0' />
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='_03_calculate_and_sent_to_display' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Entscheidung' exp='led_remote_flag = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='set led remote' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = 0' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Entscheidung' exp='led_dds_flag = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='set led dds' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte | 2' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte &amp; 0b11111101' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Entscheidung' exp='led_pushout_flag = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='set led pushout' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte | 4' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte &amp; 0b11111011' />
								</command>
							</flowline>
						</command>
						<command class_type='decision' title='Entscheidung' exp='led_return_flag = 1' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='set led return' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte | 8' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='led_byte = led_byte &amp; 0b11110111' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master2' macro='SendChar' >
							<argument exp='led_byte' />
						</command>
						<command class_type='calculation' title='Berechnung' >
							<exp exp='display_temp1 = display_temp / 1000' />
							<exp exp='display_temp = display_temp MOD 1000' />
							<exp exp='display_temp2 = display_temp / 100' />
							<exp exp='display_temp = display_temp MOD 100' />
							<exp exp='display_temp3 = display_temp / 10' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='table_7segment' macro='GetInt' >
							<return exp='display_value_byte' />
							<argument exp='display_temp3' />
						</command>
						<command class_type='decision' title='Entscheidung' exp='display_dp_zener_flag = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='display_value_byte = display_value_byte | 0x80' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master2' macro='SendChar' >
							<argument exp='display_value_byte' />
						</command>
						<command class_type='comment' title='' comment='calculate and send hunderter' textarea='12,0,12,0' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='table_7segment' macro='GetInt' >
							<return exp='display_value_byte' />
							<argument exp='display_temp2' />
						</command>
						<command class_type='decision' title='Entscheidung' exp='display_dp_hunderter_flag = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='display_value_byte = display_value_byte | 0x80' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master2' macro='SendChar' >
							<argument exp='display_value_byte' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='table_7segment' macro='GetInt' >
							<return exp='display_value_byte' />
							<argument exp='display_temp1' />
						</command>
						<command class_type='decision' title='Entscheidung' exp='display_dp_tausender_flag = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='display_value_byte = display_value_byte | 0x80' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master2' macro='SendChar' >
							<argument exp='display_value_byte' />
						</command>
						<command class_type='output' title='Ausgang --&gt; display storage_clock_latch' mode='1' port='1048578' mask='2' exp='1' usechipref='1' />
						<command class_type='delay' title='Warten' exp='20' type='0' />
						<command class_type='output' title='Ausgang --&gt; display storage_clock_latch' mode='1' port='1048578' mask='2' exp='0' usechipref='1' />
						<command class_type='output' title='Ausgang --&gt; display /oe' mode='1' port='1048578' mask='4' exp='0' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_04_ad9833_write_f1' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// frequency * 194.181 = value for dds' />
							<exp exp='ad9833_temp = 194181 * f1_value_temp / 1000' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='0=freq0   1=freq1' textarea='36,0,511,300' exp='ad9833_freqx_f1_flag = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='set address' >
									<exp exp='ad9833_config_byte = 0b0010100000101000' />
									<exp exp='ad9833_address = 0b10000000' />
									<exp exp='ad9833_freqx_f1_flag = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='set address' >
									<exp exp='ad9833_config_byte = 0b0010000000101000' />
									<exp exp='ad9833_address = 0b01000000' />
									<exp exp='ad9833_freqx_f1_flag = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='calculate 4 bytes' >
							<exp exp='ad9833_data0_l = ad9833_temp &amp; 0x00ff' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 8' />
							<exp exp='ad9833_data0_h = ad9833_temp AND 0b00111111' />
							<exp exp='ad9833_data0_h = ad9833_data0_h OR ad9833_address' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 6' />
							<exp exp='ad9833_data1_l = ad9833_temp &amp; 0x00ff' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 8' />
							<exp exp='ad9833_data1_h = ad9833_temp AND 0b00111111' />
							<exp exp='ad9833_data1_h = ad9833_data1_h OR ad9833_address' />
						</command>
						<command class_type='comment' title='' comment='send values' textarea='36,10,36,10' />
						<command class_type='output' title='fsync disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_h' />
						</command>
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_l' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data1_h' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data1_l' />
						</command>
						<command class_type='output' title='fsync disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='set freq x in config' textarea='12,0,487,300' />
						<command class_type='calculation' title='split config byte' >
							<exp exp='ad9833_data0_l = ad9833_config_byte &amp; 0x00ff' />
							<exp exp='ad9833_data0_h = ad9833_config_byte &gt;&gt; 8' />
						</command>
						<command class_type='output' title='fsync disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_h' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_l' />
						</command>
						<command class_type='output' title='fsync disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_01_int_trm0' description='int = 2ms' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Entscheidung' exp='fram_action_counter = 0' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='push button 1 debounce' textarea='12,0,12,0' />
								<command class_type='input' title='Eingang' mode='1' port='1048576' mask='1' exp='pb_x_temp' usechipref='1' />
								<command class_type='decision' title='Entscheidung' exp='pb_x_temp = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='Entscheidung --&gt; value x 2ms' exp='pb_1_debounce_counter_long = 2500' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='switch_menue_counter = 4' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_1_debounce_counter_long = pb_1_debounce_counter_long + 1 // count' />
												</command>
												<command class_type='decision' title='Entscheidung' exp='pb_1_debounce_counter = pb_x_debounce_counter' swap='0' >
													<flowline >
														<command class_type='decision' title='Entscheidung' exp='pb_1_alt_flag = 0' swap='0' >
															<flowline >
																<command class_type='calculation' title='Berechnung' >
																	<exp exp='pb_1_alt_flag = 1' />
																</command>
																<command class_type='comment' title='' comment='flanke detect --&gt; switch between f1/f2 in menue 2/3' textarea='12,0,12,0' />
																<command class_type='calculation' title='Berechnung' >
																	<exp exp='pb_1_flanke_flag = 1' />
																</command>
															</flowline>
															<flowline />
														</command>
														<command class_type='comment' title='' comment='push button off detected' textarea='12,0,12,0' />
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_1_flag = 1' />
														</command>
														<command class_type='comment' title='' comment='jump back from extended to f1 after time x' textarea='12,0,12,0' />
														<command class_type='decision' title='Entscheidung' exp='switch_menue_counter &gt; 2' swap='0' >
															<flowline >
																<command class_type='calculation' title='Berechnung' >
																	<exp exp='jump_f1_from_extend_menue_flag = 1' />
																	<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue // retrigger time' />
																</command>
															</flowline>
															<flowline />
														</command>
													</flowline>
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_1_debounce_counter = pb_1_debounce_counter + 1' />
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='pb_1_debounce_counter = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_1_debounce_counter_long = 0 // init' />
												</command>
												<command class_type='decision' title='Entscheidung' exp='pb_1_alt_flag = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_1_alt_flag = 0' />
														</command>
														<command class_type='comment' title='' comment='flanke detect' textarea='12,0,12,0' />
													</flowline>
													<flowline />
												</command>
												<command class_type='comment' title='' comment='push button off detected' textarea='12,0,12,0' />
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_1_flag = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_1_debounce_counter = pb_1_debounce_counter - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='comment' title='' comment='disable advanced menue for cable channel' textarea='12,0,12,0' />
								<command class_type='decision' title='Entscheidung' exp='switch_menue_counter &lt; 4' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='cable channel + debounce' textarea='12,0,12,0' />
										<command class_type='input' title='Eingang' mode='1' port='1048577' mask='8' exp='pb_x_extern_temp' usechipref='1' />
										<command class_type='comment' title='' comment='invert logic' textarea='12,0,12,0' />
										<command class_type='decision' title='Entscheidung' exp='pb_x_extern_temp = 0' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='pressed push button' textarea='12,0,12,0' />
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_x_extern_temp = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_x_extern_temp = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='push button + debounce' textarea='12,0,12,0' />
								<command class_type='input' title='Eingang' mode='1' port='135266304' mask='8' exp='pb_x_temp' usechipref='1' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='pb_x_temp = pb_x_temp + pb_x_extern_temp' />
								</command>
								<command class_type='decision' title='Entscheidung' exp='pb_x_temp &gt; 0' swap='0' >
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='pb_plus_debounce_counter = pb_x_debounce_counter' swap='0' >
											<flowline >
												<command class_type='decision' title='Entscheidung' exp='pb_plus_alt_flag = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_plus_alt_flag = 1' />
														</command>
														<command class_type='comment' title='' comment='push button off one shot detected' textarea='12,0,12,0' />
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_plus_profile_flag = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_plus_flag = 1' />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='parameter_save_time_flag = 1' />
													<exp exp='parameter_save_time_temp = parameter_save_time // retrigger time' />
												</command>
												<command class_type='decision' title='Entscheidung' exp='switch_menue_counter &gt; 2' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='jump_f1_from_extend_menue_flag = 1' />
															<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue // retrigger time' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_plus_debounce_counter = pb_plus_debounce_counter + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='pb_plus_debounce_counter = 0' swap='0' >
											<flowline >
												<command class_type='decision' title='Entscheidung' exp='pb_plus_alt_flag = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_plus_alt_flag = 0' />
														</command>
														<command class_type='comment' title='' comment='push button off one shot detected' textarea='12,0,12,0' />
													</flowline>
													<flowline />
												</command>
												<command class_type='comment' title='' comment='push button off detected' textarea='12,0,12,0' />
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_plus_flag = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_plus_debounce_counter = pb_plus_debounce_counter - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Entscheidung' exp='switch_menue_counter &lt; 4' swap='0' >
									<flowline >
										<command class_type='input' title='Eingang' textarea='61,12,61,12' mode='1' port='1048577' mask='4' exp='pb_x_extern_temp' usechipref='1' />
										<command class_type='comment' title='' comment='invert logic' textarea='37,12,37,12' />
										<command class_type='decision' title='Entscheidung' textarea='61,12,61,12' exp='pb_x_extern_temp = 0' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='pressed push button' textarea='37,12,37,12' />
												<command class_type='calculation' title='Berechnung' textarea='61,12,61,12' >
													<exp exp='pb_x_extern_temp = 1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' textarea='61,12,61,12' >
													<exp exp='pb_x_extern_temp = 0' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='input' title='Eingang' textarea='61,12,61,12' mode='1' port='135266304' mask='4' exp='pb_x_temp' usechipref='1' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='pb_x_temp = pb_x_temp + pb_x_extern_temp' />
								</command>
								<command class_type='decision' title='Entscheidung' exp='pb_x_temp = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='pb_minus_debounce_counter = pb_x_debounce_counter' swap='0' >
											<flowline >
												<command class_type='decision' title='Entscheidung' exp='pb_minus_alt_flag = 0' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_minus_alt_flag = 1' />
														</command>
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_minus_profile_flag = 1' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_minus_flag = 1' />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='parameter_save_time_flag = 1' />
													<exp exp='parameter_save_time_temp = parameter_save_time // retrigger time' />
												</command>
												<command class_type='decision' title='Entscheidung' exp='switch_menue_counter &gt; 2' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='jump_f1_from_extend_menue_flag = 1' />
															<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue // retrigger time' />
														</command>
													</flowline>
													<flowline />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_minus_debounce_counter = pb_minus_debounce_counter + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='pb_minus_debounce_counter = 0' swap='0' >
											<flowline >
												<command class_type='decision' title='Entscheidung' exp='pb_minus_alt_flag = 1' swap='0' >
													<flowline >
														<command class_type='calculation' title='Berechnung' >
															<exp exp='pb_minus_alt_flag = 0' />
														</command>
													</flowline>
													<flowline />
												</command>
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_minus_flag = 0' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='pb_minus_debounce_counter = pb_minus_debounce_counter - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='switch' title='Schalter menue' textarea='36,25,36,25' exp='switch_menue_counter' >
									<case >
										<flowline />
									</case>
									<case exp='1' >
										<flowline >
											<command class_type='calculation' title='Berechnung' >
												<exp exp='display_dp_hunderter_flag = 1' />
												<exp exp='display_temp = software_version_revision * 10' />
												<exp exp='display_temp = display_temp + 16000' />
											</command>
											<command class_type='decision' title='Entscheidung' exp='welcome_screen_timer = 0' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='switch_menue_counter = 2' />
													</command>
												</flowline>
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='welcome_screen_timer = welcome_screen_timer - 1' />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='2' >
										<flowline >
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 3 // menue f2' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='f1 800 - 4000 (5000)' exp='f1_value_temp &gt; f1_f2_speed_max_temp' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = f1_f2_dynamic_count_max' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = f1_f2_dynamic_count_max' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																						<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='f1_value_temp = f1_value_temp + 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='decision' title='f1 800 - 4000 (5000)' exp='f1_value_temp = f1_f2_speed_min_temp' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																				<flowline >
																					<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = f1_f2_dynamic_count_max' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter = f1_f2_dynamic_count_max' />
																							</command>
																						</flowline>
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																								<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																							</command>
																						</flowline>
																					</command>
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='f1_value_temp = f1_value_temp - 1' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																					</command>
																				</flowline>
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='taste ok' >
																		<exp exp='pb_speed_counter = 0 // init' />
																		<exp exp='pb_speed_counter_alt = f1_f2_dynamic_count_min // init' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
													<command class_type='calculation' title='Berechnung' >
														<exp exp='// display' />
														<exp exp='led_remote_flag = 0' />
														<exp exp='led_dds_flag = 1' />
														<exp exp='led_pushout_flag = 1' />
														<exp exp='led_return_flag = 0' />
														<exp exp='display_dp_tausender_flag = 1' />
														<exp exp='display_dp_hunderter_flag = 0' />
														<exp exp='' />
														<exp exp='display_temp = f1_value_temp' />
													</command>
													<command class_type='comment' title='' comment='send new values to ad9833 ?' textarea='12,0,12,0' />
													<command class_type='decision' title='Entscheidung' exp='f1_value_temp = f1_value_old_temp' swap='0' >
														<flowline />
														<flowline >
															<command class_type='comment' title='' comment='enable writing f1' textarea='12,0,12,0' />
															<command class_type='calculation' title='Berechnung' >
																<exp exp='f1_value_old_temp = f1_value_temp' />
																<exp exp='ad9833_write_f1_flag = 1' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='3' >
										<flowline >
											<command class_type='comment' title='' comment='f2 return' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 2 // menue f2' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='f1 800 - 4000 (5000)' exp='f2_value_temp &gt; f1_f2_speed_max_temp' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = f1_f2_dynamic_count_max' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = f1_f2_dynamic_count_max' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																						<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='f2_value_temp = f2_value_temp + 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='decision' title='f1 800 - 4000 (5000)' exp='f2_value_temp = f1_f2_speed_min_temp' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																				<flowline >
																					<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = f1_f2_dynamic_count_max' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter = f1_f2_dynamic_count_max' />
																							</command>
																						</flowline>
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																								<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																							</command>
																						</flowline>
																					</command>
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='f2_value_temp = f2_value_temp - 1' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																					</command>
																				</flowline>
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='taste ok' >
																		<exp exp='pb_speed_counter = 0 // init' />
																		<exp exp='pb_speed_counter_alt = f1_f2_dynamic_count_min // init' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
													<command class_type='calculation' title='Berechnung' >
														<exp exp='// display' />
														<exp exp='led_remote_flag = 0' />
														<exp exp='led_dds_flag = 1' />
														<exp exp='led_pushout_flag = 0' />
														<exp exp='led_return_flag = 1' />
														<exp exp='display_dp_tausender_flag = 1' />
														<exp exp='display_dp_hunderter_flag = 0' />
														<exp exp='' />
														<exp exp='display_temp = f2_value_temp' />
													</command>
													<command class_type='comment' title='' comment='send new values to ad9833 ?' textarea='12,0,12,0' />
													<command class_type='decision' title='Entscheidung' exp='f2_value_temp = f2_value_old_temp' swap='0' >
														<flowline />
														<flowline >
															<command class_type='comment' title='' comment='enable writing f2' textarea='12,0,12,0' />
															<command class_type='calculation' title='Berechnung' >
																<exp exp='f2_value_old_temp = f2_value_temp' />
																<exp exp='ad9833_write_f2_flag = 1' />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='4' >
										<flowline >
											<command class_type='comment' title='' comment='version 1' textarea='12,0,12,0' />
											<command class_type='comment' title='' comment='f1/2 max' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 8 // exit' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Berechnung' >
																<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max_menue // 5000' />
																<exp exp='' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Berechnung' >
																		<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max // 4000' />
																		<exp exp='' />
																	</command>
																	<command class_type='decision' title='Entscheidung' exp='f1_value_temp &gt; f1_f2_speed_max // 4000' swap='0' >
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='f1_value_temp = f1_f2_speed_max // 4000' />
																			</command>
																		</flowline>
																		<flowline />
																	</command>
																	<command class_type='decision' title='Entscheidung' exp='f2_value_temp &gt; f1_f2_speed_max // 4000' swap='0' >
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='f2_value_temp = f1_f2_speed_max // 4000' />
																			</command>
																		</flowline>
																		<flowline />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Berechnung' >
												<exp exp='// display' />
												<exp exp='led_remote_flag = 0' />
												<exp exp='led_dds_flag = 1' />
												<exp exp='led_pushout_flag = 1' />
												<exp exp='led_return_flag = 1' />
												<exp exp='display_dp_tausender_flag = 1' />
												<exp exp='display_dp_hunderter_flag = 0' />
												<exp exp='' />
												<exp exp='display_temp = f1_f2_speed_max_temp' />
											</command>
										</flowline>
									</case>
									<case exp='5' >
										<flowline >
											<command class_type='comment' title='' comment='version 2' textarea='12,0,12,0' />
											<command class_type='comment' title='' comment='ventil on' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 6 // menue gnd ventil' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='mootor step 0...500' exp='ventil_on_value_temp &gt; 499' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = ventil_dynamic_count_max' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = ventil_dynamic_count_max' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																						<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='ventil_on_value_temp = ventil_on_value_temp + 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='decision' title='motor step 0...500' exp='ventil_on_value_temp = 0' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																				<flowline >
																					<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = ventil_dynamic_count_max' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter = ventil_dynamic_count_max' />
																							</command>
																						</flowline>
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																								<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																							</command>
																						</flowline>
																					</command>
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='ventil_on_value_temp = ventil_on_value_temp - 1' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																					</command>
																				</flowline>
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='taste ok' >
																		<exp exp='pb_speed_counter = 0 // init' />
																		<exp exp='pb_speed_counter_alt = ventil_dynamic_count_min // init' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
													<command class_type='calculation' title='Berechnung' >
														<exp exp='// display' />
														<exp exp='led_remote_flag = 0' />
														<exp exp='led_dds_flag = 0' />
														<exp exp='led_pushout_flag = 1' />
														<exp exp='led_return_flag = 0' />
														<exp exp='display_dp_tausender_flag = 0' />
														<exp exp='display_dp_hunderter_flag = 0' />
														<exp exp='' />
														<exp exp='display_temp = ventil_on_value_temp * 10' />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='6' >
										<flowline >
											<command class_type='comment' title='' comment='version 2
' textarea='12,0,12,0' />
											<command class_type='comment' title='' comment='ventil off' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 7 // menue choose profile' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='' exp='ventil_off_value_temp &gt; 499' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																		<flowline >
																			<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = ventil_dynamic_count_max' swap='0' >
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = ventil_dynamic_count_max' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																						<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																					</command>
																				</flowline>
																			</command>
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='ventil_off_value_temp = ventil_off_value_temp + 1' />
																				<exp exp='' />
																			</command>
																		</flowline>
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='decision' title='' exp='ventil_off_value_temp = 0' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='decision' title='' exp='pb_speed_counter = 0' swap='0' >
																				<flowline >
																					<command class_type='decision' title='value up down speed reached' exp='pb_speed_counter_alt = ventil_dynamic_count_max' swap='0' >
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter = ventil_dynamic_count_max' />
																							</command>
																						</flowline>
																						<flowline >
																							<command class_type='calculation' title='Berechnung' >
																								<exp exp='pb_speed_counter_alt = pb_speed_counter_alt - 1' />
																								<exp exp='pb_speed_counter = pb_speed_counter_alt' />
																							</command>
																						</flowline>
																					</command>
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='ventil_off_value_temp = ventil_off_value_temp - 1' />
																						<exp exp='' />
																					</command>
																				</flowline>
																				<flowline >
																					<command class_type='calculation' title='Berechnung' >
																						<exp exp='pb_speed_counter = pb_speed_counter - 1' />
																					</command>
																				</flowline>
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline >
																	<command class_type='calculation' title='taste ok' >
																		<exp exp='pb_speed_counter = 0 // init' />
																		<exp exp='pb_speed_counter_alt = ventil_dynamic_count_min // init' />
																	</command>
																</flowline>
															</command>
														</flowline>
													</command>
													<command class_type='calculation' title='Berechnung' >
														<exp exp='// display' />
														<exp exp='led_remote_flag = 0' />
														<exp exp='led_dds_flag = 0' />
														<exp exp='led_pushout_flag = 0' />
														<exp exp='led_return_flag = 1' />
														<exp exp='display_dp_tausender_flag = 0' />
														<exp exp='display_dp_hunderter_flag = 0' />
														<exp exp='' />
														<exp exp='display_temp = ventil_off_value_temp * 10' />
													</command>
												</flowline>
											</command>
											<command class_type='comment' title='' comment='for next screen --&gt; saved push button = reset for next screen' textarea='12,0,12,0' />
											<command class_type='calculation' title='Berechnung' >
												<exp exp='pb_plus_profile_flag = 0' />
											</command>
											<command class_type='calculation' title='Berechnung' >
												<exp exp='pb_minus_profile_flag = 0' />
											</command>
										</flowline>
									</case>
									<case exp='7' >
										<flowline >
											<command class_type='comment' title='' comment='version 3' textarea='12,0,12,0' />
											<command class_type='comment' title='' comment='choose profile' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 8 // menue exit' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_profile_flag = 1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Berechnung' >
																<exp exp='pb_plus_profile_flag = 0' />
															</command>
															<command class_type='decision' title='' exp='profil_counter_temp = 2' swap='0' >
																<flowline />
																<flowline >
																	<command class_type='calculation' title='Berechnung' >
																		<exp exp='profil_counter_temp = profil_counter_temp + 1' />
																	</command>
																</flowline>
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_profile_flag = 1' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Berechnung' >
																		<exp exp='pb_minus_profile_flag = 0' />
																	</command>
																	<command class_type='decision' title='' exp='profil_counter_temp = 0' swap='0' >
																		<flowline />
																		<flowline >
																			<command class_type='calculation' title='Berechnung' >
																				<exp exp='profil_counter_temp = profil_counter_temp - 1' />
																			</command>
																		</flowline>
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</command>
													<command class_type='calculation' title='Berechnung' >
														<exp exp='// display' />
														<exp exp='led_remote_flag = 0' />
														<exp exp='led_dds_flag = 0' />
														<exp exp='led_pushout_flag = 0' />
														<exp exp='led_return_flag = 0' />
														<exp exp='display_dp_tausender_flag = 0' />
														<exp exp='display_dp_hunderter_flag = 0' />
														<exp exp='' />
														<exp exp='display_temp = (profil_counter_temp * 10) + 15000' />
													</command>
												</flowline>
											</command>
										</flowline>
									</case>
									<case exp='8' >
										<flowline >
											<command class_type='comment' title='' comment='exit' textarea='12,0,12,0' />
											<command class_type='decision' title='Entscheidung' exp='pb_1_flanke_flag = 1' swap='0' >
												<flowline >
													<command class_type='calculation' title='Berechnung' >
														<exp exp='pb_1_flanke_flag = 0 // wait for next toogle' />
														<exp exp='switch_menue_counter = 4 // menue f1/2 max' />
													</command>
												</flowline>
												<flowline >
													<command class_type='decision' title='0 = taste gedrückt' exp='pb_plus_flag = 1' swap='0' >
														<flowline >
															<command class_type='calculation' title='Berechnung' >
																<exp exp='pb_minus_flag = 0 // wait for next toogle' />
																<exp exp='switch_menue_counter = 2 // menue f1' />
															</command>
														</flowline>
														<flowline >
															<command class_type='decision' title='0 = taste gedrückt' exp='pb_minus_flag = 1' swap='0' >
																<flowline >
																	<command class_type='calculation' title='Berechnung' >
																		<exp exp='pb_minus_flag = 0 // wait for next toogle' />
																		<exp exp='switch_menue_counter = 2 // menue f1' />
																	</command>
																</flowline>
																<flowline />
															</command>
														</flowline>
													</command>
												</flowline>
											</command>
											<command class_type='calculation' title='Berechnung' >
												<exp exp='// display' />
												<exp exp='led_remote_flag = 0' />
												<exp exp='led_dds_flag = 0' />
												<exp exp='led_pushout_flag = 0' />
												<exp exp='led_return_flag = 0' />
												<exp exp='display_dp_tausender_flag = 0' />
												<exp exp='display_dp_hunderter_flag = 0' />
												<exp exp='' />
												<exp exp='display_temp = 13000' />
											</command>
										</flowline>
									</case>
								</command>
								<command class_type='decision' title='Entscheidung' exp='ad9833_write_f1_flag = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='run time 85us' textarea='12,0,12,0' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='ad9833_write_f1_flag = 0' />
										</command>
										<command class_type='call' title='Makro-Aufruf' textarea='36,0,511,300' macro='_04_ad9833_write_f1' />
									</flowline>
									<flowline />
								</command>
								<command class_type='comment' title='' comment='write to ad9833 f2 values' textarea='12,0,12,0' />
								<command class_type='decision' title='Entscheidung' exp='ad9833_write_f2_flag = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='run time 85us' textarea='12,0,12,0' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='ad9833_write_f2_flag = 0' />
										</command>
										<command class_type='call' title='Makro-Aufruf' textarea='36,0,511,300' macro='_05_ad9833_write_f2' />
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Entscheidung' exp='display_refresh_counter = 0' swap='0' >
							<flowline >
								<command class_type='comment' title='' comment='start sending datas to display' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='display_refresh_counter = 20' />
									<exp exp='display_refresh_flag = 1' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='display_refresh_counter = display_refresh_counter - 1' />
								</command>
							</flowline>
						</command>
						<command class_type='comment' title='' comment='1s timer0 flag' textarea='12,0,12,0' />
						<command class_type='decision' title='Entscheidung' exp='tmr0_1s_counter = 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='tmr0_1s_counter = 500' />
									<exp exp='tmr0_1s_flag = 1' />
								</command>
								<command class_type='decision' title='Entscheidung' exp='parameter_save_time_flag = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='parameter_save_time_temp = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='parameter_save_time_flag = 0 // switch off timer start' />
													<exp exp='parameter_save_time_temp = parameter_save_time // init time' />
													<exp exp='' />
													<exp exp='fram_action_counter = 2 // save parameter to fram' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='parameter_save_time_temp = parameter_save_time_temp - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='parameter_save_time_temp = parameter_save_time // init time' />
										</command>
									</flowline>
								</command>
								<command class_type='decision' title='Entscheidung' exp='jump_f1_from_extend_menue_flag = 1' swap='0' >
									<flowline >
										<command class_type='decision' title='Entscheidung' exp='jump_f1_from_extend_menue_temp = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='jump_f1_from_extend_menue_flag = 0 // switch off timer start' />
													<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue // init time' />
													<exp exp='' />
													<exp exp='switch_menue_counter = 2 // jump to f1' />
												</command>
											</flowline>
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue_temp - 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='jump_f1_from_extend_menue_temp = jump_f1_from_extend_menue // init time' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='tmr0_1s_counter = tmr0_1s_counter - 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='_51_fram_read' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='enable writing fram' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='0' usechipref='1' />
						<command class_type='comment' title='' comment='--- start ---
' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 2' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write id address ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_transceive_byte = fram_device_id &amp; 0b11111110 // read' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write address h ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// fram address high' />
							<exp exp='i2c_transceive_byte = 0x00' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write address l ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// fram address low' />
							<exp exp='//////i2c_transceive_byte = 0' />
							<exp exp='i2c_transceive_byte = fram_address &amp; 0x00ff' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- restart ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 4' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- write to read ---' textarea='12,0,12,0' disable='1' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// read bit = 1' />
							<exp exp='i2c_transceive_byte = fram_device_id | 0b00000001' />
							<exp exp='' />
							<exp exp='i2c_switch = 3 // i2c write' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='--- read ---' textarea='12,0,12,0' disable='1' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 5' />
							<exp exp='' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='fram_byte = i2c_transceive_byte' />
						</command>
						<command class_type='comment' title='' comment='--- stop ---' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='i2c_switch = 6' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='disable writing fram' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_06_fram' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='0' usechipref='1' />
						<command class_type='comment' title='' comment='read standard values' textarea='12,0,12,0' />
						<command class_type='decision' title='Entscheidung' exp='fram_action_counter = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_action_counter = 0 // init' />
								</command>
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_start_address_standard' />
									<exp exp='' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
								<command class_type='decision' title='Entscheidung' exp='fram_byte = 0x2a' swap='0' >
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = 0 // init' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_f2_speed_max_temp = fram_byte &lt;&lt; 8 // h' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_f2_speed_min_temp = fram_byte &lt;&lt; 8 // h' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_f2_speed_min_temp = f1_f2_speed_min_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_value_temp = fram_byte &lt;&lt; 8 // h' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f1_value_temp = f1_value_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f2_value_temp = fram_byte &lt;&lt; 8 // h' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='f2_value_temp = f2_value_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='ventil_on_value_temp = fram_byte &lt;&lt; 8 // h' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='ventil_on_value_temp = ventil_on_value_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='ventil_off_value_temp = fram_byte &lt;&lt; 8 // h' />
											<exp exp='' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='ventil_off_value_temp = ventil_off_value_temp + fram_byte' />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = fram_crc_temp ^ i2c_transceive_byte' />
											<exp exp='profil_counter_temp = fram_byte' />
										</command>
										<command class_type='comment' title='' comment='check crc' textarea='12,0,12,0' />
										<command class_type='decision' title='Entscheidung' exp='fram_crc_temp = 0' swap='0' >
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='fram_crc_temp = 0x7f' />
												</command>
											</flowline>
											<flowline />
										</command>
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_address = fram_address + 1 // load crc' />
											<exp exp='' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_51_fram_read' />
										<command class_type='decision' title='Entscheidung' exp='fram_crc_temp = fram_byte' swap='0' >
											<flowline />
											<flowline >
												<command class_type='calculation' title='Berechnung' >
													<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max' />
													<exp exp='f1_f2_speed_min_temp = f1_f2_speed_min' />
													<exp exp='f1_value_temp = f1_value' />
													<exp exp='f2_value_temp = f2_value' />
													<exp exp='ventil_on_value_temp = ventil_on_value' />
													<exp exp='ventil_off_value_temp = ventil_off_value' />
													<exp exp='profil_temp = profil' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max' />
											<exp exp='f1_f2_speed_min_temp = f1_f2_speed_min' />
											<exp exp='f1_value_temp = f1_value' />
											<exp exp='f2_value_temp = f2_value' />
											<exp exp='ventil_on_value_temp = ventil_on_value' />
											<exp exp='ventil_off_value_temp = ventil_off_value' />
											<exp exp='profil_temp = profil' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='comment' title='' comment='write standard values' textarea='12,0,12,0' />
						<command class_type='decision' title='Entscheidung' exp='fram_action_counter = 2' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_action_counter = 0 // init' />
								</command>
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_start_address_standard' />
									<exp exp='fram_byte = 0x2a' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_f2_speed_max_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_f2_speed_max_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='comment' title='' comment='write f1_f2_speed_min_temp' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_f2_speed_min_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_f2_speed_min_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_value_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f1_value_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f2_value_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = f2_value_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='comment' title='' comment='write ventil_on_value_temp
' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = ventil_on_value_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = ventil_on_value_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='comment' title='' comment='write ventil_off_value_temp' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = ventil_off_value_temp &gt;&gt; 8 // h &gt; l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = ventil_off_value_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='comment' title='' comment='write profil_temp' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = profil_counter_temp &amp; 0x00ff // l' />
									<exp exp='fram_crc_temp = fram_crc_temp ^ fram_byte' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
								<command class_type='comment' title='' comment='write crc_temp' textarea='12,0,12,0' />
								<command class_type='decision' title='Entscheidung' exp='fram_crc_temp = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Berechnung' >
											<exp exp='fram_crc_temp = 0x7f' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_address = fram_address + 1' />
									<exp exp='fram_byte = fram_crc_temp' />
								</command>
								<command class_type='call' title='Makro-Aufruf' macro='_50_fram_write' />
							</flowline>
							<flowline />
						</command>
						<command class_type='output' title='Ausgang --&gt; disable write protect' mode='1' port='1048577' mask='128' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_00_setup_pic24FV32KA304' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='setup display' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; display /master_reset' mode='1' port='1048578' mask='1' exp='0' usechipref='1' />
						<command class_type='output' title='Ausgang --&gt; display storage_clock_latch' mode='1' port='1048578' mask='2' exp='0' usechipref='1' />
						<command class_type='output' title='Ausgang --&gt; display /oe' mode='1' port='1048578' mask='4' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='set write protect fram' textarea='12,0,12,0' />
						<command class_type='output' title='Ausgang --&gt; write protect enabled' mode='1' port='1048577' mask='128' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='setup oscillator' textarea='12,0,12,0' />
						<command class_type='native' title='setup oscillator' ccode='#define cosc 0x02;
#define nosc 0x02
REFOCON = 0b1000010000000000;' language='C' />
						<command class_type='delay' title='Warten' exp='200' type='1' />
						<command class_type='native' title='C-Code' ccode='// switch over from analog to digital
ANSAbits.ANSA0 = 0;
ANSBbits.ANSB2 = 0;
ANSBbits.ANSB3 = 0;
ANSBbits.ANSB12 = 0;
ANSBbits.ANSB14 = 0;' language='C' />
						<command class_type='output' title='Ausgang --&gt; display /master_reset' mode='1' port='1048578' mask='1' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='setup cpu i2c pin b8,b9' textarea='12,0,12,0' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// init i2c' />
							<exp exp='i2c_switch = 1' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// init i2c' />
							<exp exp='i2c_switch = 2' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// init i2c' />
							<exp exp='i2c_switch = 6' />
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_52_software_i2c' />
						<command class_type='comment' title='' comment='set default parameter with push button +' textarea='12,0,12,0' />
						<command class_type='input' title='Eingang' mode='1' port='135266304' mask='8' exp='pb_x_temp' usechipref='1' />
						<command class_type='decision' title='Entscheidung' exp='pb_x_temp &gt; 0' swap='0' >
							<flowline >
								<command class_type='calculation' title='Berechnung' >
									<exp exp='// init variables' />
									<exp exp='f1_f2_speed_max_temp = f1_f2_speed_max' />
									<exp exp='f1_f2_speed_min_temp = f1_f2_speed_min' />
									<exp exp='f1_value_temp = f1_value' />
									<exp exp='f2_value_temp = f2_value' />
									<exp exp='ventil_on_value_temp = ventil_on_value' />
									<exp exp='ventil_off_value_temp = ventil_off_value' />
									<exp exp='profil_temp = profil' />
								</command>
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_action_counter = 2 // write parameter set' />
								</command>
							</flowline>
							<flowline >
								<command class_type='comment' title='' comment='read standard values from fram' textarea='12,0,12,0' />
								<command class_type='calculation' title='Berechnung' >
									<exp exp='fram_action_counter = 1 // read set' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Makro-Aufruf' macro='_06_fram' />
						<command class_type='comment' title='' comment='ad9833_config_init' textarea='12,0,487,300' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='Initialise' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master2' macro='Initialise' />
						<command class_type='comment' title='' comment='reset ad9833 0x2100' textarea='12,0,12,0' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
						<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='10' type='0' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x21' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='reset off - sinus out 0x2000
' textarea='12,0,12,0' />
						<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='10' type='0' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x20' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='send values phasen register0' textarea='36,10,36,10' disable='1' />
						<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='10' type='0' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='0b11000000' />
						</command>
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='comment' title='' comment='send values phasen register1' textarea='36,10,36,10' disable='1' />
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='0b11100000' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x00' />
						</command>
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
						<command class_type='comment' title='' comment='send values to both ad9833' textarea='36,10,36,10' disable='1' />
						<command class_type='call' title='Makro-Aufruf' textarea='36,0,511,300' macro='_04_ad9833_write_f1' />
						<command class_type='call' title='Makro-Aufruf' textarea='36,0,511,300' macro='_05_ad9833_write_f2' />
						<command class_type='comment' title='' comment='switch over from sin to square 0x2028
' textarea='12,0,12,0' />
						<command class_type='delay' title='Warten' textarea='36,0,511,300' exp='10' type='0' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='0' usechipref='1' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x20' />
						</command>
						<command class_type='call' title='Aufruf Komponenten-Makro' component='SPI_Master1' macro='SendChar' >
							<argument exp='0x28' />
						</command>
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='64' exp='1' usechipref='1' />
						<command class_type='output' title='fsync1 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='_05_ad9833_write_f2' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Berechnung' >
							<exp exp='// frequency * 194.181 = value for dds' />
							<exp exp='ad9833_temp = 194181 * f2_value_temp / 1000' />
							<exp exp='' />
							<exp exp='' />
						</command>
						<command class_type='decision' title='0=freq0   1=freq1' textarea='36,0,511,300' exp='ad9833_freqx_f2_flag = 1' swap='0' >
							<flowline >
								<command class_type='calculation' title='set address' >
									<exp exp='ad9833_config_byte = 0b0010100000101000' />
									<exp exp='ad9833_address = 0b10000000' />
									<exp exp='ad9833_freqx_f2_flag = 0' />
								</command>
							</flowline>
							<flowline >
								<command class_type='calculation' title='set address' >
									<exp exp='ad9833_config_byte = 0b0010000000101000' />
									<exp exp='ad9833_address = 0b01000000' />
									<exp exp='ad9833_freqx_f2_flag = 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='calculate 4 bytes' >
							<exp exp='ad9833_data0_l = ad9833_temp &amp; 0x00ff' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 8' />
							<exp exp='ad9833_data0_h = ad9833_temp AND 0b00111111' />
							<exp exp='ad9833_data0_h = ad9833_data0_h OR ad9833_address' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 6' />
							<exp exp='ad9833_data1_l = ad9833_temp &amp; 0x00ff' />
							<exp exp='ad9833_temp = ad9833_temp &gt;&gt; 8' />
							<exp exp='ad9833_data1_h = ad9833_temp AND 0b00111111' />
							<exp exp='ad9833_data1_h = ad9833_data1_h OR ad9833_address' />
						</command>
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_h' />
						</command>
						<command class_type='call' title='send high byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_l' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data1_h' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data1_l' />
						</command>
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
						<command class_type='calculation' title='split config byte' >
							<exp exp='ad9833_data0_l = ad9833_config_byte &amp; 0x00ff' />
							<exp exp='ad9833_data0_h = ad9833_config_byte &gt;&gt; 8' />
						</command>
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='0' usechipref='1' />
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_h' />
						</command>
						<command class_type='call' title='send low byte' component='SPI_Master1' macro='SendChar' >
							<argument exp='ad9833_data0_l' />
						</command>
						<command class_type='output' title='fsync2 disable' textarea='36,0,511,300' mode='1' port='135266305' mask='16' exp='1' usechipref='1' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='clock 22mhz1184' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Makro-Aufruf' macro='_00_setup_pic24FV32KA304' />
						<command class_type='call' title='Aufruf Komponenten-Makro' component='RS232' macro='Initialise' />
						<command class_type='interrupt' title='Unterbrechung --&gt; 2ms' enable='1' name='TMR1' call='_01_int_trm0' >
							<settings timer='1' prescale='1' postscale='-1' rollover='22118' bitcount='-1' trigger='3' ppsport='-1' ppspin='-1' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='22118' />
								<option value='-1' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='delay' title='Warten' exp='100' type='1' />
						<command class_type='loop' title='loop' textarea='36,0,511,300' type='0' exp='1' >
							<flowline >
								<command class_type='native' title='reset watchdog' textarea='36,-11,36,-11' ccode='// watchdogtimer reset:
ClrWdt();' language='C' />
								<command class_type='decision' title='Entscheidung' exp='display_refresh_flag = 1' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='run time 60us' textarea='12,0,12,0' />
										<command class_type='calculation' title='Berechnung' >
											<exp exp='display_refresh_flag = 0 // disable' />
										</command>
										<command class_type='call' title='Makro-Aufruf' macro='_03_calculate_and_sent_to_display' />
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Entscheidung' exp='fram_action_counter = 2' swap='0' >
									<flowline >
										<command class_type='call' title='Makro-Aufruf' macro='_06_fram' />
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='8462ac99-ca8f-429b-953a-36dbe58ada72' vmin='4' vmaj='1' codename='pot_trim_finger1' panelId='-1' x='-21.1573' y='-0.709447' z='6.10396' xsz='30.287' ysz='30.287' zsz='40.6931' 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='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='RetainValue' data='0' />
					<value target='SetValue' data='0.492593' />
					<value target='channel' data='4' />
					<value target='vrefvol' data='3300' />
					<value target='vrefop' data='000' />
					<value target='adc_base::convspd' data='003' />
					<value target='actime' data='40' />
					<value target='bits' data='12' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='3' codename='RS232' panelId='-1' x='100' y='-78' z='0.755' xsz='24.9811' ysz='26.8035' zsz='1.51' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='004' />
					<value target='cal_uart::BAUD' data='9600' />
					<value target='cal_uart::DBITS' data='008' />
					<value target='cal_uart::RETURN' data='000' />
					<value target='cal_uart::ECHO' data='000' />
					<value target='cal_uart::UseTX' data='1' />
					<value target='cal_uart::TX' data='$PORTC.7' />
					<value target='cal_uart::OutputPins' data='007' />
					<value target='cal_uart::TXAlt' data='0' />
					<value target='cal_uart::UseRX' data='1' />
					<value target='cal_uart::RX' data='$PORTC.6' />
					<value target='cal_uart::InputPins' data='013' />
					<value target='cal_uart::RXAlt' data='0' />
					<value target='cal_uart::FLOWEN' data='000' />
					<value target='cal_uart::RTS' data='$PORTB.2' />
					<value target='cal_uart::CTS' data='$PORTB.1' />
					<value target='label' data='RS232' />
					<value target='cal_uart::ScopeTraces' data='0' />
					<value target='cal_uart::ConsoleData' data='0' />
					<value target='cal_uart::ConsoleFormat' data='000' />
					<value target='cal_uart::ConsoleColumns' data='64' />
					<value target='cal_uart::DataSource' data='000' />
					<value target='cal_uart::com_port' data='000' />
					<value target='cal_uart::Injector' data='000' />
					<value target='cal_uart::APIUseDDR' data='' />
					<value target='cal_uart::APIDDRPin' data='' />
					<value target='cal_uart::APIDDRRXState' data='' />
					<value target='cal_uart::APIUseFC' data='' />
					<value target='cal_uart::APICTSPin' data='' />
					<value target='cal_uart::APIRTSPin' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='dfb4d07a-3d70-45d5-83ef-07e3c95d86ab' vmin='8' vmaj='1' codename='table_7segment' panelId='-1' x='94.7063' y='-243.465' z='0' xsz='24.6847' ysz='23.5912' zsz='25' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='Enabled' data='1' />
					<value target='StorageType' data='000' />
					<value target='Sign' data='000' />
					<value target='intfixed' data='0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,
0x6f,0x80,0x77,0x39,0x79,0x71,0x73,0x3e,

' />
					<value target='floatfixed' data='' />
					<value target='NumVals' data='20' />
					<value target='EmbedIntoC' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='4' vmaj='1' codename='LED_7Seg1' panelId='-1' x='16.8903' y='0.965158' z='4.125' xsz='28.0425' ysz='44.0941' zsz='8.25' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='display_type' data='001' />
					<value target='ShowSegLabels' data='1' />
					<value target='UseCommonPin' data='1' />
					<value target='common_type' data='000' />
					<value target='pin0' data='$PORTB.0' />
					<value target='pin1' data='$PORTB.1' />
					<value target='pin2' data='$PORTB.2' />
					<value target='pin3' data='$PORTB.3' />
					<value target='pin4' data='$PORTB.4' />
					<value target='pin5' data='$PORTB.5' />
					<value target='pin6' data='$PORTB.6' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA.0' />
					<value target='FGColor' data='5767040' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='96862c4d-debc-45fa-9433-74711a4b9a3b' vmin='1' vmaj='2' codename='SPI_Master2' panelId='-1' x='-60' y='-240' z='0.755' xsz='25' ysz='25' zsz='25' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi::CHANNEL' data='002' />
					<value target='cal_spi::MOSI' data='$PORTC.4' />
					<value target='cal_spi::MOSIPins' data='008' />
					<value target='cal_spi::MISO' data='$PORTC.3' />
					<value target='cal_spi::MISOPins' data='013' />
					<value target='cal_spi::CLK' data='$PORTC.5' />
					<value target='cal_spi::CLKPins' data='004' />
					<value target='cal_spi::UseAutoCS' data='1' />
					<value target='cal_spi::SS' data='$PORTC.2' />
					<value target='cal_spi::PR_SCALE' data='004' />
					<value target='cal_spi::CKE' data='000' />
					<value target='cal_spi::CKP' data='001' />
					<value target='cal_spi::SMP' data='000' />
					<value target='label' data='SPI  Master' />
					<value target='cal_spi::ScopeTraces' data='1' />
					<value target='cal_spi::ConsoleData' data='1' />
					<value target='cal_spi::Injector' data='000' />
					<value target='cal_spi::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='96862c4d-debc-45fa-9433-74711a4b9a3b' vmin='1' vmaj='2' codename='SPI_Master1' panelId='-1' x='-52' y='-80' z='-1.00501' xsz='25' ysz='25' zsz='25' 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' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_spi::CHANNEL' data='001' />
					<value target='cal_spi::MOSI' data='$PORTB.13' />
					<value target='cal_spi::MOSIPins' data='008' />
					<value target='cal_spi::MISO' data='$PORTB.10' />
					<value target='cal_spi::MISOPins' data='013' />
					<value target='cal_spi::CLK' data='$PORTB.11' />
					<value target='cal_spi::CLKPins' data='004' />
					<value target='cal_spi::UseAutoCS' data='1' />
					<value target='cal_spi::SS' data='$PORTC.2' />
					<value target='cal_spi::PR_SCALE' data='004' />
					<value target='cal_spi::CKE' data='001' />
					<value target='cal_spi::CKP' data='001' />
					<value target='cal_spi::SMP' data='001' />
					<value target='label' data='SPI  Master' />
					<value target='cal_spi::ScopeTraces' data='1' />
					<value target='cal_spi::ConsoleData' data='1' />
					<value target='cal_spi::Injector' data='000' />
					<value target='cal_spi::InjectorCS' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='9737364' img='' style='0' />
		<camera xe='-37.5348' ye='-19.9212' ze='956.52' xt='-37.5348' yt='-19.9212' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='453' dy='469' zoom='57.3046' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='854,299,1335,866' RectRecentDocked='775,141,1254,706' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='1' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='25' />
		<camera xe='43.0768' ye='38.6117' ze='307.585' xt='43.0768' yt='38.6117' 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' />
		<winpos ID='7004' RectRecentFloat='2649,598,3299,1048' RectRecentDocked='1674,141,1910,706' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='1' />
	</panel3d>
	<panels2d count='0' />
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='65' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_04_ad9833_write_f1' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_06_fram' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_05_ad9833_write_f2' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_52_software_i2c' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_03_calculate_and_sent_to_display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='495' flags='0' />
		<view type='0' name='_01_int_trm0' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='60' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_00_setup_pic24FV32KA304' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_50_fram_write' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='_51_fram_read' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA2wMAADACAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
