<root>
<document scada='0' schema='102' license='1,mariomaksoud,4D5ZY3' title='PORTABLE WELDING INVERTER AMPS DISPLAY.' description='Programmer: JJUMBA DERRICK  (Derrick-Pro)
Location : Lusanja-Kiti-Road.
Contacts: 0702131558 , WhatsApp: 0782062905
CODED ON: 7th,October,2020' fcversion='524802' target='PIC.16F.16F88' >
	<config data='!0,f50!10,3ffc%0,10%2,0%3,0%5,0%6,1%7,0%8,1%9,3%b,1%c,0%d,0%10,0%11,0' clkspd='8000000' simspd='1' usewdt='0' 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='6' />
			<data name='DataPort' value='1' />
			<data name='DataPin' value='7' />
			<data name='UseDefaultPins' value='1' />
			<data name='WrapEnabled' value='1' />
			<data name='CommsDelayOverridden' value='0' />
			<data name='CommsDelay' value='21' />
			<data name='CalculatedCommsDelay' value='21' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='bf709196-17ba-4821-b788-23b4f854ff2d' 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='Seg2' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0x00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seg1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0x00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='PERCENTAGES' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Seg0' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0x00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Volt' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</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='MPXState' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADC' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='BATadc' type='u16' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Number' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0x00' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IntCNT' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ADCpulse' 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='INT' type='u8' description='' isconst='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='ONES' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg2 = (PERCENTAGES % 0xA)' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg1 = 0' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg0 = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TENS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg2 = (PERCENTAGES % 0xA)' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg1 = (PERCENTAGES / 0xA)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg0 = 0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='UNITS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(PERCENTAGES &lt;= 9)' swap='0' >
							<flowline >
								<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' macro='ONES' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='((PERCENTAGES &gt;= 0xA) &amp;&amp; (PERCENTAGES &lt; 100))' swap='0' >
									<flowline >
										<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' macro='TENS' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(PERCENTAGES &gt;= 0x64)' swap='0' >
											<flowline >
												<command class_type='call' title='' cmdcolor='1879295' cmdcolor_sec='5751039' macro='HUNDREDS' />
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='TmrMultiplex' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='MPXState' >
							<case >
								<flowline >
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='199' exp='0x00' />
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='114' exp='0x00' />
									<command class_type='output' title='( Seg2 - ON )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='2' exp='0x02' />
									<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
										<exp exp='Number = Seg0' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='227' exp='0x00' />
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='114' exp='0x00' />
									<command class_type='output' title='( Seg1 - ON )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='4' exp='4' />
									<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
										<exp exp='Number = Seg1' />
									</command>
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='231' exp='0x00' />
									<command class_type='output' title='( DIGIT CLEAR )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='112' exp='0x00' />
									<command class_type='output' title='( Seg0 - ON )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='32' exp='32' />
									<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
										<exp exp='Number = Seg2' />
										<exp exp='' />
									</command>
								</flowline>
							</case>
						</command>
						<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Number' >
							<case >
								<flowline />
							</case>
							<case exp='0' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='32' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='195' exp='0xC3' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='80' exp='0x50' />
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='195' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='32' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='80' exp='0x50' />
								</flowline>
							</case>
							<case exp='2' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='1' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='64' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='194' exp='0xC2' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='48' exp='0x30' />
								</flowline>
							</case>
							<case exp='3' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='128' exp='0' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='1' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='66' exp='0x42' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='112' exp='0x70' />
								</flowline>
							</case>
							<case exp='4' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='194' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='1' exp='1' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='112' exp='0x70' />
								</flowline>
							</case>
							<case exp='5' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='128' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='16' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='67' exp='0x43' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='96' exp='0x60' />
								</flowline>
							</case>
							<case exp='6' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='16' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='195' exp='0xC3' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='96' exp='0x60' />
								</flowline>
							</case>
							<case exp='7' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='193' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='32' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='2' exp='2' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='80' exp='0x50' />
								</flowline>
							</case>
							<case exp='8' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='195' exp='0xC3' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='112' exp='0x70' />
								</flowline>
							</case>
							<case exp='9' >
								<flowline >
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='128' exp='0x00' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048576' mask='67' exp='0x43' />
									<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='112' exp='0x70' />
								</flowline>
							</case>
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='MPXState = MPXState + 1' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(MPXState == 3)' swap='0' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='MPXState = 0' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='HUNDREDS' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg2 = (PERCENTAGES % 0xA)' />
							<exp exp='' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg1 = ((PERCENTAGES / 0xA) % 0xA)' />
						</command>
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='Seg0 = (PERCENTAGES / 0xA)' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<command class_type='native' title='' ccode='OSCCON = 0x70;' cmdcolor='7687168' cmdcolor_sec='8152576' language='C' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Start' />
						<command class_type='output' title='( LVD - RELAY OFF BUT LOAD ON )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='128' exp='0' />
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='1048577' mask='1' exp='INT' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='Enable' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='MPXState = 0x00' />
							<exp exp='Seg0 = 0x00' />
							<exp exp='Seg1 = 0x00' />
							<exp exp='Seg2 = 0x00' />
							<exp exp='Volt = 0' />
							<exp exp='BATadc = 0x00' />
							<exp exp='ADC = 0x00' />
							<exp exp='IntCNT = 0x00' />
							<exp exp='ADCpulse = 0' />
						</command>
						<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
						<command class_type='interrupt' title='' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='TMR2' call='TmrMultiplex' >
							<settings timer='1' prescale='4' postscale='15' rollover='79' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='1' />
								<option value='14' />
								<option value='79' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
								<option value='-1' />
							</settings>
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM' macro='GetAverageByte' >
									<return exp='ADC' />
									<argument exp='0xA' />
									<argument exp='0x64' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='ADCpulse = (ADC / 3.2692307) + 1.0' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='PERCENTAGES = (ADCpulse * 100) / 79' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot;ADC= &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='ADC' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='12' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='PERCENTAGES' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintAscii' >
									<argument exp='&apos;%&apos;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot;  &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintString' >
									<argument exp='&quot;Pulse= &quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='lcd_16x2' macro='PrintNumber' >
									<argument exp='ADCpulse' />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='UNITS' />
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='PERCENTAGES &lt;= 0' swap='1' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
											<argument exp='ADCpulse' />
										</command>
									</flowline>
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='PWM1' macro='SetDutyCycle' >
											<argument exp='0' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='BAT' macro='GetAverageInt' >
									<return exp='BATadc' />
									<argument exp='20' />
									<argument exp='100' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='Volt = ((BATadc * 5) / 1023) * 11' />
								</command>
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Volt &lt;= 10)' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='LOW BATTERY VOLTAGE DISCONNECT (LVD)' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
										<command class_type='output' title='( LVD - RELAY ON BUT LOAD OFF )' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='128' exp='128' />
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Volt &gt;= 14)' swap='0' >
											<flowline >
												<command class_type='comment' title='' comment='BATTERY FULL DISCONNECT CHARGER' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
												<command class_type='output' title=' RELAY ON  BUT  CHARGER  OFF' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='4' exp='4' />
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(Volt &lt;= 11)' swap='0' >
													<flowline >
														<command class_type='comment' title='' comment='RECONNECT CHARGER' textarea='12,0,12,0' cmdcolor='10944511' cmdcolor_sec='11465458' />
														<command class_type='output' title=' RELAY OFF  BUT  CHARGER  ON' cmdcolor='16762795' cmdcolor_sec='13879979' mode='2' port='1048577' mask='4' exp='0' />
													</flowline>
													<flowline />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='PWM' x='-10.8015' y='70' z='8.7' xsz='25.1419' ysz='25.1419' zsz='18.55' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='3' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='001' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label4' x='10' y='70' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='PWM' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='LVD' x='-40' y='90' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.7' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label1' x='-20' y='90' z='0' xsz='0.802769' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='LVD' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='444fb704-814c-4707-a15c-759ba088505c' vmin='9' vmaj='1' codename='PWM1' x='-57' y='17.2222' z='21.6763' xsz='1.48148' ysz='1.48148' zsz='1.48148' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='channel' data='001' />
					<value target='altpin' data='1' />
					<value target='pwm_pin' data='$PORTB.3' />
					<value target='RemapPin' data='000' />
					<value target='timer' data='2' />
					<value target='period' data='79' />
					<value target='prescale' data='000' />
					<value target='period_calc' data='40.000000' />
					<value target='frequency_calc2' data='25000.000000' />
					<value target='frequency_calc' data='25.000000' />
					<value target='pwm_prescale' data='1' />
					<value target='ReqFreq' data='25000.000000' />
					<value target='OldReqFreq' data='25000.000000' />
					<value target='CalcFreq' data='25000.000000' />
					<value target='CalcPeriod' data='79' />
					<value target='CalcScaler' data='1' />
					<value target='Apply' data='0' />
					<value target='SimRep' data='001' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='14683ea8-5a08-4b3a-be2d-3dea3e17e720' vmin='3' vmaj='1' codename='BAT' x='-10' y='40' z='9.9903' xsz='25.1419' ysz='25.1419' zsz='18.55' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='1' >
				<resources />
				<properties />
				<values >
					<value target='angle_start' data='225.000000' />
					<value target='angle_sweep' data='270.000000' />
					<value target='cap_color' data='192' />
					<value target='point_color' data='16777215' />
					<value target='ScopeTraces' data='0' />
					<value target='channel' data='4' />
					<value target='vrefvol' data='500' />
					<value target='vrefop' data='000' />
					<value target='convspd' data='001' />
					<value target='actime' data='40' />
					<value target='bits' data='10' />
					<value target='bitmul' data='0.004883' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label2' x='10' y='40' z='0.9103' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='BAT' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='7fdaec78-394e-4ec9-a578-4f1a12a12076' vmin='1' vmaj='1' codename='CHG' x='20' y='90' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='pin' data='$PORTB.2' />
					<value target='polarity' data='001' />
					<value target='on_color' data='8453975' />
					<value target='show_label' data='002' />
					<value target='label_property' data='pin' />
					<value target='label_color' data='16777215' />
					<value target='label_scale' data='1.000000' />
					<value target='label_auto_scale' data='0' />
					<value target='label_position' data='003' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='9a971ee1-28e0-4e47-9c09-71268383fc75' vmin='0' vmaj='1' codename='shape_label3' x='40' y='90' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Color' data='16777215' />
					<value target='Background' data='-1' />
					<value target='Font' data='Arial' />
					<value target='Text' data='CHG' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='4' vmaj='1' codename='Seg0' x='30' y='50' z='0' xsz='20' ysz='30' zsz='8.35' 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='display_type' data='001' />
					<value target='ShowSegLabels' data='0' />
					<value target='UseCommonPin' data='0' />
					<value target='common_type' data='000' />
					<value target='pin0' data='$PORTA.1' />
					<value target='pin1' data='$PORTB.4' />
					<value target='pin2' data='$PORTB.6' />
					<value target='pin3' data='$PORTA.6' />
					<value target='pin4' data='$PORTA.7' />
					<value target='pin5' data='$PORTA.0' />
					<value target='pin6' data='$PORTB.5' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTB.1' />
					<value target='FGColor' data='8388800' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='4' vmaj='1' codename='Seg1' x='50' y='50' z='23.25' xsz='20' ysz='30' zsz='8.35' 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='display_type' data='001' />
					<value target='ShowSegLabels' data='0' />
					<value target='UseCommonPin' data='1' />
					<value target='common_type' data='000' />
					<value target='pin0' data='$PORTA.1' />
					<value target='pin1' data='$PORTB.4' />
					<value target='pin2' data='$PORTB.6' />
					<value target='pin3' data='$PORTA.6' />
					<value target='pin4' data='$PORTA.7' />
					<value target='pin5' data='$PORTA.0' />
					<value target='pin6' data='$PORTB.5' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA.2' />
					<value target='FGColor' data='8388800' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='52c5383b-4f48-4029-8b75-c3633f7cf892' vmin='4' vmaj='1' codename='Seg2' x='70' y='50' z='31' xsz='20' ysz='30' zsz='8.35' 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='display_type' data='001' />
					<value target='ShowSegLabels' data='0' />
					<value target='UseCommonPin' data='1' />
					<value target='common_type' data='000' />
					<value target='pin0' data='$PORTA.1' />
					<value target='pin1' data='$PORTB.4' />
					<value target='pin2' data='$PORTB.6' />
					<value target='pin3' data='$PORTA.6' />
					<value target='pin4' data='$PORTA.7' />
					<value target='pin5' data='$PORTA.0' />
					<value target='pin6' data='$PORTB.5' />
					<value target='pin7' data='$PORTB.7' />
					<value target='common_pin' data='$PORTA.5' />
					<value target='FGColor' data='8388800' />
					<value target='BGColor' data='1973790' />
					<value target='LabelColor' data='16777215' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='f8c9b53d-0bf2-469f-8f0a-34caa93749ba' vmin='1' vmaj='1' codename='lcd_16x2' x='40' y='10' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='Pin_Data_0' data='$PORTB.0' />
					<value target='Pin_Data_1' data='$PORTB.1' />
					<value target='Pin_Data_2' data='$PORTB.2' />
					<value target='Pin_Data_3' data='$PORTB.3' />
					<value target='Pin_RS' data='$PORTB.4' />
					<value target='Pin_E' data='$PORTB.5' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='1' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='-5.07142' ye='42.6493' ze='272.082' xt='-5.07142' yt='42.6493' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='1' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='8421376' img='' style='0' size='0' />
		<camera xe='170.765' ye='1064' ze='-6666.67' xt='170.765' yt='1064' zt='-3.63798e-12' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<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---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='85' scrollx='0' scrolly='1693' flags='0' />
		<view type='0' name='Main' mode='2' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='36' scrolly='2071' flags='0' />
		<view type='0' name='TmrMultiplex' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='ONES' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='TENS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='HUNDREDS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='UNITS' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAAUwMAAEYCAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
