<root>
<document scada='0' schema='102' license='1,Dev User,HVZ3ET' title='' description='' fcversion='524802' target='ARM.F0.32F030RC' >
	<config data='!0,1!20,2!40,2!60,5!80,2!a0,1!c0,1!e0,1%0,1%20,2%40,2%60,5%80,2%a0,1%c0,1%e0,1' clkspd='32000000' simspd='1' usewdt='0' constif='0' Use3V3='0' />
	<plugins >
		<dll_models enabled='1' />
	</plugins>
	<supplement use='0' head='#include &quot;system.h&quot;
' 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='32' />
			<data name='CalculatedCommsDelay' value='32' />
			<data name='AnalogEB2PrescaleValue' value='2' />
			<data name='DigitalEB2SampleRate' value='100000' />
		</ICD>
		<pins >
			<digital A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
			<analog A='0' B='0' C='0' D='0' E='0' F='0' G='0' H='0' I='0' J='0' K='0' L='0' M='0' N='0' O='0' P='0' Q='0' R='0' S='0' T='0' U='0' V='0' W='0' X='0' Y='0' Z='0' />
		</pins>
	</ghost>
	<components >
		<settings autoimg='1' center='1' unitscale='0' fixedscale='0' fixedx='1' fixedy='1' fixedz='1' headcode='0' />
		<definition guid='22ad68c2-82eb-431b-a0b7-0fc7170abd40' vstate='40' vmin='0' vmaj='1' srcleaf='' visiblename='' description='' category='Misc' catenable='1' author='' manuname='' manucode='' sysinfo='0' keywords='' dynamic='1' scadaCompatible='0' embeddedCompatible='1' iconpath='' />
		<component class_type='root' codename='panel' x='0' y='0' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='0' poslock='0' >
			<resources />
			<properties />
			<values />
			<events />
			<apis />
			<variables >
				<variable public='0' >
					<def class_type='variable' name='GSM_CALL_SECONDI' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_DIAL_TIMER' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_DEBUG_STRING' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='128' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_STORENMB' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_SIM_TRAY' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='false' type='b1' description='' isconst='1' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='Interrupt_Timer' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_CALL_STATUS' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_QSS' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_RINGING' type='u32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='IDX' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_ANSWER' type='b1' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='COMMAND_TIME' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_STATUS' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='14' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='WD_CALL' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_NUMBER1' type='T8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='24' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_CALL_MINUTI' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
				</variable>
				<variable public='0' >
					<def class_type='variable' name='GSM_DATA_IN_UART' type='u8' description='' isconst='0' isinit='0' usrinit='&quot;&quot;' setinit='' >
						<array size='128' />
					</def>
				</variable>
				<variable public='0' >
					<def class_type='variable' name='true' type='b1' description='' isconst='1' isinit='1' usrinit='1' setinit='1' />
				</variable>
			</variables>
			<macros >
				<macro >
					<flowline name='UART_RX' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='rx' type='u8' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='Receive' >
							<return exp='.rx' />
							<argument exp='0' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='CircularBuffer1' macro='PutByte' >
							<argument exp='.rx' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='INT_TIMER' macro='ResetCounter' />
					</flowline>
				</macro>
				<macro >
					<flowline name='GSM_INIT' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='GSM_TIMER' type='u32' description='' isconst='0' isinit='0' usrinit='0' setinit='' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMTIMER' macro='GetCountMilliseconds' >
							<return exp='.GSM_TIMER' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='.GSM_TIMER &lt; 6000' >
							<flowline >
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMTIMER' macro='GetCountMilliseconds' >
									<return exp='.GSM_TIMER' />
								</command>
							</flowline>
						</command>
						<command class_type='input' title='Input' cmdcolor='4664832' cmdcolor_sec='4470784' mode='1' port='135266305' mask='128' exp='GSM_STATUS[0]' />
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[0] = 1' swap='0' >
							<flowline >
								<command class_type='call' title='Disabilito La funzione ECO del modulo Telit' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;ATE0\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='I2S GSM MODULE' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#DVI=1,2,1\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='I2S 16kHZ 24BIT ' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#DVIEXT=1,1,3,1,0\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='TURN ON LED GSM MODULE' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#GPIO=8,0,2\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='CHECK 3G CAPABILITY' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT+CREG=2\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='I2S GSM MODULE' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#TSVOL=255,1,1\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='+CLIP' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT+CLIP=1\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='PIN7 SIM PRESENCE OLD SIM TRAY' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#SIMINCFG=7,1\r&quot;' />
								</command>
								<command class_type='call' title='PIN7 SIM PRESENCE NEW SIM TRAY' disable='1' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#SIMINCFG=7,0\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='SIM PRESENCE ON' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#SIMDET=2\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='CLASS PHONE' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT+FCLASS=8\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='Chek gsm module status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#PSEL=2\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='Sim Query Status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#QSS=0\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='50' type='1' />
								<command class_type='call' title='Enanched call status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT#DIALMODE=0\r&quot;' />
								</command>
							</flowline>
							<flowline />
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='GSM_ANSWER' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='IDX1' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='IDX' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='GSM_STATUS[0]= POWER STATUS 1-&gt;ON 0-&gt;OFF
GSM_STATUS[1]= SIM PRESENCE 1-&gt;SIM IN 0-&gt; NO SIM
GSM_STATUS[2]= GSM STATUS  0-&gt; ACTIVE 3-&gt;RING 4-&gt;CALL ACTIVE
GSM_STATUS[3]= SIGNAL LEVEL 0-4
GSM_STATUS[4]= NETWORK REGISTER 1-&gt;REGISTER 0-&gt;SEARCH
GSM_STATUS[5]= COMANDO CHIAMATA 1-&gt; RISPSOTA 2-&gt; TERMINA
GSM_STATUS[6]= ERROR CODE
GSM_STATUS[7]= CMD TIMER
GSM_STATUS[8]= 2G-3G TECNOLOGY
GSM_STATUS[9]= RESERVED
10 = SIM DET
30 = QSS
50 = CPAS
70 = CREG
90 = CSQ
110= CLIP
130 = CPU FREQ
150= UART
170 = STRING

