Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #11

Merged
merged 7 commits into from
Oct 24, 2023
Merged

Dev #11

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:GPI:02 '}
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174_00_09]^AI Standard Channel 1^Value'}
qRIXS_ROUGH_GPI_02 : FB_MKS275;

Check warning on line 11 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:GPI:11 '}
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[qRIXS_PNL1_E9_EL3174-0002]^AI Standard Channel 1^Value'}
qRIXS_ROUGH_GPI_11 : FB_MKS275;
Expand All @@ -22,12 +22,12 @@
// Gauges
//GCC
{attribute 'TcLinkTo' := ' .i_iPRESS_R := TIIB[EL3174-0002_01_23]^AI Standard Channel 1^Value;
.i_xHV_ON := TIIB[EL1124_01_22]^Channel 1^Input;

Check warning on line 25 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
.i_xDisc_Active := TIIB[EL1124_01_22]^Channel 2^Input;

Check warning on line 26 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
.q_xHV_DIS := TIIB[EL2624_01_18]^Channel 1^Output

Check warning on line 27 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
'}

Check warning on line 28 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs

Check warning on line 28 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'pytmc' := '

Check warning on line 29 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
pv: QRIXS:SC:GCC:01 '}

Check warning on line 30 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
qRIXS_SC_GCC_01: FB_MKS500;
//GPI
{attribute 'pytmc' := ' pv: QRIXS:SC:GPI:01 '}
Expand All @@ -37,14 +37,14 @@
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174-0002_01_23]^AI Standard Channel 3^Value'}
qRIXS_ROUGH_GPI_31 : FB_MKS275;


Check warning on line 40 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs

Check warning on line 40 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'pytmc' := '
pv: QRIXS:SSL:GCP:20

Check warning on line 42 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
io: io

Check warning on line 43 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Leading tabs

Leading tabs
'}
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174-0002_01_24]^AI Standard Channel 1^Value'}
qRIXS_SSL_GCP_20: FB_972;

Check warning on line 47 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'pytmc' := '
pv: QRIXS:SSL:GCP:30
io: io
Expand All @@ -52,7 +52,7 @@
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174-0002_01_24]^AI Standard Channel 2^Value'}
qRIXS_SSL_GCP_30: FB_972;

//MKS-275

