Skip to content

Commit

Permalink
Merge pull request pcdshub#109 from tongju12/ST1K4-encoder
Browse files Browse the repository at this point in the history
add encoder to St1K4 and link it
  • Loading branch information
ZLLentz authored Jun 22, 2023
2 parents 52c8794 + a270c71 commit a2caae1
Show file tree
Hide file tree
Showing 8 changed files with 1,458 additions and 90,863 deletions.
2 changes: 1 addition & 1 deletion TwinCAT Measurement Project1/VSSettings/.vsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Node>
<Title>Scope YT NC Project</Title>
<Expanded>True</Expanded>
<FileName>C:\Users\zlentz\Documents\TcXaeShell\lcls-plc-kfe-motion\TwinCAT Measurement Project1\Scope YT NC Project.tcscopex</FileName>
<FileName>C:\Users\tongju\github-repo\fee\lcls-plc-kfe-motion\TwinCAT Measurement Project1\Scope YT NC Project.tcscopex</FileName>
<Children>
<Node>
<Title>DataPool</Title>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
<Box File="FEE-K-PCW-FSW-EL1004.xti" Id="240">
<EtherCAT PortABoxInfo="#x01000074"/>
</Box>
<Box File="ST1K4-EL9505-E5.xti" Id="117">
<Box File="ST1K4-EL5042-E5A.xti" Id="241">
<EtherCAT PortABoxInfo="#x010000f0"/>
</Box>
<Box File="ST1K4-EL9505-E5.xti" Id="117">
<EtherCAT PortABoxInfo="#x010000f1"/>
</Box>
<Box File="ST1K4-EL9011.xti" Id="118">
<EtherCAT PortABoxInfo="#x01000075"/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<TcSmItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmItem" TcSmVersion="1.0" TcVersion="3.1.4022.30" ClassName="CFlbTermDef" SubType="9099">
<DataTypes>
<DataType>
<Name GUID="{18071995-0000-0000-0000-002000000005}" IecBaseType="true" BitType="true" AutoDeleteType="true" HideSubItems="true">ARRAY [0..4] OF BIT</Name>
<BitSize>5</BitSize>
<BaseType GUID="{18071995-0000-0000-0000-000000000010}">BIT</BaseType>
<ArrayInfo>
<LBound>0</LBound>
<Elements>5</Elements>
</ArrayInfo>
</DataType>
<DataType>
<Name GUID="{18071995-0000-0000-0000-002000000004}" IecBaseType="true" BitType="true" AutoDeleteType="true" HideSubItems="true">ARRAY [0..3] OF BIT</Name>
<BitSize>4</BitSize>
<BaseType GUID="{18071995-0000-0000-0000-000000000010}">BIT</BaseType>
<ArrayInfo>
<LBound>0</LBound>
<Elements>4</Elements>
</ArrayInfo>
</DataType>
</DataTypes>
<ImageDatas>
<ImageData Id="1000">424dd6020000000000003600000028000000100000000e0000000100180000000000a0020000c40e0000c40e00000000000000000000000000ff00ffff00ffff00ff000000ff00ff808080808080808080808080808080ff00ffff00ffff00ffff00ffff00ff000000ff00ffff00ffff00ff000000ff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff000000ff00ffff00ffff00ff000000ff00ffc0c0c000ffffc0c0c000ffff808080ff00ffff00ffff00ffff00ffff00ff000000ff00ff000000ff00ff000000ff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff000000000000ff00ff000000000000ff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff000000ff00ffff00ffff00ff000000ff00ffc0c0c0ff0000c0c0c0ff0000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c00000ffc0c0c00000ff808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0008000c0c0c0008000808080ff00ffff00ffff00ffff00ffff00ff007fff007fff007fff007fff007fff007fffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff</ImageData>
</ImageDatas>
<Box Id="241" BoxType="9099" BoxFlags="#x00000020">
<Name>__FILENAME__</Name>
<ImageId>1000</ImageId>
<EtherCAT SlaveType="2" PdiType="#x0405" MboxDataLinkLayer="true" StateMBoxPolling="true" CycleMBoxPollingTime="0" CoeType="39" FoeType="1" VendorId="#x00000002" ProductCode="#x13b23052" RevisionNo="#x00100000" InfoDataAddr="true" TimeoutMailbox2="10000" CheckRevisionNoType="3" PortPhys="51" MaxSlotCount="256" MaxSlotGroupCount="1" SlotPdoIncrement="1" SlotIndexIncrement="16" Type="EL5042 2Ch. BiSS-C Encoder" Desc="EL5042">
<SyncMan>001080002600010001000000400080008000001026010000</SyncMan>
<SyncMan>801080002200010002000000400080008000801022010000</SyncMan>
<SyncMan>001100000400000003000000000000000000001104000000</SyncMan>
<SyncMan>801114002000010004000000000000001400801120010000</SyncMan>
<Fmmu>0000000000000000801100010100000002000000000000000000000000000000</Fmmu>
<Fmmu>00000000000000000d0800010100000003000000000000000000000000000000</Fmmu>
<BootStrapData>0010f400f410f400</BootStrapData>
<DcMode>53796e6368726f6e00000000000000004672656552756e2f534d2d53796e6368726f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</DcMode>
<DcMode>4443000000000000000000000000000044432d53796e6368726f6e000000000000000000000000000000000000000000000000000000000000000000000000030100000000000000000000000000000000000000000000000000000000000000</DcMode>
<DcMode>4443494e00000000000000000000000044432d53796e6368726f6e2028696e7075742062617365642900000000000000000000000000000000000000000000030100000000000000000001000000000000000000000000000000000000000000</DcMode>
<MBoxUserCmdData>004003000a00000000000000030010000000000000000000000000000000000020f3100502000000010000</MBoxUserCmdData>
<Pdo Name="FB Inputs Channel 1" Index="#x1a00" Flags="#x0010" SyncMan="3">
<ExcludePdo>#x1a02</ExcludePdo>
<Entry Name="Status__Warning" Index="#x6000" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6000" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Ready" Index="#x6000" Sub="#x03">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000005}">ARRAY [0..4] OF BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000004}">ARRAY [0..3] OF BIT</Type>
</Entry>
<Entry Name="Status__Diag" Index="#x6000" Sub="#x0d">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x6000" Sub="#x0e">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Input cycle counter" Index="#x6000" Sub="#x0f">
<Type>BIT2</Type>
</Entry>
<Entry Name="Position" Index="#x6000" Sub="#x11">
<Type>ULINT</Type>
</Entry>
</Pdo>
<Pdo Name="FB Inputs Channel 2" Index="#x1a01" Flags="#x0010" SyncMan="3">
<ExcludePdo>#x1a03</ExcludePdo>
<Entry Name="Status__Warning" Index="#x6010" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6010" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Ready" Index="#x6010" Sub="#x03">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000005}">ARRAY [0..4] OF BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000004}">ARRAY [0..3] OF BIT</Type>
</Entry>
<Entry Name="Status__Diag" Index="#x6010" Sub="#x0d">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x6010" Sub="#x0e">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Input cycle counter" Index="#x6010" Sub="#x0f">
<Type>BIT2</Type>
</Entry>
<Entry Name="Position" Index="#x6010" Sub="#x11">
<Type>ULINT</Type>
</Entry>
</Pdo>
<Pdo Name="FB Inputs Channel 1 compact" Index="#x1a02" Flags="#x0010">
<ExcludePdo>#x1a00</ExcludePdo>
<Entry Name="Status__Warning" Index="#x6000" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6000" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Ready" Index="#x6000" Sub="#x03">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000005}">ARRAY [0..4] OF BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000004}">ARRAY [0..3] OF BIT</Type>
</Entry>
<Entry Name="Status__Diag" Index="#x6000" Sub="#x0d">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x6000" Sub="#x0e">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Input cycle counter" Index="#x6000" Sub="#x0f">
<Type>BIT2</Type>
</Entry>
<Entry Name="Position" Index="#x6000" Sub="#x11">
<Type>UDINT</Type>
</Entry>
</Pdo>
<Pdo Name="FB Inputs Channel 2 compact" Index="#x1a03" Flags="#x0010">
<ExcludePdo>#x1a01</ExcludePdo>
<Entry Name="Status__Warning" Index="#x6010" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6010" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Ready" Index="#x6010" Sub="#x03">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000005}">ARRAY [0..4] OF BIT</Type>
</Entry>
<Entry Name="Status__">
<Type GUID="{18071995-0000-0000-0000-002000000004}">ARRAY [0..3] OF BIT</Type>
</Entry>
<Entry Name="Status__Diag" Index="#x6010" Sub="#x0d">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x6010" Sub="#x0e">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Input cycle counter" Index="#x6010" Sub="#x0f">
<Type>BIT2</Type>
</Entry>
<Entry Name="Position" Index="#x6010" Sub="#x11">
<Type>UDINT</Type>
</Entry>
</Pdo>
<CoeProfile ProfileNo="33624969"/>
<CoeProfile ProfileNo="33624969"/>
</EtherCAT>
</Box>
</TcSmItem>
Loading

0 comments on commit a2caae1

Please sign in to comment.