' textarea='76,300,76,300' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='135266305' mask='16' exp='1' />
						<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='.IDX = 0' />
						</command>
						<command class_type='loop' title='While Data in buffer' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='(CircularBuffer1 :: GetNumberBytes ()) &amp;&amp; .IDX &lt; 127' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='CircularBuffer1' macro='GetByte' >
									<return exp='GSM_DATA_IN_UART[.IDX]' />
								</command>
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='GSM_DEBUG_STRING[.IDX] = GSM_DATA_IN_UART[.IDX]' />
									<exp exp='.IDX = .IDX + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='calculation' title='Terminate String' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='GSM_DEBUG_STRING[.IDX] = 13' />
							<exp exp='GSM_DEBUG_STRING[.IDX + 1] = 0' />
						</command>
						<command class_type='output' title='Output' cmdcolor='16762795' cmdcolor_sec='13879979' mode='1' port='135266305' mask='16' exp='0' />
						<command class_type='decision' title='Sim Check' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_DATA_IN_UART[2] = &apos;#&apos; &amp;&amp; GSM_DATA_IN_UART[3] = &apos;S&apos;)' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[4] = &apos;I&apos;' swap='0' >
									<flowline >
										<command class_type='switch' title='1=Sim In 0= Sim Out' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[13]' >
											<case >
												<flowline />
											</case>
											<case exp='&apos;0&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_SIM_TRAY = 0' />
														<exp exp='GSM_STATUS[3] = 0 //Network Level Reset' />
														<exp exp='GSM_STATUS[4] = 0 //Network Register Reset' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;1&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_SIM_TRAY = 1 //Update Sim Presence' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Sim Check' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_DATA_IN_UART[2] = &apos;#&apos; &amp;&amp; GSM_DATA_IN_UART[3] = &apos;Q&apos;)' swap='0' >
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[4] = &apos;S&apos;' swap='0' >
									<flowline >
										<command class_type='switch' title='1=Sim In 0= Sim Out' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[10]' >
											<case >
												<flowline />
											</case>
											<case exp='&apos;0&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_QSS = 0 //Sim Presence Reset' />
														<exp exp='GSM_STATUS[3] = 0 //Network Level Reset' />
														<exp exp='GSM_STATUS[4] = 0 //Network Register Reset' />
														<exp exp='' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;1&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_QSS = 1 //Update Sim Presence' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;3&apos;' >
												<flowline />
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='decision' title='Status, Network, Signal' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_DATA_IN_UART[2] = &apos;+&apos; &amp;&amp; GSM_DATA_IN_UART[3] = &apos;C&apos;)' swap='0' >
							<flowline >
								<command class_type='decision' title='Status Check' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_DATA_IN_UART[4] = &apos;P&apos; &amp;&amp; GSM_DATA_IN_UART[5] = &apos;A&apos;)' swap='0' >
									<flowline >
										<command class_type='switch' title='0=Standby, 3=Ring, 4 = Call Active' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[9]' >
											<case >
												<flowline />
											</case>
											<case exp='&apos;0&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[2] = 0' />
														<exp exp='GSM_STORENMB = 0' />
													</command>
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_CALL_STATUS = 1' swap='0' >
														<flowline >
															<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='60' type='1' />
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[7] = 1' />
																<exp exp='GSM_RINGING = 0' />
																<exp exp='GSM_DIAL_TIMER = 0' />
															</command>
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_CALL_STATUS = 0' />
																<exp exp='GSM_CALL_MINUTI = 0' />
																<exp exp='GSM_CALL_SECONDI = 0' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</case>
											<case exp='&apos;3&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[2] = 3' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;4&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[2] = 4' />
														<exp exp='' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Network Status' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[4] = &apos;R&apos;' swap='0' >
									<flowline >
										<command class_type='switch' title='0= Non Registered, 1= Home Network, 5=Roaming' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[11]' >
											<case >
												<flowline />
											</case>
											<case exp='&apos;0&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[4] = 0' />
														<exp exp='' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;1&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[4] = 1' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;5&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[4] = 1' />
													</command>
												</flowline>
											</case>
										</command>
										<command class_type='switch' title='0= 2G, 2=3G' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[30]' >
											<case >
												<flowline />
											</case>
											<case exp='&apos;0&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[8] = 0' />
														<exp exp='' />
													</command>
												</flowline>
											</case>
											<case exp='&apos;2&apos;' >
												<flowline >
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='GSM_STATUS[8] = 2' />
														<exp exp='' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Check Signal strength ' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[4] = &apos;S&apos; &amp;&amp; GSM_DATA_IN_UART[10] = &apos;,&apos;' swap='0' >
									<flowline >
										<command class_type='switch' title='1 low, 2 Medium, 3 Strong' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[8]' >
											<case >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[8] = 2' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 1' />
															</command>
														</flowline>
														<flowline />
													</command>
												</flowline>
											</case>
											<case exp='&apos;1&apos;' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[8] = 2' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 2' />
															</command>
														</flowline>
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 1' />
															</command>
														</flowline>
													</command>
												</flowline>
											</case>
											<case exp='&apos;2&apos;' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[8] = 2' swap='0' >
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 3' />
																<exp exp='' />
															</command>
														</flowline>
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 2' />
															</command>
														</flowline>
													</command>
												</flowline>
											</case>
											<case exp='&apos;3&apos;' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[8] = 2' swap='0' >
														<flowline />
														<flowline >
															<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
																<exp exp='GSM_STATUS[3] = 3' />
															</command>
														</flowline>
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline />
								</command>
								<command class_type='decision' title='Signal strength very low' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[4] = &apos;S&apos; &amp;&amp; GSM_DATA_IN_UART[9] = &apos;,&apos;' swap='0' >
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_DATA_IN_UART[8] &gt;= 48 &amp;&amp; GSM_DATA_IN_UART[8] &lt;= 57' swap='0' >
											<flowline >
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='GSM_STATUS[3] = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
							<flowline />
						</command>
						<command class_type='calculation' title='Terminate String' cmdcolor='16760919' cmdcolor_sec='16760832' >
							<exp exp='GSM_DEBUG_STRING = &quot;&quot;' />
							<exp exp='.IDX1 = 0' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='2' exp='128' >
							<flowline >
								<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
									<exp exp='GSM_DATA_IN_UART[.IDX1] = 0' />
									<exp exp='.IDX = .IDX + 1' />
								</command>
							</flowline>
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='CircularBuffer1' macro='FlushBuffer' />
					</flowline>
				</macro>
				<macro >
					<flowline name='GSM_COMMAND' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='TIMER' type='u32' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='comment' title='' comment='GSM_STATUS[0]= POWER STATUS 1-&gt;ON 0-&gt;OFF