Check warning on line 55 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:GPI:03 '}
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174-0002_02_13]^AI Standard Channel 2^Value'}
qRIXS_ROUGH_GPI_03 : FB_MKS275;
Expand Down Expand Up @@ -87,18 +87,28 @@
{attribute 'pytmc' := '
pv: QRIXS:SA:VRC:01
'}
qRIXS_SA_VRC_01 : FB_VRC_NO_FFO; // Is the Window valve NO

Check warning on line 90 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace

Check warning on line 91 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace

//// Connected to B950-310-WALL-W-DRL-02 (Mechanical Room )
{attribute 'pytmc' := ' pv: QRIXS:PRO:01 '}
{attribute 'TcLinkTo' := '.q_xMPStart := TIIB[EL2794_03_03]^Channel 1^Output;
.q_xBPStart := TIIB[EL2794_03_03]^Channel 2^Output;
.i_xMPStatus := TIIB[EL1088_03_01]^Channel 1^Input;
.i_xBPStatus := TIIB[EL1088_03_01]^Channel 2^Input;
.i_xWarning := TIIB[EL1088_03_01]^Channel 3^Input;
.i_xAlarmOK := TIIB[EL1088_03_01]^Channel 4^Input;
.i_xRemote := TIIB (EL1088_03_01]^Channel 5^Input

Check warning on line 101 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
'}
qRIXS_PRO_01 : FB_EbaraDryPump;
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:GPI:01 '}
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:GPI:01 '}

Check warning on line 104 in lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/GVLs/GVL_Devices.TcGVL

View workflow job for this annotation

GitHub Actions / standard / Style check / Trailing whitespace

Trailing whitespace
{attribute 'TcLinkTo' := '.i_iPRESS_R := TIIB[EL3174-0002_03_07]^AI Standard Channel 4^Value'}
qRIXS_ROUGH_GPI_01 : FB_MKS275;

//VRO
{attribute 'pytmc' := ' pv: QRIXS:ROUGH:VRO:01 '}
fb_QRIX_ROUGH_VRO_01 : FB_VVC;
{attribute 'TcLinkTo' := '.q_xOPN_DO := TIIB[EL2212_03_04]^DOX Control Channel 1^Control^Output'}
QRIX_ROUGH_VRO_01 : FB_VVC;


//VRC
Expand Down Expand Up @@ -224,6 +234,13 @@
pv: QRIXS:SC:PTM:10
io: io
'}
{attribute 'TcLinkTo' := '.i_xAtSpd := TIIB[EL1004_01_13]^Channel 1^Input;
.i_xRemote := TIIB[EL1004_01_13]^Channel 2^Input;
.i_xFaultNC := TIIB[EL1004_01_13]^Channel 3^Input;
.q_RunDO := TIIB[EL2004_01_12]^Channel 1^Output;
.q_xRemote := TIIB[EL2004_01_12]^Channel 2^Output;
.q_PumpingStation := TIIB[EL2004_01_12]^Channel 3^Output
'}
qRIXS_SC_PTM_10 : FB_PTM_Pfeiffer;
{attribute 'TcLinkTo' := '.i_xAtSpd := TIIB[EL1004_01_16]^Channel 2^Input;
.i_xFaultNC := TIIB[EL1004_01_16]^Channel 1^Input;
Expand Down Expand Up @@ -283,7 +300,7 @@
qRIXS_SC_PIP_02: FB_PIP_Gamma;

{attribute 'pytmc' := '
pv: QRIXS:DET:PIP:01
pv: QRIXS:OPT:PIP:01
io: io
'}
{attribute 'TcLinkTo' := '.q_xHVEna_DO := TIIB[EL2794_00_04]^Channel 3^Output;
Expand All @@ -294,7 +311,7 @@
qRIXS_OPT_PIP_01: FB_PIP_Gamma;

{attribute 'pytmc' := '
pv: QRIXS:DET:PIP:02
pv: QRIXS:DET:PIP:01
io: io
'}
{attribute 'TcLinkTo' := '.q_xHVEna_DO := TIIB[EL2794_00_04]^Channel 4^Output;
Expand Down
110 changes: 81 additions & 29 deletions lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/PLC_QRIX_VAC.plcproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<Compile Include="PlcTask.TcTTO">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\FB_ChemRIXS_Turbo_ILK.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Main.TcPOU">
<SubType>Code</SubType>
</Compile>
Expand Down Expand Up @@ -95,49 +98,70 @@
</ItemGroup>
<ItemGroup>
<PlaceholderResolution Include="LCLS General">
<Resolution>LCLS General, * (SLAC)</Resolution>
<Resolution>LCLS General, 2.6.0 (SLAC)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="LCLS Vacuum">
<Resolution>LCLS Vacuum, * (SLAC - LCLS)</Resolution>
<Resolution>LCLS Vacuum, 2.1.0 (SLAC - LCLS)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="LCLSVacuumSerialDriverLib">
<Resolution>LCLSVacuumSerialDriverLib, 1.2.2 (SLAC - LCLS)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="PMPS">
<Resolution>PMPS, * (SLAC - LCLS)</Resolution>
<Resolution>PMPS, 2.2.2 (SLAC - LCLS)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="SysDir">
<Resolution>SysDir, 3.5.8.0 (System)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="SysFile">
<Resolution>SysFile, 3.5.9.0 (System)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_DataExchange">
<Resolution>Tc2_DataExchange, 3.3.5.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_EtherCAT">
<Resolution>Tc2_EtherCAT, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_EtherCAT, 3.3.15.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_IoFunctions">
<Resolution>Tc2_IoFunctions, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_IoFunctions, 3.3.13.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_Math">
<Resolution>Tc2_Math, 3.3.1.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_MC2">
<Resolution>Tc2_MC2, 3.3.42.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_ModbusSrv">
<Resolution>Tc2_ModbusSrv, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_ModbusSrv, 3.3.2.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_SerialCom">
<Resolution>Tc2_SerialCom, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_SerialCom, 3.3.7.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_Standard">
<Resolution>Tc2_Standard, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_Standard, 3.3.3.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_System">
<Resolution>Tc2_System, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_System, 3.4.24.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_TcpIp">
<Resolution>Tc2_TcpIp, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_TcpIp, 3.3.6.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc2_Utilities">
<Resolution>Tc2_Utilities, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc2_Utilities, 3.3.41.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc3_EventLogger">
<Resolution>Tc3_EventLogger, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc3_EventLogger, 3.1.24.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc3_Interfaces">
<Resolution>Tc3_Interfaces, 3.4.3.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc3_JsonXml">
<Resolution>Tc3_JsonXml, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc3_JsonXml, 3.3.14.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="Tc3_Module">
<Resolution>Tc3_Module, * (Beckhoff Automation GmbH)</Resolution>
<Resolution>Tc3_Module, 3.3.21.0 (Beckhoff Automation GmbH)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="TcUnit">
<Resolution>TcUnit, * (www.tcunit.org)</Resolution>
<Resolution>TcUnit, 1.1.0.0 (www.tcunit.org)</Resolution>
</PlaceholderResolution>
</ItemGroup>
<ItemGroup>
Expand All @@ -148,20 +172,27 @@
<ProjectExtensions>
<PlcProjectOptions>
<XmlArchive>
<Data>
<o xml:space="preserve" t="OptionKey">
<Data>
<o xml:space="preserve" t="OptionKey">
<v n="Name">"&lt;ProjectRoot&gt;"</v>
<d n="SubKeys" t="Hashtable" ckt="String" cvt="OptionKey">
<v>{192FAD59-8248-4824-A8DE-9177C94C195A}</v>
<v>{8F99A816-E488-41E4-9FA3-846536012284}</v>
<o>
<v n="Name">"{192FAD59-8248-4824-A8DE-9177C94C195A}"</v>
<v n="Name">"{8F99A816-E488-41E4-9FA3-846536012284}"</v>
<d n="SubKeys" t="Hashtable" />
<d n="Values" t="Hashtable" />
</o>
<v>{246001F4-279D-43AC-B241-948EB31120E1}</v>
<v>{29BD8D0C-3586-4548-BB48-497B9A01693F}</v>
<o>
<v n="Name">"{246001F4-279D-43AC-B241-948EB31120E1}"</v>
<d n="SubKeys" t="Hashtable" />
<v n="Name">"{29BD8D0C-3586-4548-BB48-497B9A01693F}"</v>
<d n="SubKeys" t="Hashtable" ckt="String" cvt="OptionKey">
<v>Rules</v>
<o>
<v n="Name">"Rules"</v>
<d n="SubKeys" t="Hashtable" />
<d n="Values" t="Hashtable" />
</o>
</d>
<d n="Values" t="Hashtable" />
</o>
<v>{40450F57-0AA3-4216-96F3-5444ECB29763}</v>
Expand All @@ -173,16 +204,37 @@
<v>IR0whWr8bwfyB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AAUAAAAKAAAAAAAAANAeHy0g0CEiGgJFIyQC0AAlGgVFCgsEAwAAAAMAAAAAAAAACgAAANAmC60AAAAA0AMBLSfQKAEtEdApAS0Q0AAlGgVFCgsEAwAAAAMAAAAAAAAACgAAANAmC60BAAAA0AMBLSfQKAEtEdApAS0QmiorAUUAAQLQAAEtLNAAAS0X0AAfLS3QLi8aA9AwC60BAAAA0DELrRMAAADQMhqtANAzLxoD0DALrQIAAADQMQutAwAAANAyGq0A0DQarQDQNRqtAA==</v>
</d>
</o>
<v>{192FAD59-8248-4824-A8DE-9177C94C195A}</v>
<o>
<v n="Name">"{192FAD59-8248-4824-A8DE-9177C94C195A}"</v>
<d n="SubKeys" t="Hashtable" />
<d n="Values" t="Hashtable" />
</o>
<v>{F66C7017-BDD8-4114-926C-81D6D687E35F}</v>
<o>
<v n="Name">"{F66C7017-BDD8-4114-926C-81D6D687E35F}"</v>
<d n="SubKeys" t="Hashtable" />
<d n="Values" t="Hashtable" />
</o>
<v>{246001F4-279D-43AC-B241-948EB31120E1}</v>
<o>
<v n="Name">"{246001F4-279D-43AC-B241-948EB31120E1}"</v>
<d n="SubKeys" t="Hashtable" />
<d n="Values" t="Hashtable" ckt="String" cvt="String">
<v>GlobalVisuImageFilePath</v>
<v>%APPLICATIONPATH%</v>
</d>
</o>
</d>
<d n="Values" t="Hashtable" />
</o>
</Data>
<TypeList>
<Type n="Hashtable">System.Collections.Hashtable</Type>
<Type n="OptionKey">{54dd0eac-a6d8-46f2-8c27-2f43c7e49861}</Type>
<Type n="String">System.String</Type>
</TypeList>
</XmlArchive>
</Data>
<TypeList>
<Type n="Hashtable">System.Collections.Hashtable</Type>
<Type n="OptionKey">{54dd0eac-a6d8-46f2-8c27-2f43c7e49861}</Type>
<Type n="String">System.String</Type>
</TypeList>
</XmlArchive>
</PlcProjectOptions>
</ProjectExtensions>
</Project>
985 changes: 550 additions & 435 deletions lcls-plc-qrix-vac/lcls-plc-qrix-vac/PLC_QRIX_VAC/PLC_QRIX_VAC.tmc

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.18">
<POU Name="FB_ChemRIXS_Turbo_ILK" Id="{aec3d1d6-1fd1-4003-aa2e-6283ccf339ab}" SpecialFunc="None">
<Declaration><![CDATA[FUNCTION_BLOCK FB_ChemRIXS_Turbo_ILK
VAR_INPUT
i_stValve : ST_ValveBase;
i_stPump : ST_PTM;
tDelay : TIME;
END_VAR
VAR_OUTPUT
bILK : BOOL;
END_VAR
VAR
tofDelay : TOF;
END_VAR]]></Declaration>
<Implementation>
<ST><![CDATA[tofDelay.IN := i_stValve.i_xOpnLS OR (i_stPump.eState = pumpSTOPPED); // Start timer when valve closes (IN goes low)
tofDelay.PT := tDelay;
tofDelay();
bILK := tofDelay.Q; // Assign turbopump output to timer output. When the valve is closed the turbo pump ILK will go False after time elapses.
// Intended to be connected to pump OK to run bit.]]></ST>
</Implementation>
</POU>
</TcPlcObject>
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,27 @@ END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[// Roughing devices

//MKS 275 Gauges
qRIXS_ROUGH_GPI_01.M_SetBits(30518);
qRIXS_ROUGH_GPI_01(); // Roughing guage near pro
qRIXS_ROUGH_GPI_02.M_SetBits(30518);
qRIXS_ROUGH_GPI_02(); // Roughing guage near BL


//VRC 02
qRIXS_ROUGH_VRC_02(i_xExtILK_OK := TRUE, i_xOverrideMode := xSystemOverrideMode, iq_stValve => );
//VRC 02 backing Main Sample Chamber
qRIXS_ROUGH_VRC_02(i_xExtILK_OK := qRIXS_PRO_01.stPump.eState = E_PumpState.pumpRUNNING, i_xOverrideMode := xSystemOverrideMode, iq_stValve => );

//VRC 01 backing Sample Delivery Chamber
qRIXS_ROUGH_VRC_01(i_xExtILK_OK := qRIXS_PRO_01.stPump.eState = E_PumpState.pumpRUNNING, i_xOverrideMode := xSystemOverrideMode, iq_stValve => );


qRIXS_PRO_01(i_stBPGauge := qRIXS_ROUGH_GPI_01.PG, i_xVlvOpn := TRUE, i_xExtIlkOK := TRUE);


//VRC 01
qRIXS_ROUGH_VRC_01(i_xExtILK_OK := TRUE, i_xOverrideMode := xSystemOverrideMode, iq_stValve => );
if( qRIXS_PRO_01.stPump.eState = pumpSTARTING ) OR ( qRIXS_PRO_01.stPump.eState = pumpRUNNING )
THEN QRIX_ROUGH_VRO_01.M_Open(TRUE);
END_IF
QRIX_ROUGH_VRO_01(i_xExtILK_OK:= (qRIXS_PRO_01.stPump.eState = pumpRUNNING OR qRIXS_PRO_01.stPump.eState = pumpSTARTING ), i_xOverrideMode:= , iq_stValve=> );
]]></ST>
</Implementation>
</POU>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ END_VAR
<Implementation>
<ST><![CDATA[
(* Gamma Ion Pump *)
qRIXS_OPT_PIP_01(i_stGauge:=qRIXS_OPT_GCC_01.IG, i_xOverrideMode:= xSystemOverrideMode);
qRIXS_DET_PIP_01(i_stGauge:=qRIXS_DET_GCC_01.IG, i_xOverrideMode:= xSystemOverrideMode);
qRIXS_OPT_PIP_01(i_stGauge:=qRIXS_OPT_GPI_01.PG, i_xOverrideMode:= xSystemOverrideMode);
qRIXS_DET_PIP_01(i_stGauge:=qRIXS_DET_GPI_01.PG, i_xOverrideMode:= xSystemOverrideMode);

(* Pirani MKS 275 Gauges *)
qRIXS_OPT_GPI_01(PG=>);
Expand All @@ -24,8 +24,10 @@ END_VAR
qRIXS_SA_GCP_01(PG=>);

(* Cold Cathode Gauges *)
qRIXS_OPT_GCC_01(PG:=qRIXS_OPT_GPI_01.PG, IG=>, bEP:=FALSE);
qRIXS_DET_GCC_01(PG:=qRIXS_DET_GPI_01.PG, IG=>, bEP:=FALSE);
qRIXS_OPT_GCC_01.M_SetBits(30518);
qRIXS_OPT_GCC_01(PG:=qRIXS_OPT_GPI_01.PG, IG=>, bEP:=TRUE);
qRIXS_DET_GCC_01.M_SetBits(30518);
qRIXS_DET_GCC_01(PG:=qRIXS_DET_GPI_01.PG, IG=>, bEP:=TRUE);

(* Normally Closed Vate Valve *)
//(*
Expand Down
Loading
Loading