<root>
<document scada='0' projtype='1' schema='103' license='1,82702381,95CJQR' title='' description='' fcversion='720898' target='PIC.16F.E-blocks2 8-bit PIC Programmer' >
	<config data='!0,3f8c!10,37fd!20,3f92!30,1fff!40,3fff%0,4%4,0%8,1' clkspd='32000000' 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='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='0' center='1' unitscale='0' fixedscale='0' fixedx='25' fixedy='25' fixedz='25' headcode='0' />
		<definition guid='d4c04ac8-bbcd-4981-8ce6-9d6c9bb1e26a' vstate='40' vmin='0' vmaj='1' srcleaf='EB_COMBO_BL0114.fcfx' visiblename='Combo' description='A component to drive the BL0114 Combo board including LEDs, Switches, LCD, 7-Segs 
and analogue inputs. ' category='E-blocks 2' category2='' category3='' bIs2dOnly='1' bIs3dOnly='0' bIsWysiwyg='0' catenable='1' author='Matrix TSL' manuname='Matrix TSL' manucode='BL0114' sysinfo='9443083' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' showmacros='1' iconpath='..\..\Icons\Components\Combo_board.png' />
		<component class_type='root' codename='ComboBL0114' panelId='-1' x='0.4' 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='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
			<resources />
			<properties >
				<property name='Connection Type' target='ConnType' typeid='16' hidden='0' locked='0' info='' filter='000Port Byte
001Individual Pins' />
				<property name='Init' target='Init' typeid='7' hidden='1' locked='0' info='Hidden property to allow for auto pin population when first dragging the component onto a project.
Designed to siplify the setup procedure for E-blocks and E-blocks 2.' />
				<property name='Bank 0 Connections' hidden='0' >
					<property name='Bank 0' target='Bank0' typeid='19' hidden='0' locked='0' info='' />
					<property name='Pin 0' target='PinA0' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 1' target='PinA1' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 2' target='PinA2' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 3' target='PinA3' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 4' target='PinA4' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 5' target='PinA5' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 6' target='PinA6' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 7' target='PinA7' typeid='5' hidden='1' locked='0' info='' />
				</property>
				<property name='Bank 1 Connections' hidden='0' >
					<property name='Bank 1' target='Bank1' typeid='19' hidden='0' locked='0' info='' />
					<property name='Pin 0' target='PinB0' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 1' target='PinB1' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 2' target='PinB2' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 3' target='PinB3' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 4' target='PinB4' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 5' target='PinB5' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 6' target='PinB6' typeid='5' hidden='1' locked='0' info='' />
					<property name='Pin 7' target='PinB7' typeid='5' hidden='1' locked='0' info='' />
				</property>
				<property name='Switch Settings' hidden='0' >
					<property name='Debounce' target='Debounce' typeid='14' hidden='0' locked='0' info='Sets the time in milliseconds to allow a pin change to settle into a stable state.

NB)  Debouncing is only used when reading the button state using the component macros.
        Chip pins are NOT debounced.' />
				</property>
				<property name='Analog Connections' folder='property_1' hidden='0' >
					<property name='Light Sensor' target='LightSensorADC' typeid='6' hidden='0' locked='0' info='Light Sensor ADC channel
Connected to Bank 0 pin 0 which is usually analog pin AN0.' />
					<property name='Potentiometer' target='PotADC' typeid='6' hidden='0' locked='0' info='Potentiometer ADC channel
Connected to Bank 0 pin 1 which is usually analog pin AN1.' />
				</property>
				<property name='Simulation' folder='property_2' hidden='0' >
					<property name='Analog Scope Traces' target='AnaScopeTraces' typeid='7' hidden='0' locked='0' info='Controls if traces are automatically added to the data recorder window for the analogue signals on the combo board.' />
					<property name='Latching Switches' target='LatchingSwitches' typeid='7' hidden='0' locked='0' info='When simulating it can be impossible to press multiple switches at once.
