<root>
<document scada='0' schema='102' license='1,HansJuergenHalder,UMPKEQ' title='' description='*******************************
*
*    Irissoft    2018
*
*     24F16K102    RS232  ohne Quarz
*
*******************************' fcversion='524802' target='PIC16.24F.24F16KA102' >
	<config data='!0,ffff!10,ffff!20,ff81!30,ff53!40,ff7f!50,ff97!60,fffd!70,ff7f%0,1%1,7%10,1%11,1%20,1%27,1%30,3%32,0%33,2%35,0%36,1%40,f%44,1%46,1%47,0%50,3%53,0%54,1%55,0%57,1%60,1%66,1%67,1%70,f%74,1%75,1%76,1%77,0' clkspd='32000000' simspd='1' usewdt='1' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='' body='' />
	<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='1' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='0' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='6' />
			<data name='CalculatedCommsDelay' value='6' />
			<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='801b53ff-8831-43d1-8f23-8233ac3a64a6' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Low' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='buf' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='20' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='CR' type='T8' description='' isconst='1' isinit='1' usrinit='&quot;\r\n&quot;' setinit='&quot;\r\n&quot;' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Status' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='OFF' type='s16' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='bEmpf' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='10' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='senden' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='120' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='pos' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Daten' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='High' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Adresse' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ON' type='s16' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Loop' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Flag' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='comment' title='' comment='*******************************************
*
*  Copyright IrisSoft 
* 
*  22.11.2018
*
*  RS223- Schnittstelle
*
*  !!! Baudrate = Baud_List * 2
*
*  Settings:
*  32MHz Konfiguration
*        _FBS(0xFFFF)
*        _FGS(0xFFFF) 
*        _FOSCSEL(0xFF81) 
*        _FOSC(0xFF53) 
*        _FWDT(0xFF7F) 
*        _FPOR(0xFF97) 
*        _FICD(0xFFFD) 
*        _FDS(0xFF7F) 
*
*******************************************' textarea='12,0,12,0' cmdcolor='37147' cmdcolor_sec='42270' />
						<command class_type='native' title='' textarea='36,0,511,300' ccode='_RCDIV = 0; // 8MHz dividiert durch 1 um auf 32MHz (16Mips) zu kommen
