Skip to content

Commit

Permalink
FIX: Changed the FFO units for the crystal gap.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghalym committed May 21, 2024
1 parent 6b4dd0b commit 70dbfd3
Show file tree
Hide file tree
Showing 4 changed files with 809 additions and 94,185 deletions.
18 changes: 9 additions & 9 deletions GratingMonoScope/VSSettings/.vsm
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<Children>
<Node>
<Title>Scope YT NC Project</Title>
<Expanded>False</Expanded>
<FileName>C:\Users\mghaly\Documents\Github local\lcls-plc-rixs-optics\GratingMonoScope\Scope YT NC Project.tcscopex</FileName>
<Expanded>True</Expanded>
<FileName>C:\Github (mghaly)\lcls-plc-rixs-optics\GratingMonoScope\Scope YT NC Project.tcscopex</FileName>
<Children>
<Node>
<Title>DataPool</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand Down Expand Up @@ -65,12 +65,12 @@
</Node>
<Node>
<Title>Grating NC</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
<Title>Encoder Counts Diff</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand All @@ -83,7 +83,7 @@
</Node>
<Node>
<Title>Position absolute</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand All @@ -102,7 +102,7 @@
</Node>
<Node>
<Title>Velocity</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand All @@ -121,7 +121,7 @@
</Node>
<Node>
<Title>Acceleration</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand All @@ -140,7 +140,7 @@
</Node>
<Node>
<Title>Position Lag</Title>
<Expanded>False</Expanded>
<Expanded>True</Expanded>
<FileName></FileName>
<Children>
<Node>
Expand Down
2 changes: 1 addition & 1 deletion lcls-plc-rixs-optics/_Config/PLC/rixs_optics.xti
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ External Setpoint Generation:
</DataType>
</DataTypes>
<Project GUID="{85BF455D-934D-415A-B04C-6D4CDD9FF10E}" Name="rixs_optics" PrjFilePath="..\..\rixs_optics\rixs_optics.plcproj" TmcFilePath="..\..\rixs_optics\rixs_optics.tmc" ReloadTmc="true" AmsPort="851" FileArchiveSettings="#x000e" SymbolicMapping="true">
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="rixs_optics\rixs_optics.tmc" TmcHash="{4A441438-FFB0-B579-C050-882C7D8C0F77}">
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="rixs_optics\rixs_optics.tmc" TmcHash="{832CDF20-5918-869F-F420-B8F11C7E8A48}">
<Name>rixs_optics Instance</Name>
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
<Vars VarGrpType="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ Hb0m3 := TAN(Theta_m3*1E-6)*(Zzos*1E6) + Hbm3 - TAN(Theta_m3*1E-6)*Zbm3;
</Action>
<Action Name="ACT_ExitSlitsGap" Id="{72615217-f71d-41ee-b0dd-e3c54f411832}">
<Implementation>
<ST><![CDATA[// FAULT condition: Hzos -1.0mm <= Hb0m3) AND sl1k2 gap <= 8.0
ffZeroOrderBeamExitSlits.i_xOK := NOT( (( (Hzos*1E3) - 1) <= Hb0m3) AND ( M22.stAxisStatus.fActPosition <= 8.0));
<ST><![CDATA[// FAULT condition: Hzos -1.0mm <= Hb0m3) AND sl1k2 gap <= 8.0 mm
ffZeroOrderBeamExitSlits.i_xOK := NOT( (( (Hzos*1E3) - 1) <= Hb0m3) AND ( M22.stAxisStatus.fActPosition <= 8000(*um*)));
ffZeroOrderBeamExitSlits(io_fbFFHWO := GVL_PMPS.fbFastFaultOutput1);]]></ST>
</Implementation>
</Action>
Expand Down
Loading

0 comments on commit 70dbfd3

Please sign in to comment.