GSM_STATUS[1]= SIM PRESENCE 1-&gt;SIM IN 0-&gt; NO SIM
GSM_STATUS[2]= GSM STATUS  0-&gt; ACTIVE 3-&gt;RING 4-&gt;CALL ACTIVE
GSM_STATUS[3]= SIGNAL LEVEL 0-4
GSM_STATUS[4]= NETWORK REGISTER 1-&gt;REGISTER 0-&gt;SEARCH
GSM_STATUS[5]= COMANDO CHIAMATA 1-&gt; RISPSOTA 2-&gt; TERMINA
GSM_STATUS[6]= ERROR CODE
GSM_STATUS[7]= CMD TIMER
GSM_STATUS[8]= 2G-3G TECNOLOGY
GSM_STATUS[9]= RESERVED

' textarea='36,145,36,145' cmdcolor='10944511' cmdcolor_sec='11465458' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMCMD' macro='GetCountMilliseconds' >
							<return exp='.TIMER' />
						</command>
						<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_STATUS[0] = 1 &amp;&amp; GSM_STATUS[7] = 0 &amp;&amp; .TIMER &gt; 700)' swap='0' >
							<flowline >
								<command class_type='call' title='Chek gsm module status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
									<argument exp='&quot;AT+CPAS\r&quot;' />
								</command>
								<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[2] = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='COMMAND_TIME = COMMAND_TIME + 1' />
										</command>
										<command class_type='switch' title='Switch' textarea='36,25,36,25' cmdcolor='12615680' cmdcolor_sec='15376912' exp='COMMAND_TIME' >
											<case >
												<flowline />
											</case>
											<case exp='2' >
												<flowline >
													<command class_type='call' title='SIGNAL LEVEL QUALITY' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
														<argument exp='&quot;AT#SIMDET?\r&quot;' />
													</command>
													<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='150' type='1' />
													<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
												</flowline>
											</case>
											<case exp='4' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[4] = 1' swap='0' >
														<flowline >
															<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_SIM_TRAY = 1' swap='0' >
																<flowline >
																	<command class_type='call' title='SIGNAL LEVEL QUALITY' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
																		<argument exp='&quot;AT+CSQ\r&quot;' />
																	</command>
																	<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='150' type='1' />
																	<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
																</flowline>
																<flowline />
															</command>
														</flowline>
														<flowline >
															<command class_type='call' title='Chek gsm module status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
																<argument exp='&quot;AT+CPAS\r&quot;' />
															</command>
															<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
															<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
														</flowline>
													</command>
												</flowline>
											</case>
											<case exp='6' >
												<flowline >
													<command class_type='call' title='SIGNAL LEVEL QUALITY' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
														<argument exp='&quot;AT#SIMDET?\r&quot;' />
													</command>
													<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='150' type='1' />
													<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
												</flowline>
											</case>
											<case exp='8' >
												<flowline >
													<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_SIM_TRAY = 1' swap='0' >
														<flowline >
															<command class_type='call' title='Chek SIM presence' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
																<argument exp='&quot;AT#QSS?\r&quot;' />
															</command>
															<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
															<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
															<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_QSS = 1' swap='0' >
																<flowline >
																	<command class_type='call' title='Chek REGISTRATION' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
																		<argument exp='&quot;AT+CREG?\r&quot;' />
																	</command>
																	<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='165' type='1' />
																	<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
																</flowline>
																<flowline >
																	<command class_type='call' title='Chek gsm module status' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='SendString' >
																		<argument exp='&quot;AT+CPAS\r&quot;' />
																	</command>
																	<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='100' type='1' />
																	<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
																</flowline>
															</command>
														</flowline>
														<flowline />
													</command>
													<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
														<exp exp='COMMAND_TIME = 0' />
													</command>
												</flowline>
											</case>
										</command>
									</flowline>
									<flowline >
										<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='(GSM_STATUS[2] = 3 &amp;&amp; GSM_STORENMB = 0)' swap='0' >
											<flowline >
												<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='(GSM_STORENMB = 0 &amp;&amp; WD_CALL &lt;= 2)' >
													<flowline >
														<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='1' type='2' />
														<command class_type='delay' title='Delay' cmdcolor='12632064' cmdcolor_sec='16769676' exp='200' type='1' />
														<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_ANSWER' />
														<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
															<exp exp='WD_CALL = WD_CALL + 1' />
														</command>
													</flowline>
												</command>
												<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
													<exp exp='WD_CALL = 0' />
												</command>
											</flowline>
											<flowline />
										</command>
									</flowline>
								</command>
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMCMD' macro='ResetCounter' />
							</flowline>
							<flowline >
								<command class_type='decision' title='Decision' cmdcolor='12615680' cmdcolor_sec='15376912' exp='GSM_STATUS[0] = 0' swap='0' >
									<flowline >
										<command class_type='calculation' title='Calculation' cmdcolor='16760919' cmdcolor_sec='16760832' >
											<exp exp='GSM_STATUS[1] = 0' />
											<exp exp='GSM_STATUS[3] = 0' />
											<exp exp='GSM_STATUS[4] = 0' />
										</command>
									</flowline>
									<flowline />
								</command>
							</flowline>
						</command>
					</flowline>
				</macro>
				<macro >
					<flowline name='Main' description='' >
						<return name='Return' type='v0' description='' isconst='0' isinit='0' usrinit='' setinit='' />
						<local name='Y2_DISPLAY' type='u16' description='' isconst='0' isinit='1' usrinit='267' setinit='267' />
						<local name='Y1_DISPLAY' type='u16' description='' isconst='0' isinit='1' usrinit='257' setinit='257' />
						<local name='X2_DISPLAY' type='u16' description='' isconst='0' isinit='1' usrinit='165' setinit='165' />
						<local name='X1_DISPLAY' type='u16' description='' isconst='0' isinit='1' usrinit='160' setinit='160' />
						<local name='VOL_DRIVER' type='u8' description='' isconst='0' isinit='1' usrinit='6' setinit='6' />
						<local name='VOL_CODRIVER' type='u8' description='' isconst='0' isinit='1' usrinit='6' setinit='6' />
						<local name='C_RED' type='u8' description='' isconst='0' isinit='1' usrinit='255' setinit='255' />
						<local name='C_BLU' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<local name='C_GREEN' type='u8' description='' isconst='0' isinit='1' usrinit='0' setinit='0' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMCMD' macro='StartCounter' >
							<argument exp='1' />
						</command>
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='Init' />
						<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='RXINT2' call='UART_RX' >
							<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
								<option value='0' />
							</settings>
						</command>
						<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_INIT' />
						<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSMCMD' macro='ResetCounter' />
						<command class_type='call' title='Start the interrupt timer' cmdcolor='1879295' cmdcolor_sec='5751039' component='INT_TIMER' macro='StartCounter' >
							<argument exp='1' />
						</command>
						<command class_type='loop' title='Loop' cmdcolor='12615680' cmdcolor_sec='15376912' type='0' exp='1' >
							<flowline >
								<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='INT_TIMER' macro='GetCountSeconds' >
									<return exp='Interrupt_Timer' />
								</command>
								<command class_type='decision' title='If longer than 10 seconds since last interrupt' cmdcolor='12615680' cmdcolor_sec='15376912' exp='Interrupt_Timer &gt; 10' swap='0' >
									<flowline >
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='GSM_UART' macro='Init' />
										<command class_type='interrupt' title='Interrupt' cmdcolor='17151' cmdcolor_sec='355583' enable='1' name='RXINT2' call='UART_RX' >
											<settings timer='0' prescale='-1' postscale='-1' rollover='-1' bitcount='-1' trigger='3' maskhi='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' masklo='--------------------------------------------------------------------------------------------------------------------------------------------------------------------------8' >
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
												<option value='0' />
											</settings>
										</command>
										<command class_type='call' title='Call Component Macro' cmdcolor='1879295' cmdcolor_sec='5751039' component='INT_TIMER' macro='ResetCounter' />
									</flowline>
									<flowline />
								</command>
								<command class_type='call' title='Call Macro' cmdcolor='1879295' cmdcolor_sec='5751039' macro='GSM_COMMAND' />
							</flowline>
						</command>
					</flowline>
				</macro>
			</macros>
			<component class_type='ref' guid='c34f9b8a-a915-4f75-ad0c-87f2ad670a8a' vmin='5' vmaj='1' codename='CircularBuffer1' x='60' y='30' z='0' xsz='25' ysz='25' zsz='25' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='BufferSize' data='128' />
					<value target='StorageType' data='000' />
					<value target='MemType' data='000' />
					<value target='RETURN' data='000' />
					<value target='Console' data='1' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a871ac1d-7a58-4474-a08b-c9c9017cd2ed' vmin='1' vmaj='1' codename='GSMTIMER' x='110' y='50' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='TimerDelay' data='50' />
					<value target='DecimalPoints' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='91b64b1d-b8b2-40f1-b073-e953a91fa234' vmin='2' vmaj='2' codename='GSM_UART' x='60' 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='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='UseUART' data='1' />
					<value target='CHANNEL' data='002' />
					<value target='UseTX' data='1' />
					<value target='TX' data='$PORTA.2' />
					<value target='OutputPins' data='000' />
					<value target='TXAlt' data='0' />
					<value target='UseRX' data='1' />
					<value target='RX' data='$PORTA.3' />
					<value target='InputPins' data='000' />
					<value target='RXAlt' data='0' />
					<value target='FLOWEN' data='000' />
					<value target='RTS' data='$PORTC.4' />
					<value target='CTS' data='$PORTC.5' />
					<value target='BAUD_LIST' data='004' />
					<value target='BAUD' data='9600' />
					<value target='DBITS' data='008' />
					<value target='RETURN' data='000' />
					<value target='ECHO' data='000' />
					<value target='INT' data='000' />
					<value target='ScopeTraces' data='1' />
					<value target='ConsoleData' data='1' />
					<value target='ConsoleFormat' data='000' />
					<value target='ConsoleColumns' data='64' />
					<value target='DataSource' data='000' />
					<value target='com_port' data='000' />
					<value target='Injector' data='' />
					<value target='REF' data='0' />
					<value target='TX_PORT' data='$PORTA.2' />
					<value target='TX_TRIS' data='$PORTA.2' />
					<value target='TX_PIN' data='2' />
					<value target='RX_PORT' data='$PORTA.3' />
					<value target='RX_TRIS' data='$PORTA.3' />
					<value target='RX_PIN' data='3' />
					<value target='CTS_PORT' data='$PORTC.5' />
					<value target='CTS_PIN' data='5' />
					<value target='CTS_TRIS' data='$PORTC.5' />
					<value target='RTS_PORT' data='$PORTC.4' />
					<value target='RTS_PIN' data='4' />
					<value target='RTS_TRIS' data='$PORTC.4' />
					<value target='REMAPPABLE' data='2' />
					<value target='OutputReg' data='000' />
					<value target='InputReg' data='' />
					<value target='TXRPNUM' data='' />
					<value target='TXBank' data='' />
					<value target='RXRPREG' data='' />
					<value target='RXBank' data='' />
					<value target='InjectorHandle' data='' />
					<value target='UARTName' data='USART2' />
					<value target='UARTClock' data='__HAL_RCC_USART2_CLK_ENABLE' />
					<value target='UartNumber' data='2' />
					<value target='TXBank2' data='' />
					<value target='RXBank2' data='' />
					<value target='TX_ALT' data='' />
					<value target='RX_ALT' data='' />
					<value target='BitDelay' data='104' />
					<value target='ParentName' data='panel' />
					<value target='CompName' data='' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a871ac1d-7a58-4474-a08b-c9c9017cd2ed' vmin='1' vmaj='1' codename='GSMCMD' x='110' y='20' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='TimerDelay' data='50' />
					<value target='DecimalPoints' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
			<component class_type='ref' guid='a871ac1d-7a58-4474-a08b-c9c9017cd2ed' vmin='1' vmaj='1' codename='INT_TIMER' x='110' y='-10' z='0' xsz='1' ysz='1' zsz='1' xang='0' yang='0' zang='0' xquat='0' yquat='0' zquat='0' wquat='1' visible='1' scadavisible='1' interactive='1' solid='1' layer='1' poslock='0' >
				<resources />
				<properties />
				<values >
					<value target='TimerDelay' data='50' />
					<value target='DecimalPoints' data='3' />
				</values>
				<events />
				<apis />
				<variables />
				<macros />
			</component>
		</component>
	</components>
	<scadaresourcelookup />
	<keymap />
	<panel2d shadows='0' lighting='2' brightness='0' >
		<background rgb='7292207' img='' style='0' />
		<camera xe='0.427031' ye='1.03473' ze='470.826' xt='0.427031' yt='1.03473' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
	</panel2d>
	<panel3d shadows='0' lighting='2' brightness='0' perspective='1' >
		<background rgb='8409120' img='' style='0' />
		<table rgb='7360576' img='' style='0' size='0' />
		<camera xe='0' ye='0' ze='603.05' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey0 xe='0' ye='0' ze='300' xt='0' yt='0' zt='0' xquat='0' yquat='0' zquat='0' wquat='1' />
		<camerakey1 xe='-3.67394e-14' ye='0' ze='-300' xt='0' yt='0' zt='0' xquat='0' yquat='1' zquat='0' wquat='6.12323e-17' />
		<camerakey2 xe='0' ye='-300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.707107' yquat='0' zquat='0' wquat='0.707107' />
		<camerakey3 xe='-3.67394e-14' ye='300' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-4.32978e-17' yquat='0.707107' zquat='0.707107' wquat='4.32978e-17' />
		<camerakey4 xe='-300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='0.5' zquat='0.5' wquat='0.5' />
		<camerakey5 xe='300' ye='-6.66134e-14' ze='6.66134e-14' xt='0' yt='0' zt='0' xquat='-0.5' yquat='-0.5' zquat='-0.5' wquat='0.5' />
		<camerakey6 xe='-173.205' ye='-173.205' ze='173.205' xt='0' yt='0' zt='0' xquat='-0.424708' yquat='0.17592' zquat='0.339851' wquat='0.820473' />
	</panel3d>
	<layout >
		<view type='0' name='UART_RX' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA-gIAABUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='Main' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA-gIAABUDAAA' zoom='75' scrollx='0' scrolly='457' flags='0' />
		<view type='0' name='GSM_ANSWER' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA-gIAABUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GSM_INIT' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA-gIAABUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
		<view type='0' name='GSM_COMMAND' mode='0' placement='LAAAAAAAAAABAAAA---------------------wUAAAAYAAAA-gIAABUDAAA' zoom='75' scrollx='0' scrolly='0' flags='0' />
	</layout>
</document>
</root>