Latching allows multiple to be set on/off at once, note this won&apos;t effect the operation of the physical real world switches.' />
				</property>
			</properties>
			<values >
				<value target='ConnType' data='000' />
				<value target='Init' data='0' />
				<value target='Bank0' data='$PORTA' />
				<value target='PinA0' data='$PORTA.0' />
				<value target='PinA1' data='$PORTA.1' />
				<value target='PinA2' data='$PORTA.2' />
				<value target='PinA3' data='$PORTA.3' />
				<value target='PinA4' data='$PORTA.4' />
				<value target='PinA5' data='$PORTA.5' />
				<value target='PinA6' data='$PORTA.6' />
				<value target='PinA7' data='$PORTA.7' />
				<value target='Bank1' data='$PORTD' />
				<value target='PinB0' data='$PORTD.0' />
				<value target='PinB1' data='$PORTD.1' />
				<value target='PinB2' data='$PORTD.2' />
				<value target='PinB3' data='$PORTD.3' />
				<value target='PinB4' data='$PORTD.4' />
				<value target='PinB5' data='$PORTD.5' />
				<value target='PinB6' data='$PORTD.6' />
				<value target='PinB7' data='$PORTD.7' />
				<value target='Debounce' data='0' />
				<value target='LightSensorADC' data='0' />
				<value target='PotADC' data='1' />
				<value target='AnaScopeTraces' data='0' />
				<value target='LatchingSwitches' data='0' />
			</values>
			<events >
				<event class='Components' event='Initialise' target='Ev_Initialise' />
				<event class='Simulation' event='Start' target='Ev_Start' />
				<event class='Components' event='AutoIdEBlock' target='Ev_AutoIdEBlock' />
				<event class='Simulation' event='Stop' target='Ev_Stop' />
				<event class='Components' event='PropertyEx' target='Ev_PropertyEx' />
			</events>
			<apis >
				<api name='Seg_ShowDigit' alt='Seg_ShowDigit' type='1' proto='1' />
				<api name='LCD_PrintFormattedNumber' alt='LCD_PrintFormattedNumber' type='1' proto='1' />
				<api name='LCD_RemapCharacter' alt='LCD_RemapCharacter' type='1' proto='1' />
				<api name='LCD_ScrollDisplay' alt='LCD_ScrollDisplay' type='1' proto='1' />
				<api name='IO_SetPort' alt='IO_SetPort' type='1' proto='1' />
				<api name='IO_SetLEDState' alt='IO_SetLEDState' type='1' proto='1' />
				<api name='LCD_PrintFloat' alt='LCD_PrintFloat' type='1' proto='1' />
				<api name='IO_GetPort' alt='IO_GetPort' type='1' proto='1' />
				<api name='LCD_Cursor' alt='LCD_Cursor' type='1' proto='1' />
				<api name='Seg_ShowSegments' alt='Seg_ShowSegments' type='1' proto='1' />
				<api name='LCD_Start' alt='LCD_Start' type='1' proto='1' />
				<api name='LCD_Command' alt='LCD_Command' type='1' proto='1' />
				<api name='LCD_RAMWrite' alt='LCD_RAMWrite' type='1' proto='1' />
				<api name='IO_ReadAnalogAsInt' alt='IO_ReadAnalogAsInt' type='1' proto='1' />
				<api name='LCD_PrintString' alt='LCD_PrintString' type='1' proto='1' />
				<api name='LCD_ClearLine' alt='LCD_ClearLine' type='1' proto='1' />
				<api name='IO_GetSwitchState' alt='IO_GetSwitchState' type='1' proto='1' />
				<api name='IO_ReadAnalogAsByte' alt='IO_ReadAnalogAsByte' type='1' proto='1' />
				<api name='LCD_PrintAscii' alt='LCD_PrintAscii' type='1' proto='1' />
				<api name='LCD_PrintNumber' alt='LCD_PrintNumber' type='1' proto='1' />
				<api name='LCD_RawSend' alt='LCD_RawSend' type='1' proto='1' />
				<api name='LCD_Clear' alt='LCD_Clear' type='1' proto='1' />
			</apis>
			<variables >
				<variable public='0' >
					<def class_type='variable' name='Counter' type='s16' description='' isconst='0' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='ScopeH' type='h32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='StreamH' type='h32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isHidden='0' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='Ev_Stop' description='Broadcast to all components that simulation has stopped' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Seg_ShowDigit' description='Displays a digit on the 7-seg display
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Digit' type='u8' description='Which of the digits to change (0 - 3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Value' type='u8' description='The value to display (0 - 9)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='DecimalPoint' type='u8' description='Decides if the decimal point is lit' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
							<argument exp='.Digit' />
							<argument exp='.Value' />
							<argument exp='.DecimalPoint' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_PrintFormattedNumber' description='Will allow you to print a number up to 32-bits with signed or unsigned formatting.
Signed = -2147483648 to 2147483647
Unsigned = 0 to 4294967295' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='u32' description='Enter the number or variable to print to the LCD' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Format' type='b1' description='0=Signed, 1=Unsigned' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='PrintFormattedNumber' >
							<argument exp='.Number' />
							<argument exp='.Format' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_AutoIdEBlock' description='Send to a component so it can check for any auto-id connection info' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='port' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PortStr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='Str' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='Built-in Function' macro='Connection.Autodetect' >
							<return exp='.port' />
							<argument exp='this' />
						</command>
						<command class_type='decision' title='Decision' exp='.port &gt;= 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;ConnType&quot;' />
									<argument exp='0' />
								</command>
								<command class_type='sim' title='Built-in Function' macro='Connection.GetAutodetectedPortName' >
									<return exp='.Str' />
									<argument exp='this' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.PortStr = &quot;$&quot; + .Str' />
								</command>
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;Bank0&quot;' />
									<argument exp='.PortStr' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Connection.Autodetect' >
							<return exp='.port' />
							<argument exp='this' />
						</command>
						<command class_type='decision' title='Decision' exp='.port &gt;= 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' macro='Connection.GetAutodetectedPortName' >
									<return exp='.Str' />
									<argument exp='this' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.PortStr = &quot;$&quot; + .Str' />
								</command>
								<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;Bank1&quot;' />
									<argument exp='.PortStr' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Initialise' description='Initialisation routine for the component once the component is linked to its parent' statediag='0' >
						<return name='Return' type='u32' description='Non-zero to prevent initialisation' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='temp' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='comp' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='dev_name' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<command class_type='sim' title='LED Array - Individual Pin Mode' macro='Component.Property.SetValue' >
							<argument exp='LED_Array1' />
							<argument exp='&quot;port&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='sim' title='LED Array - Individual Pin Mode' macro='Component.Property.SetValue' >
							<argument exp='LED_Array2' />
							<argument exp='&quot;port&quot;' />
							<argument exp='1' />
						</command>
						<command class_type='sim' title='Switch Array - Individual Pin mode' macro='Component.Property.SetValue' >
							<argument exp='switch_array_push1' />
							<argument exp='&quot;InputMode&quot;' />
							<argument exp='11' />
						</command>
						<command class_type='sim' title='Switch Array - Individual Pin mode' macro='Component.Property.SetValue' >
							<argument exp='switch_array_push2' />
							<argument exp='&quot;InputMode&quot;' />
							<argument exp='11' />
						</command>
						<command class_type='decision' title='Have we already been initialised before?' exp='Init = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Simulation' macro='FCD.GetItemValue' >
									<return exp='.dev_name' />
									<argument exp='&quot;device&quot;' />
									<argument exp='&quot;name&quot;' />
									<argument exp='&quot;&quot;' />
								</command>
								<command class_type='sim' title='Simulation' disable='1' macro='Debug.PrintLn' >
									<argument exp='.dev_name' />
								</command>
								<command class_type='decision' title='Decision' exp='(Compare$ (.dev_name,&quot;16F1937&quot;,1) == 0) || (Compare$ (.dev_name,&quot;16F18877&quot;,1) == 0)' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Default PIC configuration - leave as is Ports A &amp; B' textarea='12,0,12,0' />
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;ConnType&quot;' />
											<argument exp='0' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Decision' exp='(Compare$ (.dev_name,&quot;ATMEGA328P&quot;,1) == 0)' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Default AVR/Arduino configuration - Change to Ports C &amp; D' textarea='12,0,12,0' />
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;ConnType&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;Bank0&quot;' />
											<argument exp='&quot;$PORTC0&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;Bank1&quot;' />
											<argument exp='&quot;$PORTD0&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA0&quot;' />
											<argument exp='&quot;$PORTC.0&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA1&quot;' />
											<argument exp='&quot;$PORTC.1&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA2&quot;' />
											<argument exp='&quot;$PORTC.2&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA3&quot;' />
											<argument exp='&quot;$PORTC.3&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA4&quot;' />
											<argument exp='&quot;$PORTC.4&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA5&quot;' />
											<argument exp='&quot;$PORTC.5&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA6&quot;' />
											<argument exp='&quot;$PORTC.5&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinA7&quot;' />
											<argument exp='&quot;$PORTC.5&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB0&quot;' />
											<argument exp='&quot;$PORTD.0&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB1&quot;' />
											<argument exp='&quot;$PORTD.1&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB2&quot;' />
											<argument exp='&quot;$PORTD.2&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB3&quot;' />
											<argument exp='&quot;$PORTD.3&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB4&quot;' />
											<argument exp='&quot;$PORTD.4&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB5&quot;' />
											<argument exp='&quot;$PORTD.5&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB6&quot;' />
											<argument exp='&quot;$PORTD.6&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;PinB7&quot;' />
											<argument exp='&quot;$PORTD.7&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='sim' title='Simulation' macro='FCD.GetItemValue' >
									<return exp='.dev_name' />
									<argument exp='&quot;device&quot;' />
									<argument exp='&quot;namealt&quot;' />
									<argument exp='&quot;&quot;' />
								</command>
								<command class_type='decision' title='Decision' exp='(Compare$ (.dev_name,&quot;33EP256MU806&quot;,1) == 0)' swap='0' >
									<flowline >
										<command class_type='comment' title='' comment='Default dsPIC configuration - Change to Ports BL &amp; BH' textarea='12,0,12,0' />
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;ConnType&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;Bank0&quot;' />
											<argument exp='&quot;$PORTB_L&quot;' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
											<argument exp='this' />
											<argument exp='&quot;Bank1&quot;' />
											<argument exp='&quot;$PORTB_H&quot;' />
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='sim' title='Component initialsied - don&apos;t repeat' macro='Component.Property.SetValue' >
									<argument exp='this' />
									<argument exp='&quot;Init&quot;' />
									<argument exp='1' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;ConnType&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;ConnType&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;Bank0&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;Bank0&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;Bank1&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;Bank1&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;LightSensorADC&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;LightSensorADC&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;PotADC&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;PotADC&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;Debounce&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;Debounce&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;LatchingSwitches&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;LatchingSwitches&quot;' />
							<argument exp='.temp' />
						</command>
						<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
							<return exp='.temp' />
							<argument exp='this' />
							<argument exp='&quot;other_props&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='Ev_PropertyEx' >
							<argument exp='&quot;other_props&quot;' />
							<argument exp='.temp' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_RemapCharacter' description='Assigns a remap character allowing the PrintString function to automatically swap between pre-defined characters. 
The characters can be custom (in the range 0-9) or can point to an existing character in the LCD character map.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='RemapIdx' type='u8' description='Remap Index, Range: 0 to (Remap Characters - 1)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='SearchCharacter' type='u8' description='Character to look for a replace' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='ReplacementCharacter' type='u8' description='New character value to use in place of the search character.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='RemapCharacter' >
							<argument exp='.RemapIdx' />
							<argument exp='.SearchCharacter' />
							<argument exp='.ReplacementCharacter' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_ScrollDisplay' description='Scrolls the display left or right by a number of given positions.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Position' type='u8' description='Holds the number of positions to shift the display' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Direction' type='u8' description='0 = left, 1 = right' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='ScrollDisplay' >
							<argument exp='.Position' />
							<argument exp='.Direction' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_SetPort' description='Sets the state of a single port' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Bank' type='u8' description='0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Value' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Bank' >
							<case >
								<flowline >
									<command class_type='call' title='Component Macro' component='LED_Array1' macro='WriteValue' >
										<argument exp='.Value' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Component Macro' component='LED_Array2' macro='WriteValue' >
										<argument exp='.Value' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_SetLEDState' description='Sets the state of a single LED' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Bank' type='u8' description='0 = Top Bank of LEDs, 1 = Bottom Bank of LEDs' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='LED' type='u8' description='0 = LED0, 7 = LED7' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='State' type='u8' description='0 = Off, 1 = On' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Bank' >
							<case >
								<flowline >
									<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.LED' >
										<case >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='0' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='1' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='2' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='2' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='3' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='3' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='4' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='4' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='5' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='2' component='LED_Array1' macro='LEDOff' >
															<argument exp='5' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='6' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='6' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDon' >
															<argument exp='7' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array1' macro='LEDOff' >
															<argument exp='7' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.LED' >
										<case >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='0' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='0' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='1' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='1' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='2' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='2' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='3' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='3' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='4' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='4' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='5' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='2' component='LED_Array2' macro='LEDOff' >
															<argument exp='5' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='6' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='6' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='decision' title='Decision' exp='.State' swap='0' >
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDon' >
															<argument exp='7' />
														</command>
													</flowline>
													<flowline >
														<command class_type='call' title='Component Macro' component='LED_Array2' macro='LEDOff' >
															<argument exp='7' />
														</command>
													</flowline>
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_PrintFloat' description='Print a Float number rounded up to a specified amount of decimal places.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='f32' description='Enter the number or variable to print to the LCD' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<param name='DecimalPlaces' type='u8' description='Enter how many decimal places to round up to (1 - 6)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='s' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='10' />
						</local>
						<command class_type='call' title='Component Macro' component='LCD' macro='PrintFloat' >
							<argument exp='.Number' />
							<argument exp='.DecimalPlaces' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_GetPort' description='Reads the state of a single port' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Bank' type='u8' description='0 = Top Bank of Switches, 1 = Bottom Bank of Switches' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Bank' >
							<case >
								<flowline >
									<command class_type='call' title='Component Macro' component='switch_array_push1' macro='ReadAll' >
										<return exp='.Return' />
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='call' title='Component Macro' component='switch_array_push2' macro='ReadAll' >
										<return exp='.Return' />
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Seg_Display' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Value' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='digit' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.digit = .Value / 1000' />
							<exp exp='.Value = .Value MOD 1000' />
						</command>
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
							<argument exp='0' />
							<argument exp='.digit' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.digit = .Value / 100' />
							<exp exp='.Value = .Value MOD 100' />
						</command>
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
							<argument exp='1' />
							<argument exp='.digit' />
							<argument exp='0' />
						</command>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.digit = .Value / 10' />
							<exp exp='.Value = .Value MOD 10' />
						</command>
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
							<argument exp='2' />
							<argument exp='.digit' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
							<argument exp='3' />
							<argument exp='.Value' />
							<argument exp='0' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Cursor' description='Moves the cursor on the LCD Display' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='x' type='u8' description='Set the cursor position in the X plane, 0 is the left most cell' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='y' type='u8' description='Set the cursor position in the Y plane, 0 is the top most cell' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='Cursor' >
							<argument exp='.x' />
							<argument exp='.y' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Seg_ShowSegments' description='Allows the individual segments of the display to be controlled.
' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Digit' type='u8' description='Which of the digits to change (0 - 3)' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Segments' type='u8' description='8-bit Binary value to set the segments, bit0 = segA, bit1 = segB...' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowSegments' >
							<argument exp='.Digit' />
							<argument exp='.Segments' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='SetLCDNumber' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='value' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='divider' type='f32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0.0' setinit='' />
						<local name='index' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='number' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='point' type='b1' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.index = 0' />
							<exp exp='.divider = 1' />
						</command>
						<command class_type='loop' title='Loop' type='0' exp='.index &lt; 4' for1='' for3='' >
							<flowline >
								<command class_type='calculation' title='Calculation' >
									<exp exp='.number = round (.value / .divider)' />
									<exp exp='.value = .value - (.number * .divider)' />
									<exp exp='.divider = .divider / 10' />
								</command>
								<command class_type='decision' title='Decision' exp='.index = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.point = true' />
										</command>
									</flowline>
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.point = false' />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' component='led_7seg_quad' macro='ShowDigit' >
									<argument exp='.index' />
									<argument exp='.number' />
									<argument exp='.point' />
								</command>
								<command class_type='calculation' title='Calculation' >
									<exp exp='.index = .index + 1' />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Start' description='Startup routine required by the hardware device.
Automatically clears the display after initialising.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='Start' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_PropertyEx' description='Sent when a property has been changed by the User (specific property and value identified)' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Property' type='T8' description='The name of the property being changed' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<param name='Value' type='T8' description='The new value for the property' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<local name='strval' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='tempstr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='tstr' type='T8' description='' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</local>
						<local name='PortLetter' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PortPinIdx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='idx' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='PropertyMinus1Char' type='T8' description='' isconst='0' isHidden='0' isinit='1' usrinit='&quot;&quot;' setinit='&quot;&quot;' >
							<array size='20' />
						</local>
						<command class_type='calculation' title='Calculation' >
							<exp exp='.PropertyMinus1Char = Left$(.Property,(Length$(.Property) - 1))' />
						</command>
						<command class_type='decision' title='Decision' exp='Compare$(.Property,&quot;ConnType&quot;,0) = 0 || Compare$(.PropertyMinus1Char,&quot;Bank&quot;,0) = 0 || Compare$(.PropertyMinus1Char,&quot;PinA&quot;,0) = 0 || Compare$(.PropertyMinus1Char,&quot;PinB&quot;,0) = 0' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' exp='ConnType = 0' swap='0' >
									<flowline >
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;Bank0&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;Bank1&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA0&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA1&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA2&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA3&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA4&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA5&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA6&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA7&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB0&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB1&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB2&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB3&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB4&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB5&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB6&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB7&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
											<return exp='.strval' />
											<argument exp='this' />
											<argument exp='&quot;Bank0&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.PortPinIdx = 0' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.idx &lt; 8' for1='' for3='' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tempstr = .strval' />
													<exp exp='.tempstr = .tempstr + &quot;.&quot;' />
													<exp exp='.tempstr = .tempstr + STRING .PortPinIdx' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;PinA&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='this' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;Pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='LED_Array1' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='switch_array_push1' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.PortPinIdx = .PortPinIdx + 1' />
													<exp exp='.idx = .idx + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
											<return exp='.strval' />
											<argument exp='this' />
											<argument exp='&quot;Bank1&quot;' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.PortPinIdx = 0' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.idx &lt; 8' for1='' for3='' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tempstr = .strval' />
													<exp exp='.tempstr = .tempstr + &quot;.&quot;' />
													<exp exp='.tempstr = .tempstr + STRING .PortPinIdx' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;PinB&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='this' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;Pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='LED_Array2' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='switch_array_push2' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.PortPinIdx = .PortPinIdx + 1' />
													<exp exp='.idx = .idx + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
									<flowline >
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;Bank0&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;Bank1&quot;' />
											<argument exp='0' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA0&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA1&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA2&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA3&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA4&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA5&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA6&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='Simulation' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinA7&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB0&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB1&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB2&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB3&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB4&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB5&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB6&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='sim' title='SimulBtion' macro='Component.Property.SetVisible' >
											<argument exp='this' />
											<argument exp='&quot;PinB7&quot;' />
											<argument exp='1' />
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.idx &lt; 8' for1='' for3='' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;PinA&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
													<return exp='.tempstr' />
													<argument exp='this' />
													<argument exp='.tstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;Pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='LED_Array1' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='switch_array_push1' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.PortPinIdx = .PortPinIdx + 1' />
													<exp exp='.idx = .idx + 1' />
												</command>
											</flowline>
										</command>
										<command class_type='calculation' title='Calculation' >
											<exp exp='.idx = 0' />
										</command>
										<command class_type='loop' title='Loop' type='0' exp='.idx &lt; 8' for1='' for3='' >
											<flowline >
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;PinB&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.GetValue' >
													<return exp='.tempstr' />
													<argument exp='this' />
													<argument exp='.tstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;Pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='LED_Array2' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.tstr = &quot;pin&quot; + STRING .idx' />
												</command>
												<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
													<argument exp='switch_array_push2' />
													<argument exp='.tstr' />
													<argument exp='.tempstr' />
												</command>
												<command class_type='calculation' title='Calculation' >
													<exp exp='.PortPinIdx = .PortPinIdx + 1' />
													<exp exp='.idx = .idx + 1' />
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop - Set LCD pins' type='2' forvar='.idx' exp='6' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.strval = &quot;PinB&quot; + STRING .idx' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
											<return exp='.tstr' />
											<argument exp='this' />
											<argument exp='.strval' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.idx' >
											<case >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_Data_0&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='1' >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_Data_1&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_Data_2&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='3' >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_Data_3&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_RS&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='5' >
												<flowline >
													<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
														<argument exp='LCD' />
														<argument exp='&quot;Pin_E&quot;' />
														<argument exp='.tstr' />
													</command>
												</flowline>
											</case>
											<case exp='6' >
												<flowline />
											</case>
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop - Set 7Seg common pins (Bank A)' type='2' forvar='.idx' exp='4' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.strval = &quot;PinA&quot; + STRING .idx' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
											<return exp='.tstr' />
											<argument exp='this' />
											<argument exp='.strval' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
											<argument exp='led_7seg_quad' />
											<argument exp='&quot;Common_Pin&quot;+ STRING .idx' />
											<argument exp='.tstr' />
										</command>
									</flowline>
								</command>
								<command class_type='loop' title='Loop - Set 7Seg pins - Segments A to G + dp (Bank B)' type='2' forvar='.idx' exp='8' for1='' for3='' >
									<flowline >
										<command class_type='calculation' title='Calculation' >
											<exp exp='.strval = &quot;PinB&quot; + STRING .idx' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
											<return exp='.tstr' />
											<argument exp='this' />
											<argument exp='.strval' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
											<argument exp='led_7seg_quad' />
											<argument exp='&quot;Pin&quot;+ STRING .idx' />
											<argument exp='.tstr' />
										</command>
									</flowline>
								</command>
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' exp='Compare$ (.Property,&quot;LightSensorADC&quot;,0) = 0' swap='0' >
									<flowline >
										<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
											<return exp='.strval' />
											<argument exp='this' />
											<argument exp='&quot;LightSensorADC&quot;' />
										</command>
										<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
											<argument exp='Potentiometer2' />
											<argument exp='&quot;adc_base1::channel&quot;' />
											<argument exp='.strval' />
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' exp='Compare$ (.Property,&quot;PotADC&quot;,0) = 0' swap='0' >
											<flowline >
												<command class_type='sim' title='Built-in Function' macro='Component.Property.GetValue' >
													<return exp='.strval' />
													<argument exp='this' />
													<argument exp='&quot;PotADC&quot;' />
												</command>
												<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
													<argument exp='Potentiometer1' />
													<argument exp='&quot;adc_base1::channel&quot;' />
													<argument exp='.strval' />
												</command>
											</flowline>
											<flowline >
												<command class_type='decision' title='Decision' exp='Compare$(.Property,&quot;Debounce&quot;,0) == 0' swap='0' >
													<flowline >
														<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
															<argument exp='switch_array_push1' />
															<argument exp='&quot;debounce&quot;' />
															<argument exp='.Value' />
														</command>
														<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
															<argument exp='switch_array_push2' />
															<argument exp='&quot;debounce&quot;' />
															<argument exp='.Value' />
														</command>
													</flowline>
													<flowline >
														<command class_type='decision' title='Decision' exp='Compare$(.Property,&quot;LatchingSwitches&quot;,0) == 0' swap='0' >
															<flowline >
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push1' />
																	<argument exp='&quot;Latching&quot;' />
																	<argument exp='.Value' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push2' />
																	<argument exp='&quot;Latching&quot;' />
																	<argument exp='.Value' />
																</command>
															</flowline>
															<flowline >
																<command class_type='sim' title='Simulation' macro='Component.Property.SetValue' >
																	<argument exp='LCD' />
																	<argument exp='&quot;DoubleDelay&quot;' />
																	<argument exp='1' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='LED_Array1' />
																	<argument exp='&quot;DistanceBetweenSwitches&quot;' />
																	<argument exp='55' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='LED_Array1' />
																	<argument exp='&quot;label_colour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='LED_Array2' />
																	<argument exp='&quot;DistanceBetweenSwitches&quot;' />
																	<argument exp='55' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='LED_Array2' />
																	<argument exp='&quot;label_colour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push1' />
																	<argument exp='&quot;DistanceBetweenSwitches&quot;' />
																	<argument exp='55' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push1' />
																	<argument exp='&quot;LabelColour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push2' />
																	<argument exp='&quot;DistanceBetweenSwitches&quot;' />
																	<argument exp='55' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='switch_array_push2' />
																	<argument exp='&quot;LabelColour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='Potentiometer1' />
																	<argument exp='&quot;LabelColour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
																<command class_type='sim' title='Built-in Function' macro='Component.Property.SetValue' >
																	<argument exp='Potentiometer2' />
																	<argument exp='&quot;LabelColour&quot;' />
																	<argument exp='0xFFFFFF' />
																</command>
															</flowline>
														</command>
													</flowline>
												</command>
											</flowline>
										</command>
									</flowline>
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Command' description='Use this method/macro to send a specific command to the LCD. Refer to the Matrix Multimedia EB006 datasheet for a list of supported instructions. For Non-Matrix LCD&apos;s refer to the manufacturers datasheet.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='instruction' type='u8' description='Send a defined command to the LCD Screen. See datasheet for supported commands.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='Command' >
							<argument exp='.instruction' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_RAMWrite' description='Modifies the internal memory of the LCD to allow for up to 8 customised characters to be created and stored in the device memory' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Index' type='u8' description='Values 0 to 7' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d0' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d1' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d2' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d3' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d4' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d5' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d6' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='d7' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='RAMWrite' >
							<argument exp='.Index' />
							<argument exp='.d0' />
							<argument exp='.d1' />
							<argument exp='.d2' />
							<argument exp='.d3' />
							<argument exp='.d4' />
							<argument exp='.d5' />
							<argument exp='.d6' />
							<argument exp='.d7' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_ReadAnalogAsInt' description='Reads one of the analogue components as an Integer value' statediag='0' >
						<return name='Return' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Channel' type='u8' description='0 = Light Sensor, 1 = Potentiometer' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
							<argument exp='&quot;ReadAsInt1&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.Channel = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
									<argument exp='&quot;ReadAsInt ch0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='Potentiometer2' macro='GetInt' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='.Channel = 1' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
									<argument exp='&quot;ReadAsInt ch1&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='Potentiometer1' macro='GetInt' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_PrintString' description='Breaks down a string of text and sends it to the LCD via the private RawSend(byte, mask) macro' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Text' type='T8*' description='Enter the text or variable to print to the LCD' isconst='0' isHidden='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
							<array size='20' />
						</param>
						<command class_type='call' title='Component Macro' component='LCD' macro='PrintString' >
							<argument exp='.Text' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_ClearLine' description='Clears a single line on the display and then moves the cursor to the start of the line to allow you to start populating the line with data.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Line' type='u8' description='The line to clear, zero being the first (top) line of the display' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='ClearLine' >
							<argument exp='.Line' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_GetSwitchState' description='Reads the state of a single switch
Returns: 0 = Switch not pressed, 1 = Switch pressed' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Bank' type='u8' description='0 = Top Bank of Switches, 1 = Bottom Bank of Switches' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Switch' type='u8' description='0 = SW0, 7 = SW7' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Bank' >
							<case >
								<flowline >
									<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Switch' >
										<case >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='0' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='1' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='2' />
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='3' />
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='4' />
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='5' />
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='6' />
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push1' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='7' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
							<case exp='1' >
								<flowline >
									<command class_type='switch' title='Switch' textarea='36,25,36,25' exp='.Switch' >
										<case >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='0' />
												</command>
											</flowline>
										</case>
										<case exp='1' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='1' />
												</command>
											</flowline>
										</case>
										<case exp='2' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='2' />
												</command>
											</flowline>
										</case>
										<case exp='3' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='3' />
												</command>
											</flowline>
										</case>
										<case exp='4' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='4' />
												</command>
											</flowline>
										</case>
										<case exp='5' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='5' />
												</command>
											</flowline>
										</case>
										<case exp='6' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='6' />
												</command>
											</flowline>
										</case>
										<case exp='7' >
											<flowline >
												<command class_type='call' title='Call Component Macro' component='switch_array_push2' macro='ReadState' >
													<return exp='.Return' />
													<argument exp='7' />
												</command>
											</flowline>
										</case>
									</command>
								</flowline>
							</case>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='IO_ReadAnalogAsByte' description='Reads one of the analogue components as an byte value' statediag='0' >
						<return name='Return' type='u8' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='Channel' type='u8' description='0 = Light Sensor, 1 = Potentiometer' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='calculation' title='Calculation' >
							<exp exp='.Return = 0' />
						</command>
						<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
							<argument exp='&quot;ReadAsByte&quot;' />
						</command>
						<command class_type='decision' title='Decision' exp='.Channel = 0' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
									<argument exp='&quot;ReadAsByte ch0&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='Potentiometer2' macro='GetByte' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Decision' exp='.Channel = 1' swap='0' >
							<flowline >
								<command class_type='sim' title='Built-in Function' disable='1' macro='Debug.PrintLn' >
									<argument exp='&quot;ReadAsByte ch1&quot;' />
								</command>
								<command class_type='call' title='Call Component Macro' component='Potentiometer1' macro='GetByte' >
									<return exp='.Return' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_PrintAscii' description='Takes the ascii value for a character and prints the character' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='character' type='u8' description='Holds an ascii value.' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='PrintAscii' >
							<argument exp='.character' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Ev_Start' description='Broadcast to all components that simulation is starting' statediag='0' >
						<return name='Return' type='u32' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<local name='Var1' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<local name='Var2' type='s16' description='' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='User Macro' macro='Ev_Initialise' />
						<command class_type='comment' title='' comment='*************************************************
When exporting ensure Init property is set to No
Running sim will do this for you.

Init is used to auto connect combo to best guess port
pins and will run only once when initially added to 
a project.
*************************************************' textarea='12,0,12,0' />
						<command class_type='sim' title='Force init property to be No' macro='Component.Property.SetValue' >
							<argument exp='this' />
							<argument exp='&quot;Init&quot;' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='User Macro' disable='1' macro='IO_SetPort' >
							<argument exp='1' />
							<argument exp='5' />
						</command>
						<command class_type='call' title='User Macro' disable='1' macro='IO_GetSwitchState' >
							<return exp='.Var1' />
							<argument exp='0' />
							<argument exp='2' />
						</command>
						<command class_type='loop' title='Loop' disable='1' type='0' exp='1' for1='' for3='' >
							<flowline >
								<command class_type='call' title='User Macro' macro='IO_GetPort' >
									<return exp='.Var1' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='User Macro' macro='IO_SetPort' >
									<argument exp='1' />
									<argument exp='.Var1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='User Macro' disable='1' macro='IO_SetLEDState' >
							<argument exp='0' />
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='delay' title='Delay' exp='2' type='2' />
						<command class_type='call' title='User Macro' macro='LCD_Clear' />
						<command class_type='call' title='User Macro' macro='LCD_Cursor' >
							<argument exp='0' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_PrintString' >
							<argument exp='&quot;EBLOCKS2&quot;' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_Cursor' >
							<argument exp='0' />
							<argument exp='1' />
						</command>
						<command class_type='call' title='User Macro' macro='LCD_PrintString' >
							<argument exp='&quot;COMBO BOARD&quot;' />
						</command>
						<command class_type='loop' title='Loop' disable='1' type='2' forvar='Counter' exp='11' for1='' for3='' >
							<flowline >
								<command class_type='call' title='Call Macro' macro='Seg_Display' >
									<argument exp='Counter' />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
						<command class_type='delay' title='Delay' exp='2' type='2' />
						<command class_type='call' title='User Macro' macro='LCD_Clear' />
						<command class_type='loop' title='Loop' type='0' exp='1' for1='' for3='' >
							<flowline >
								<command class_type='call' title='User Macro' macro='IO_ReadAnalogAsByte' >
									<return exp='.Var1' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_Cursor' >
									<argument exp='0' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;LDR = &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintNumber' >
									<argument exp='.Var1' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;   &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='IO_ReadAnalogAsInt' >
									<return exp='.Var2' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_Cursor' >
									<argument exp='0' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;POT = &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintNumber' >
									<argument exp='.Var2' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;   &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='Seg_Display' >
									<argument exp='.Var2' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_Cursor' >
									<argument exp='0' />
									<argument exp='2' />
								</command>
								<command class_type='call' title='User Macro' macro='IO_GetPort' >
									<return exp='.Var1' />
									<argument exp='0' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;SW Bank 0 = &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintNumber' >
									<argument exp='.Var1' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;   &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_Cursor' >
									<argument exp='0' />
									<argument exp='3' />
								</command>
								<command class_type='call' title='User Macro' macro='IO_GetPort' >
									<return exp='.Var2' />
									<argument exp='1' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;SW Bank 1 = &quot;' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintNumber' >
									<argument exp='.Var2' />
								</command>
								<command class_type='call' title='User Macro' macro='LCD_PrintString' >
									<argument exp='&quot;   &quot;' />
								</command>
								<command class_type='delay' title='Delay' exp='100' type='1' />
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_PrintNumber' description='Based on v5 macro, will allow you to print a number. This is limited to a signed-INT, -32768 to 32767' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='Number' type='s16' description='Enter the number or variable to print to the LCD' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='PrintNumber' >
							<argument exp='.Number' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_RawSend' description='Sends data to the LCD display' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<param name='data' type='u8' description='The data byte to send to the LCD' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<param name='type' type='b1' description='A boolean to indicate command type: true to write data, false to write a command' isconst='0' isHidden='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='RawSend' >
							<argument exp='.data' />
							<argument exp='.type' />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='LCD_Clear' description='Clears the entire contents of the display.' statediag='0' >
						<return name='Return' type='v0' description='' isconst='0' isHidden='0' isinit='0' usrinit='' setinit='' />
						<command class_type='call' title='Component Macro' component='LCD' macro='Clear' />
					</flowline>
				</macro>
			</macros>
			<component class_type='group' codename='group1' panelId='-1' x='-0.88797' y='11.6696' z='1.18359' 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='1' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='0' >
				<resources />
				<properties />
				<values />
				<events />
				<apis />
				<variables />
				<macros />
				<component class_type='GdiShape' codename='GdiShape1' panelId='-1' x='0.88797' y='-11.6696' z='-1.68359' xsz='231.25' ysz='134.375' zsz='0' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='0' solid='1' layer='1' poslock='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='nType' data='  0' />
						<value target='iSubStyle' data='0' />
						<value target='iRounding' data='25' />
						<value target='colFill' data='3552822' />
						<value target='colFillGradient' data='7895160' />
						<value target='nGradientStyle' data='  0' />
						<value target='nFillOpacity' data='1.0' />
						<value target='nStyle' data='0' />
						<value target='bFixedScale' data='0' />
						<value target='fThickness' data='1' />
						<value target='iOutlineSize' data='1' />
						<value target='colOutline' data='7895160' />
						<value target='colOutlineGradient' data='16777215' />
						<value target='nOutlineStyle' data='  3' />
						<value target='nOutlineOpacity' data='1.0' />
						<value target='bTooltipEnable' data='0' />
						<value target='sTooltipText' data='' />
						<value target='sTooltipDesc' data='' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='71f200a6-153f-4984-8928-850523305e02' vmin='2' vmaj='1' codename='led_7seg_quad' panelId='-1' x='-187.571' y='-39.6199' z='-0.183589' xsz='22.6969' ysz='19.4552' zsz='10.0005' 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='Display_Type' data='000' />
						<value target='common_type' data='001' />
						<value target='ShowSegLabels' data='0' />
						<value target='Common_Pin0' data='$PORTA.0' />
						<value target='Common_Pin1' data='$PORTA.1' />
						<value target='Common_Pin2' data='$PORTA.2' />
						<value target='Common_Pin3' data='$PORTA.3' />
						<value target='Pin0' data='$PORTD.0' />
						<value target='Pin1' data='$PORTD.1' />
						<value target='Pin2' data='$PORTD.2' />
						<value target='Pin3' data='$PORTD.3' />
						<value target='Pin4' data='$PORTD.4' />
						<value target='Pin5' data='$PORTD.5' />
						<value target='Pin6' data='$PORTD.6' />
						<value target='Pin7' data='$PORTD.7' />
						<value target='FGColor' data='255' />
						<value target='BGColor' data='5921370' />
						<value target='LabelColor' data='16777215' />
						<value target='LEDAutoOffColor' data='63' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText1' panelId='-1' x='-282.662' y='-78.2758' z='2.41822' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='SEG0' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText2' panelId='-1' x='-221.443' y='-78.2758' z='3.35576' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='SEG1' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText3' panelId='-1' x='-157.536' y='-78.2758' z='3.04325' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='SEG2' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText4' panelId='-1' x='-95.0631' y='-78.2758' z='3.66828' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='SEG3' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText5' panelId='-1' x='311.386' y='76.5663' z='5.61022' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='An1' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText6' panelId='-1' x='277.633' y='-203.67' z='2.79323' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='LDR' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText7' panelId='-1' x='311.386' y='-203.67' z='3.66828' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='An0' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText8' panelId='-1' x='277.633' y='76.5663' z='5.29771' xsz='19.5322' ysz='15.6258' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='POT' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='1' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='a2b40602-5421-4e2f-ba82-96db1be51d69' vmin='1' vmaj='1' codename='LCD' panelId='-1' x='169.753' y='-13.3042' z='-0.683589' xsz='28.9946' ysz='28.9946' zsz='31.2516' 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='Pin_Data_0' data='$PORTD.0' />
						<value target='Pin_Data_1' data='$PORTD.1' />
						<value target='Pin_Data_2' data='$PORTD.2' />
						<value target='Pin_Data_3' data='$PORTD.3' />
						<value target='Pin_RS' data='$PORTD.4' />
						<value target='Pin_E' data='$PORTD.5' />
						<value target='LCD::ctrl_lcd::Base_GLCD1::ComponentLabel' data='001' />
						<value target='LCD::ctrl_lcd::Base_GLCD1::GdiText1::sText' data='LCD' />
						<value target='LCD::ctrl_lcd::Base_GLCD1::GdiText1::dScale' data='1.5' />
						<value target='LCD::ctrl_lcd::Base_GLCD1::foreground_colour' data='0' />
						<value target='LCD::ctrl_lcd::TextBg' data='14803425' />
						<value target='LCD::ctrl_lcd::Base_GLCD1::background_colour' data='16777215' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='cd8da0fe-80cf-4532-bb50-69f0d1730e70' vmin='0' vmaj='14' codename='switch_array_push1' panelId='-1' x='186.888' y='120.714' z='-0.183589' xsz='31.2516' ysz='31.2516' zsz='31.2516' 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='count' data='008' />
						<value target='AppDevDetected' data='0' />
						<value target='SimulationOnly' data='0' />
						<value target='InputMode' data='11' />
						<value target='PortByte' data='$PORTA' />
						<value target='pin0' data='$PORTA.0' />
						<value target='pin1' data='$PORTA.1' />
						<value target='pin2' data='$PORTA.2' />
						<value target='pin3' data='$PORTA.3' />
						<value target='pin4' data='$PORTA.4' />
						<value target='pin5' data='$PORTA.5' />
						<value target='pin6' data='$PORTA.6' />
						<value target='pin7' data='$PORTA.7' />
						<value target='Polarity' data='000' />
						<value target='debounce' data='0' />
						<value target='Latching' data='000' />
						<value target='Label' data='001' />
						<value target='Switch_Push1::GdiText2::sText' data='' />
						<value target='Switch_Push2::GdiText2::sText' data='' />
						<value target='Switch_Push3::GdiText2::sText' data='' />
						<value target='Switch_Push4::GdiText2::sText' data='' />
						<value target='Switch_Push5::GdiText2::sText' data='' />
						<value target='Switch_Push6::GdiText2::sText' data='' />
						<value target='Switch_Push7::GdiText2::sText' data='' />
						<value target='Switch_Push8::GdiText2::sText' data='' />
						<value target='SwitchLayout' data='000' />
						<value target='DistanceBetweenSwitches' data='55' />
						<value target='Style' data='000' />
						<value target='nType' data='002' />
						<value target='sLabelOn' data='On' />
						<value target='sLabelOff' data='Off' />
						<value target='LabelColour' data='16777215' />
						<value target='ShowConnectionLabel' data='1' />
						<value target='ShowPinValue' data='0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='b07ae733-c144-4558-979a-be737044519c' vmin='0' vmaj='1' codename='LED_Array2' panelId='-1' x='186.202' y='-127.67' z='-0.183589' xsz='31.2516' ysz='31.2516' zsz='31.2516' 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='Count' data='008' />
						<value target='SimulationOnly' data='0' />
						<value target='port' data='1' />
						<value target='PortByte' data='$PORTB' />
						<value target='Pin0' data='$PORTD.0' />
						<value target='Pin1' data='$PORTD.1' />
						<value target='Pin2' data='$PORTD.2' />
						<value target='Pin3' data='$PORTD.3' />
						<value target='Pin4' data='$PORTD.4' />
						<value target='Pin5' data='$PORTD.5' />
						<value target='Pin6' data='$PORTD.6' />
						<value target='Pin7' data='$PORTD.7' />
						<value target='Polarity' data='001' />
						<value target='bitmask' data='0' />
						<value target='inv_bitmask' data='0' />
						<value target='Label' data='002' />
						<value target='LEDMono1::GdiText2::sText' data='LED_Array2' />
						<value target='LEDMono2::GdiText2::sText' data='' />
						<value target='LEDMono3::GdiText2::sText' data='' />
						<value target='LEDMono4::GdiText2::sText' data='' />
						<value target='LEDMono5::GdiText2::sText' data='' />
						<value target='LEDMono6::GdiText2::sText' data='' />
						<value target='LEDMono7::GdiText2::sText' data='' />
						<value target='LEDMono8::GdiText2::sText' data='' />
						<value target='SwitchLayout' data='000' />
						<value target='DistanceBetweenLEDs' data='55' />
						<value target='Style' data='001' />
						<value target='Shape' data='001' />
						<value target='Colour' data='001' />
						<value target='LabelColour' data='9868950' />
						<value target='ShowConnectionLabel' data='0' />
						<value target='ShowPinValue' data='0' />
						<value target='AutoOffColour' data='1' />
						<value target='OnColour' data='255' />
						<value target='OffColour' data='42' />
						<value target='Enabled' data='1' />
						<value target='AppDevDetected' data='0' />
						<value target='Product' data='PIC' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='cd8da0fe-80cf-4532-bb50-69f0d1730e70' vmin='0' vmaj='14' codename='switch_array_push2' panelId='-1' x='186.888' y='-157.67' z='0.066411' xsz='31.2516' ysz='31.2516' zsz='31.2516' 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='count' data='008' />
						<value target='AppDevDetected' data='0' />
						<value target='SimulationOnly' data='0' />
						<value target='InputMode' data='11' />
						<value target='PortByte' data='$PORTB' />
						<value target='pin0' data='$PORTD.0' />
						<value target='pin1' data='$PORTD.1' />
						<value target='pin2' data='$PORTD.2' />
						<value target='pin3' data='$PORTD.3' />
						<value target='pin4' data='$PORTD.4' />
						<value target='pin5' data='$PORTD.5' />
						<value target='pin6' data='$PORTD.6' />
						<value target='pin7' data='$PORTD.7' />
						<value target='Polarity' data='000' />
						<value target='debounce' data='0' />
						<value target='Latching' data='000' />
						<value target='Label' data='001' />
						<value target='Switch_Push1::GdiText2::sText' data='' />
						<value target='Switch_Push2::GdiText2::sText' data='' />
						<value target='Switch_Push3::GdiText2::sText' data='' />
						<value target='Switch_Push4::GdiText2::sText' data='' />
						<value target='Switch_Push5::GdiText2::sText' data='' />
						<value target='Switch_Push6::GdiText2::sText' data='' />
						<value target='Switch_Push7::GdiText2::sText' data='' />
						<value target='Switch_Push8::GdiText2::sText' data='' />
						<value target='SwitchLayout' data='000' />
						<value target='DistanceBetweenSwitches' data='55' />
						<value target='Style' data='000' />
						<value target='nType' data='002' />
						<value target='sLabelOn' data='On' />
						<value target='sLabelOff' data='Off' />
						<value target='LabelColour' data='16777215' />
						<value target='ShowConnectionLabel' data='1' />
						<value target='ShowPinValue' data='0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='b07ae733-c144-4558-979a-be737044519c' vmin='0' vmaj='1' codename='LED_Array1' panelId='-1' x='186.888' y='155.033' z='-0.183589' xsz='31.2516' ysz='31.2516' zsz='31.2516' 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='Count' data='008' />
						<value target='SimulationOnly' data='0' />
						<value target='port' data='1' />
						<value target='PortByte' data='$PORTA' />
						<value target='Pin0' data='$PORTA.0' />
						<value target='Pin1' data='$PORTA.1' />
						<value target='Pin2' data='$PORTA.2' />
						<value target='Pin3' data='$PORTA.3' />
						<value target='Pin4' data='$PORTA.4' />
						<value target='Pin5' data='$PORTA.5' />
						<value target='Pin6' data='$PORTA.6' />
						<value target='Pin7' data='$PORTA.7' />
						<value target='Polarity' data='001' />
						<value target='bitmask' data='0' />
						<value target='inv_bitmask' data='0' />
						<value target='Label' data='002' />
						<value target='LEDMono1::GdiText2::sText' data='LED_Array1' />
						<value target='LEDMono2::GdiText2::sText' data='' />
						<value target='LEDMono3::GdiText2::sText' data='' />
						<value target='LEDMono4::GdiText2::sText' data='' />
						<value target='LEDMono5::GdiText2::sText' data='' />
						<value target='LEDMono6::GdiText2::sText' data='' />
						<value target='LEDMono7::GdiText2::sText' data='' />
						<value target='LEDMono8::GdiText2::sText' data='' />
						<value target='SwitchLayout' data='000' />
						<value target='DistanceBetweenLEDs' data='55' />
						<value target='Style' data='001' />
						<value target='Shape' data='001' />
						<value target='Colour' data='001' />
						<value target='LabelColour' data='9868950' />
						<value target='ShowConnectionLabel' data='0' />
						<value target='ShowPinValue' data='0' />
						<value target='AutoOffColour' data='1' />
						<value target='OnColour' data='255' />
						<value target='OffColour' data='42' />
						<value target='Enabled' data='1' />
						<value target='AppDevDetected' data='0' />
						<value target='Product' data='PIC' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText9' panelId='-1' x='-188.129' y='51.533' z='-0.683589' xsz='9.37946' ysz='21.9864' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='BL0114' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='0' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText10' panelId='-1' x='-188.728' y='36.3547' z='-0.433589' xsz='9.37946' ysz='21.9864' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='Combo Board' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='0.8' />
						<value target='bScaleWidth' data='0' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText11' panelId='-1' x='-216.134' y='19.3997' z='0.316411' xsz='9.37946' ysz='21.9864' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='E' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.3' />
						<value target='bScaleWidth' data='0' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='1' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText12' panelId='-1' x='-189.813' y='17.924' z='0.0664107' xsz='9.37946' ysz='21.9864' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='Blocks' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.00000' />
						<value target='bScaleWidth' data='0' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='0' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='GdiText' codename='GdiText13' panelId='-1' x='-163.43' y='19.3734' z='0.316411' xsz='9.37946' ysz='21.9864' zsz='0' 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='8' ancTop='0' ancBottom='0' ancLeft='0' ancRight='0' ancMinX='0' ancMinY='0' comp2dType='46' >
					<resources />
					<properties />
					<values >
						<value target='sText' data='2' />
						<value target='bWordWrap' data='0' />
						<value target='nHorizontalAlignment' data='2' />
						<value target='nVerticalAlignment' data='2' />
						<value target='nAngle' data='0' />
						<value target='fntFamily' data='Calibri' />
						<value target='bFixedScale' data='0' />
						<value target='dScale' data='1.3' />
						<value target='bScaleWidth' data='0' />
						<value target='iFontSize' data='12' />
						<value target='bBold' data='1' />
						<value target='bItalic' data='0' />
						<value target='bUnderline' data='0' />
						<value target='bStrikethrough' data='0' />
						<value target='colTextColour' data='16777215' />
						<value target='colTextGradient' data='9868950' />
						<value target='nGradient' data='0' />
						<value target='nTextOpacity' data='1.0' />
						<value target='colBackgroundColour' data='-1' />
						<value target='colBackgroundGradient' data='-1' />
						<value target='nBackgroundGradient' data='0' />
						<value target='nBackgroundOpacity' data='1.0' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='11ca2f38-de81-4812-9338-4b5a7a89a658' vmin='0' vmaj='1' codename='Potentiometer1' panelId='-1' x='292.888' y='134.976' z='-0.230858' xsz='18' ysz='18' zsz='17.0273' 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='adc_base1::channel' data='1' />
						<value target='adc_base1::vrefvol' data='500' />
						<value target='adc_base1::vrefop' data='000' />
						<value target='adc_base1::convspd' data='049' />
						<value target='adc_base1::actime' data='40' />
						<value target='adc_base1::bits' data='10' />
						<value target='VrefForCalculations' data='' />
						<value target='BitDepth' data='10' />
						<value target='SetValue' data='5.000050' />
						<value target='RetainValue' data='1' />
						<value target='ModifiedConnection' data='An 1' />
						<value target='ComponentLabel' data='001' />
						<value target='LabelColour' data='16777215' />
						<value target='GdiText2::sText' data='' />
						<value target='ConnectionLabels' data='0' />
						<value target='ShowPinValue' data='0' />
						<value target='Style' data='0' />
						<value target='Gauge1::brFill' data='288230376147764163' />
						<value target='Gauge1::colFrameOutline' data='9868950' />
						<value target='Gauge1::brFrameFill' data='261490253360251843' />
						<value target='Gauge1::colPointerOutline' data='9868950' />
						<value target='Gauge1::brPointerFill' data='261490253360251843' />
						<value target='Gauge1::colText' data='16777215' />
						<value target='Gauge1::colTickMarkOutline' data='16777215' />
						<value target='Gauge1::brTickMarkFill' data='12829635' />
						<value target='Gauge1::colCapOutline' data='12829635' />
						<value target='Gauge1::brCapFill' data='261490253360251843' />
						<value target='Gauge1::sMainImage' data='' />
						<value target='Gauge1::sCapImage' data='' />
						<value target='GdiGauge1::nPointerKnob' data='  1' />
						<value target='GdiSwitch1::nType' data='  2' />
						<value target='UpperBoundValue' data='5.000050' />
						<value target='adc_base1::ScopeTraces' data='0' />
						<value target='StoredColourStyle' data='0' />
						<value target='FlowcodeType' data='0' />
						<value target='Enabled' data='1' />
						<value target='Product' data='PIC' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
				<component class_type='ref' guid='11ca2f38-de81-4812-9338-4b5a7a89a658' vmin='0' vmaj='1' codename='Potentiometer2' panelId='-1' x='292.888' y='-149.67' z='-0.0598648' xsz='18' ysz='18' zsz='18' 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='adc_base1::channel' data='0' />
						<value target='adc_base1::vrefvol' data='500' />
						<value target='adc_base1::vrefop' data='000' />
						<value target='adc_base1::convspd' data='049' />
						<value target='adc_base1::actime' data='40' />
						<value target='adc_base1::bits' data='10' />
						<value target='VrefForCalculations' data='' />
						<value target='BitDepth' data='10' />
						<value target='SetValue' data='5.000050' />
						<value target='RetainValue' data='1' />
						<value target='ModifiedConnection' data='An 0' />
						<value target='ComponentLabel' data='001' />
						<value target='LabelColour' data='16777215' />
						<value target='GdiText2::sText' data='' />
						<value target='ConnectionLabels' data='0' />
						<value target='ShowPinValue' data='0' />
						<value target='Style' data='0' />
						<value target='Gauge1::brFill' data='288230376147764163' />
						<value target='Gauge1::colFrameOutline' data='9868950' />
						<value target='Gauge1::brFrameFill' data='261490253360251843' />
						<value target='Gauge1::colPointerOutline' data='9868950' />
						<value target='Gauge1::brPointerFill' data='261490253360251843' />
						<value target='Gauge1::colText' data='16777215' />
						<value target='Gauge1::colTickMarkOutline' data='16777215' />
						<value target='Gauge1::brTickMarkFill' data='12829635' />
						<value target='Gauge1::colCapOutline' data='12829635' />
						<value target='Gauge1::brCapFill' data='261490253360251843' />
						<value target='Gauge1::sMainImage' data='' />
						<value target='Gauge1::sCapImage' data='' />
						<value target='GdiGauge1::nPointerKnob' data='  1' />
						<value target='GdiSwitch1::nType' data='  2' />
						<value target='UpperBoundValue' data='5.000050' />
						<value target='adc_base1::ScopeTraces' data='0' />
						<value target='StoredColourStyle' data='0' />
						<value target='FlowcodeType' data='0' />
						<value target='Enabled' data='1' />
						<value target='Product' data='PIC' />
					</values>
					<events />
					<apis />
					<variables />
					<macros />
				</component>
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='256' >
		<background rgb='8388608' img='' style='0' />
		<camera xe='-30.093' ye='-17.0965' ze='1461.51' xt='-30.093' yt='-17.0965' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<viewport dx='978' dy='576' zoom='80.9697' fix_topleft='0' />
		<page x='1000' y='1000' show='0' rgb='7360576' />
		<winpos ID='7005' RectRecentFloat='2253,-792,3259,-118' RectRecentDocked='1082,141,1548,1013' 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='8398592' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='152.31' ye='476.956' ze='1373.14' xt='152.31' yt='476.956' zt='-5.15066' 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='0,425,654,1002' RectRecentDocked='0,0,230,872' RecentFrameAlignment='16384' RecentRowIndex='0' IsFloating='0' MRUWidth='32767' PinState='0' IsMaximized='0' IsVisible='0' />
	</panel3d>
	<panels2d count='0' />
	<layout >
		<view type='0' name='Seg_ShowSegments' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Seg_Display' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IO_ReadAnalogAsByte' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IO_ReadAnalogAsInt' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Initialise' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='2048' flags='0' />
		<view type='0' name='IO_SetPort' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IO_SetLEDState' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IO_GetSwitchState' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='IO_GetPort' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Seg_ShowDigit' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Start' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_ScrollDisplay' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_RemapCharacter' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_RawSend' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_RAMWrite' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_PrintString' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_PrintNumber' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_PrintAscii' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Cursor' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_ClearLine' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Command' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_Clear' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_PrintFormattedNumber' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='239' flags='0' />
		<view type='0' name='SetLCDNumber' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='LCD_PrintFloat' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Start' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_Stop' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Ev_PropertyEx' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='90' scrollx='0' scrolly='369' flags='0' />
		<view type='0' name='Ev_AutoIdEBlock' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAACgUAAGMDAAA' zoom='100' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
