Skip to content

Commit

Permalink
Merge pull request pcdshub#105 from tongju12/sp1k4-att-rtd
Browse files Browse the repository at this point in the history
adding SP1K4-solid-att-RTD-beckhoff
  • Loading branch information
tongju12 authored Oct 20, 2023
2 parents e34079d + fc5a08f commit 5ad47ee
Show file tree
Hide file tree
Showing 6 changed files with 1,203 additions and 657 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@
<Box File="SP1K4-TL2-EL1124.xti" Id="14">
<EtherCAT PortABoxInfo="#x0100000d"/>
</Box>
<Box File="Term 15 (EK1122).xti" Id="15">
<Box File="SP1K4- EL3202-E9A.xti" Id="257">
<EtherCAT PortABoxInfo="#x0100000e"/>
</Box>
<Box File="SP1K4-EL3202-E9B.xti" Id="258">
<EtherCAT PortABoxInfo="#x01000101"/>
</Box>
<Box File="Term 15 (EK1122).xti" Id="15">
<EtherCAT PortABoxInfo="#x01000102"/>
</Box>
<Box File="Term 300 (EL9011).xti" Id="300">
<EtherCAT PortABoxInfo="#x0200000f"/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?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-002000000007}" IecBaseType="true" BitType="true" AutoDeleteType="true" HideSubItems="true">ARRAY [0..6] OF BIT</Name>
<BitSize>7</BitSize>
<BaseType GUID="{18071995-0000-0000-0000-000000000010}">BIT</BaseType>
<ArrayInfo>
<LBound>0</LBound>
<Elements>7</Elements>
</ArrayInfo>
</DataType>
</DataTypes>
<ImageDatas>
<ImageData Id="1000">424dd6020000000000003600000028000000100000000e0000000100180000000000a0020000c40e0000c40e00000000000000000000ff00ffff00ffff00ffff00ffff00ffff00ff808080808080808080808080808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c000ffffc0c0c000ffff808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0ff0000c0c0c0ff0000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c00000ffc0c0c00000ff808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0008000c0c0c0008000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff</ImageData>
</ImageDatas>
<Box Id="257" BoxType="9099" BoxFlags="#x00000020">
<Name>__FILENAME__</Name>
<ImageId>1000</ImageId>
<EtherCAT SlaveType="2" PdiType="#x0005" MboxDataLinkLayer="true" StateMBoxPolling="true" CycleMBoxPollingTime="0" CoeType="3" FoeType="1" VendorId="#x00000002" ProductCode="#x0c823052" RevisionNo="#x0016000a" InfoDataAddr="true" TimeoutMailbox2="2000" CheckRevisionNoType="3" PortPhys="51" MaxSlotCount="256" MaxSlotGroupCount="1" SlotPdoIncrement="1" SlotIndexIncrement="16" Type="EL3202-0010 2Ch. Ana. Input PT100 (RTD), High Precision" Desc="EL3202-0010">
<SyncMan>001080002600010001000000800080008000001026010000</SyncMan>
<SyncMan>801080002200010002000000800080008000801022010000</SyncMan>
<SyncMan>001100000400000003000000000000000000001104000000</SyncMan>
<SyncMan>801108002000010004000000000000000800801120010000</SyncMan>
<Fmmu>0000000000000000801100010100000002000000000000000000000000000000</Fmmu>
<Fmmu>00000000000000000d0800010100000003000000000000000000000000000000</Fmmu>
<BootStrapData>0010f400f410f400</BootStrapData>
<Pdo Name="RTD Inputs Channel 1" Index="#x1a00" Flags="#x0011" SyncMan="3">
<Entry Name="Status__Underrange" Index="#x6000" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Overrange" Index="#x6000" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Limit 1" Index="#x6000" Sub="#x03">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Limit 2" Index="#x6000" Sub="#x05">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6000" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry>
<Type GUID="{18071995-0000-0000-0000-002000000007}">ARRAY [0..6] OF BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x1800" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO Toggle" Index="#x1800" Sub="#x09">
<Type>BIT</Type>
</Entry>
<Entry Name="Value" Index="#x6000" Sub="#x11" Flags="#x00050000">
<Type>INT</Type>
</Entry>
</Pdo>
<Pdo Name="RTD Inputs Channel 2" Index="#x1a01" Flags="#x0011" SyncMan="3">
<Entry Name="Status__Underrange" Index="#x6010" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Overrange" Index="#x6010" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Limit 1" Index="#x6010" Sub="#x03">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Limit 2" Index="#x6010" Sub="#x05">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6010" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry>
<Type GUID="{18071995-0000-0000-0000-002000000007}">ARRAY [0..6] OF BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x1801" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO Toggle" Index="#x1801" Sub="#x09">
<Type>BIT</Type>
</Entry>
<Entry Name="Value" Index="#x6010" Sub="#x11" Flags="#x00050000">
<Type>INT</Type>
</Entry>
</Pdo>
<CoeProfile ProfileNo="20976521"/>
<CoeProfile ProfileNo="20976521"/>
</EtherCAT>
</Box>
</TcSmItem>
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?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-002000000007}" IecBaseType="true" BitType="true" AutoDeleteType="true" HideSubItems="true">ARRAY [0..6] OF BIT</Name>
<BitSize>7</BitSize>
<BaseType GUID="{18071995-0000-0000-0000-000000000010}">BIT</BaseType>
<ArrayInfo>
<LBound>0</LBound>
<Elements>7</Elements>
</ArrayInfo>
</DataType>
</DataTypes>
<ImageDatas>
<ImageData Id="1000">424dd6020000000000003600000028000000100000000e0000000100180000000000a0020000c40e0000c40e00000000000000000000ff00ffff00ffff00ffff00ffff00ffff00ff808080808080808080808080808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c000ffffc0c0c000ffff808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0ff0000c0c0c0ff0000808080ff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffff00ffc0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c00000ffc0c0c00000ff808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0000000c0c0c0000000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0008000c0c0c0008000808080ff00ffff00ffff00ffff00ffff00ff00ff0000ff0000ff0000ff0000ff0000ff00c0c0c0c0c0c0c0c0c0c0c0c0808080ff00ffff00ffff00ffff00ffff00ff</ImageData>
</ImageDatas>
<Box Id="258" BoxType="9099" BoxFlags="#x00000020">
<Name>__FILENAME__</Name>
<ImageId>1000</ImageId>
<EtherCAT SlaveType="2" PdiType="#x0005" MboxDataLinkLayer="true" StateMBoxPolling="true" CycleMBoxPollingTime="0" CoeType="3" FoeType="1" VendorId="#x00000002" ProductCode="#x0c823052" RevisionNo="#x0016000a" InfoDataAddr="true" TimeoutMailbox2="2000" CheckRevisionNoType="3" PortPhys="51" MaxSlotCount="256" MaxSlotGroupCount="1" SlotPdoIncrement="1" SlotIndexIncrement="16" Type="EL3202-0010 2Ch. Ana. Input PT100 (RTD), High Precision" Desc="EL3202-0010">
<SyncMan>001080002600010001000000800080008000001026010000</SyncMan>
<SyncMan>801080002200010002000000800080008000801022010000</SyncMan>
<SyncMan>001100000400000003000000000000000000001104000000</SyncMan>
<SyncMan>801108002000010004000000000000000800801120010000</SyncMan>
<Fmmu>0000000000000000801100010100000002000000000000000000000000000000</Fmmu>
<Fmmu>00000000000000000d0800010100000003000000000000000000000000000000</Fmmu>
<BootStrapData>0010f400f410f400</BootStrapData>
<Pdo Name="RTD Inputs Channel 1" Index="#x1a00" Flags="#x0011" SyncMan="3">
<Entry Name="Status__Underrange" Index="#x6000" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Overrange" Index="#x6000" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Limit 1" Index="#x6000" Sub="#x03">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Limit 2" Index="#x6000" Sub="#x05">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6000" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry>
<Type GUID="{18071995-0000-0000-0000-002000000007}">ARRAY [0..6] OF BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x1800" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO Toggle" Index="#x1800" Sub="#x09">
<Type>BIT</Type>
</Entry>
<Entry Name="Value" Index="#x6000" Sub="#x11" Flags="#x00050000">
<Type>INT</Type>
</Entry>
</Pdo>
<Pdo Name="RTD Inputs Channel 2" Index="#x1a01" Flags="#x0011" SyncMan="3">
<Entry Name="Status__Underrange" Index="#x6010" Sub="#x01">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Overrange" Index="#x6010" Sub="#x02">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__Limit 1" Index="#x6010" Sub="#x03">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Limit 2" Index="#x6010" Sub="#x05">
<Type>BIT2</Type>
</Entry>
<Entry Name="Status__Error" Index="#x6010" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry>
<Type GUID="{18071995-0000-0000-0000-002000000007}">ARRAY [0..6] OF BIT</Type>
</Entry>
<Entry Name="Status__TxPDO State" Index="#x1801" Sub="#x07">
<Type>BIT</Type>
</Entry>
<Entry Name="Status__TxPDO Toggle" Index="#x1801" Sub="#x09">
<Type>BIT</Type>
</Entry>
<Entry Name="Value" Index="#x6010" Sub="#x11" Flags="#x00050000">
<Type>INT</Type>
</Entry>
</Pdo>
<CoeProfile ProfileNo="20976521"/>
<CoeProfile ProfileNo="20976521"/>
</EtherCAT>
</Box>
</TcSmItem>
42 changes: 42 additions & 0 deletions plc-tmo-motion/_Config/PLC/tmo_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -6651,6 +6651,38 @@ External Setpoint Generation:
</Comment>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_01.bError</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_01.bUnderrange</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_01.bOverrange</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_01.iRaw</Name>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_02.bError</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_02.bUnderrange</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_02.bOverrange</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_SP1K4.SP1K4_ATT_RTD_02.iRaw</Name>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_3_PMPS_POST.fbArbiterIO.i_stCurrentBP</Name>
<Type GUID="{292CD354-C7C0-4A61-AAD0-1C85DD69646B}">ST_BeamParams_IO</Type>
Expand Down Expand Up @@ -12733,6 +12765,16 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M44.bLimitBackwardEnable" VarB="STM Status^Status^Digital input 2" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M44.bLimitForwardEnable" VarB="STM Status^Status^Digital input 1" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^PLC Coupler 2 (EK1100)^PLC Junction 9 (EK1122)^SP1K4 Top Rail (EK1100)^SP1K4- EL3202-E9A">
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bError" VarB="RTD Inputs Channel 1^Status^Error" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bOverrange" VarB="RTD Inputs Channel 1^Status^Overrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bUnderrange" VarB="RTD Inputs Channel 1^Status^Underrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.iRaw" VarB="RTD Inputs Channel 1^Value" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bError" VarB="RTD Inputs Channel 2^Status^Error" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bOverrange" VarB="RTD Inputs Channel 2^Status^Overrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bUnderrange" VarB="RTD Inputs Channel 2^Status^Underrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.iRaw" VarB="RTD Inputs Channel 2^Value" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^PLC Coupler 2 (EK1100)^PLC Junction 9 (EK1122)^SP1K4 Top Rail (EK1100)^SP1K4-TL1-EL1124">
<Link VarA="PlcTask Inputs^PRG_SP1K4.bTL1High" VarB="Channel 1^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.bTL1Low" VarB="Channel 2^Input" AutoLink="true"/>
Expand Down
24 changes: 24 additions & 0 deletions plc-tmo-motion/tmo_motion/POUs/PRG_SP1K4.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,30 @@ VAR
bPF1K4Out: BOOL;
// SP1K4 RTD-01
{attribute 'TcLinkTo' := '.iRaw := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 1^Value;
.bUnderrange := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 1^Status^Underrange;
.bOverrange := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 1^Status^Overrange;
.bError := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 1^Status^Error'}
{attribute 'pytmc' := '
pv: SP1K4:ATT:RTD:01
field: EGU C
io: i
'}
SP1K4_ATT_RTD_01 : FB_TempSensor;
{attribute 'TcLinkTo' := '.iRaw := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 2^Value;
.bUnderrange := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 2^Status^Underrange;
.bOverrange := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 2^Status^Overrange;
.bError := TIIB[SP1K4- EL3202-E9A]^RTD Inputs Channel 2^Status^Error'}
{attribute 'pytmc' := '
pv: SP1K4:ATT:RTD:02
field: EGU C
io: i
'}
SP1K4_ATT_RTD_02 : FB_TempSensor;
END_VAR
]]></Declaration>
Expand Down
Loading

0 comments on commit 5ad47ee

Please sign in to comment.