Skip to content

Commit

Permalink
Merge pull request #16 from jozamudi/lamp-motion-checkout
Browse files Browse the repository at this point in the history
Lamp motion checkout changes.
  • Loading branch information
tongju12 authored Apr 18, 2024
2 parents cb288a9 + 60c7630 commit 191a889
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 113 deletions.
8 changes: 4 additions & 4 deletions iocBoot/ioc-lamp-motion/st.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
# Project: lcls-plc-lamp-motion.tsproj
# PLC name: lamp_motion (lamp_motion Instance)
# Generated using: pytmc 2.15.1
# Project version: d538f6c
# Project hash: d538f6c902852110e3a7683cb962052550ad0e2e
# Generated using: pytmc 2.16.0
# Project version: 0d3b914
# Project hash: 0d3b9149f7d9723e53dcd1a8301d787de83e1a16
# PLC IP/host: 172.21.132.58
# PLC Net ID: 172.21.132.58.1.1
# ** Production mode IOC **
Expand Down Expand Up @@ -299,7 +299,7 @@ dbLoadRecords("caPutLog.db", "IOC=$(IOC)")
dbLoadRecords("TwinCAT_TaskInfo.db", "PORT=$(ASYN_PORT),PREFIX=PLC:LAMP:MOTION,IDX=1")
dbLoadRecords("TwinCAT_AppInfo.db", "PORT=$(ASYN_PORT), PREFIX=PLC:LAMP:MOTION")

dbLoadRecords("TwinCAT_Project.db", "PREFIX=PLC:LAMP:MOTION,PROJECT=lcls-plc-lamp-motion.tsproj,HASH=d538f6c,VERSION=d538f6c,PYTMC=2.15.1,PLC_HOST=172.21.132.58")
dbLoadRecords("TwinCAT_Project.db", "PREFIX=PLC:LAMP:MOTION,PROJECT=lcls-plc-lamp-motion.tsproj,HASH=0d3b914,VERSION=0d3b914,PYTMC=2.16.0,PLC_HOST=172.21.132.58")

# Tc2_MC2: * (Beckhoff Automation GmbH)
dbLoadRecords("TwinCAT_Dependency.db", "PREFIX=PLC:LAMP:MOTION,DEPENDENCY=Tc2_MC2,VERSION=*,VENDOR=Beckhoff Automation GmbH")
Expand Down
2 changes: 1 addition & 1 deletion lamp_motion_scope/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>False</Expanded>
<FileName>C:\Users\jozamudi\Documents\TcXaeShell\TMO\lcls-plc-lamp-motion\lamp_motion_scope\Scope YT NC Project.tcscopex</FileName>
<FileName>C:\Users\jozamudi\Documents\TcXaeShell\lcls-plc-lamp-motion\lamp_motion_scope\Scope YT NC Project.tcscopex</FileName>
<Children>
<Node>
<Title>DataPool</Title>
Expand Down
12 changes: 12 additions & 0 deletions lcls-plc-lamp-motion/_Config/PLC/lamp_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -3034,6 +3034,18 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M9.Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^Main.M9.Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
<OwnerB Name="TINC^NC-Task 1 SAF^Axes^TIXELX">
<Link VarA="PlcTask Inputs^Main.M14.Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^Main.M14.Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
<OwnerB Name="TINC^NC-Task 1 SAF^Axes^TIXELY">
<Link VarA="PlcTask Inputs^Main.M15.Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^Main.M15.Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
<OwnerB Name="TINC^NC-Task 1 SAF^Axes^TIXELZ">
<Link VarA="PlcTask Inputs^Main.M16.Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^Main.M16.Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
</OwnerA>
</Mappings>
</TcSmItem>
15 changes: 9 additions & 6 deletions lcls-plc-lamp-motion/lamp_motion/POUs/Main.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,25 @@ VAR
// ...//
// TIXEL
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[TIXELX-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELX-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'TcLinkTo' := ' .bLimitForwardEnable:=TIIB[TIXELX-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELX-EL7041]^STM Status^Status^Digital input 2';
.nRawEncoderULINT:=TIIB[TIXELXY_ENC-EL5042]^FB Inputs Channel 1^Position'}
{attribute 'pytmc' := '
pv: TMO:LAMP:MMS:14
'}
M14 : DUT_MotionStage := (bPowerSelf:=TRUE, nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // TIXEL X
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[TIXELY-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELY-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'TcLinkTo' := ' .bLimitForwardEnable:=TIIB[TIXELY-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELY-EL7041]^STM Status^Status^Digital input 2';
.nRawEncoderULINT:=TIIB[TIXELXY_ENC-EL5042]^FB Inputs Channel 2^Position'}
{attribute 'pytmc' := '
pv: TMO:LAMP:MMS:15
'}
M15 : DUT_MotionStage := (bPowerSelf:=TRUE, nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // TIXEL Y
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[TIXELZ-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELZ-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'TcLinkTo' := ' .bLimitForwardEnable:=TIIB[TIXELZ-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[TIXELZ-EL7041]^STM Status^Status^Digital input 2';
.nRawEncoderULINT:=TIIB[TIXELZ_ENC-EL5042]^FB Inputs Channel 1^Position'}
{attribute 'pytmc' := '
pv: TMO:LAMP:MMS:16
'}
Expand Down
Loading

0 comments on commit 191a889

Please sign in to comment.