_ROEN = 0;   // Referenclock out' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='call' title='' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' component='UART1' macro='Initialise' />
						<command class_type='call' title='' cmdcolor='37147' cmdcolor_sec='42270' component='cal_i2c1' macro='Slave_Init' >
							<argument exp='0x22' />
							<argument exp='0x11' />
						</command>
						<command class_type='loop' title='' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='' cmdcolor='37147' cmdcolor_sec='42270' component='cal_i2c1' macro='Slave_Status' >
									<return exp='Status' />
								</command>
								<command class_type='decision' title='' cmdcolor='37147' cmdcolor_sec='42270' exp='(Status &amp; 1) == 1' swap='0' >
									<flowline >
										<command class_type='call' title='' cmdcolor='37147' cmdcolor_sec='42270' component='cal_i2c1' macro='Slave_RxByte' >
											<return exp='Adresse' />
											<argument exp='1' />
										</command>
										<command class_type='delay' title='' cmdcolor='37147' cmdcolor_sec='42270' exp='10' type='1' />
									</flowline>
									<flowline >
										<command class_type='decision' title='' cmdcolor='37147' cmdcolor_sec='42270' exp='(Status &amp; 0x20) == 0x20' swap='0' >
											<flowline >
												<command class_type='call' title='' cmdcolor='37147' cmdcolor_sec='42270' component='cal_i2c1' macro='Slave_RxByte' >
													<return exp='Daten' />
													<argument exp='1' />
												</command>
												<command class_type='delay' title='' cmdcolor='37147' cmdcolor_sec='42270' exp='10' type='1' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='calculation' title='' cmdcolor='42270' cmdcolor_sec='37147' >
									<exp exp='senden = &quot;&gt; Status = &quot;' />
									<exp exp='buf = ToString$ (Status)' />
									<exp exp='senden = senden + buf' />
									<exp exp='' />
									<exp exp='senden = senden + &quot;, Adresse = &quot;' />
									<exp exp='buf = ToString$ (Adresse)' />
									<exp exp='senden = senden + buf' />
									<exp exp='' />
									<exp exp='senden = senden + &quot;, Daten = &quot;' />
									<exp exp='buf = ToString$ (Daten)' />
									<exp exp='senden = senden + buf' />
									<exp exp='' />
									<exp exp='senden = senden + CR' />
									<exp exp='senden = senden + CR' />
								</command>
								<command class_type='call' title='' cmdcolor='37147' cmdcolor_sec='42270' component='UART1' macro='SendString' >
									<argument exp='senden' />
								</command>
								<command class_type='calculation' title='' textarea='36,0,511,300' cmdcolor='42270' cmdcolor_sec='37147' >
									<exp exp='Loop = Loop + 1' />
								</command>
								<command class_type='delay' title='' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' exp='25' type='1' />
								<command class_type='output' title='LED2' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' mode='1' port='1048577' mask='32' exp='ON' />
								<command class_type='delay' title='' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' exp='25' type='1' />
								<command class_type='output' title='LED2' textarea='36,0,511,300' cmdcolor='37147' cmdcolor_sec='42270' mode='1' port='1048577' mask='32' exp='OFF' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c73616d1-7ad0-45d9-aada-69ccfa4c5efc' vmin='0' vmaj='2' codename='UART1' x='0' y='230' z='3.74999' xsz='66' ysz='34' zsz='7.5' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='cal_uart::CHANNEL' data='001' />
					<value target='cal_uart::BAUD_LIST' data='008' />
					<value target='cal_uart::BAUD' data='57600' />
					<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='$PORTB.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='$PORTB.2' />
					<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='UART' />
					<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' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='ed3a5141-43bb-43e0-86b0-2243fd1147ca' vmin='1' vmaj='2' codename='cal_i2c1' x='0' y='170' z='0' xsz='20' ysz='20' zsz='20' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='ENABLED' data='1' />
					<value target='REF' data='1' />
					<value target='CHANNEL' data='001' />
					<value target='Mode' data='000' />
					<value target='SDA' data='$PORTB.9' />
					<value target='SDAPins' data='000' />
					<value target='SCL' data='$PORTB.8' />
					<value target='SCLPins' data='000' />
					<value target='StopDel' data='1' />
					<value target='BAUD_LIST' data='001' />
					<value target='BAUD' data='100000' />
					<value target='SRC' data='000' />
					<value target='SMB' data='000' />
					<value target='ClockStretching' data='1' />
					<value target='BMODE' data='0' />
					<value target='SDA_PORT' data='$PORTB.9' />
					<value target='SDA_TRIS' data='$PORTB.9' />
					<value target='SDA_PIN' data='9' />
					<value target='SCL_PORT' data='$PORTB.8' />
					<value target='SCL_TRIS' data='$PORTB.8' />
					<value target='SCL_PIN' data='8' />
					<value target='MASTER' data='1' />
					<value target='ScopeTraces' data='0' />
					<value target='ConsoleData' data='0' />
					<value target='Injector' data='000' />
					<value target='InjectorHandle' data='0' />
					<value target='REMAPPABLE' data='' />
					<value target='SDABank' data='b' />
					<value target='SDABank2' data='c' />
					<value target='SCLBank' data='b' />
					<value target='SCLBank2' data='c' />
					<value target='SDARPNUM' data='21' />
					<value target='SCLRPNUM' data='20' />
					<value target='SDARPREG' data='SSP1DATPPS' />
					<value target='SCLRPREG' data='SSP1CLKPPS' />
					<value target='SDAREG' data='000' />
					<value target='SCLREG' data='001' />
					<value target='Sim' data='1' />
					<value target='ParentName' data='' />
					<value target='BitDelay' data='10' />
					<value target='SDAAlts' data='000' />
					<value target='SCLAlts' data='000' />
					<value target='SDAAlt' data='4' />
					<value target='SCLAlt' data='4' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='-0.889254' ye='48.0197' ze='230.859' xt='-0.889254' yt='48.0197' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA4gQAAHgDAAA' zoom='75' scrollx='0' scrolly='1108' flags='0' />
	</layout>
</document>
</root>
