Skip to content

Commit

Permalink
comment LI2K4 EPS code because it has issue during test
Browse files Browse the repository at this point in the history
  • Loading branch information
tongju12 committed Mar 4, 2024
1 parent 37fbd1a commit 37a6554
Show file tree
Hide file tree
Showing 2 changed files with 2,604 additions and 2,603 deletions.
7 changes: 4 additions & 3 deletions plc-tmo-motion/tmo_motion/POUs/PRG_LI2K4_IP1.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ fbMotionLI2K4X(stMotionStage:=Main.M46);
fbStateSetup(stPositionState:=stDefault, bSetDefault:=TRUE);
fbStateSetup(stPositionState:=aLI2K4XStates[ENUM_LaserCoupling_States.OUT], sName := 'OUT', fPosition:=-0.75);
fbStateSetup(stPositionState:=aLI2K4YStates[ENUM_LaserCoupling_States.OUT], sName := 'OUT', fPosition:=-33.125);
fbStateSetup(stPositionState:=aLI2K4XStates[ENUM_LaserCoupling_States.Mirror1], sName := 'MIRROR1', fPosition:=-84.375);
fbStateSetup(stPositionState:=aLI2K4YStates[ENUM_LaserCoupling_States.Mirror1], sName := 'MIRROR1', fPosition:=-3.375);
fbStateSetup(stPositionState:=aLI2K4XStates[ENUM_LaserCoupling_States.Mirror1], sName := 'MIRROR1', fPosition:=-2.125);
fbStateSetup(stPositionState:=aLI2K4YStates[ENUM_LaserCoupling_States.Mirror1], sName := 'MIRROR1', fPosition:=-84.5);
aLI2K4XStates[ENUM_LaserCoupling_States.OUT].stPMPS.sPmpsState := 'LI2K4:IP1-OUT';
aLI2K4XStates[ENUM_LaserCoupling_States.Mirror1].stPMPS.sPmpsState := 'LI2K4:IP1-MIRROR1';
//LI2K4 EPS condition: OUT->In move Y then move X + IN->OUT move X thenm move Y
{*
bLI2K4XOut := F_AtPositionState(stMotionStage:=Main.M46, stPositionState:=aLI2K4XStates[ENUM_LaserCoupling_States.OUT]);
bLI2K4YIn := F_AtPositionState(stMotionStage:=Main.M45, stPositionState:=aLI2K4YStates[ENUM_LaserCoupling_States.Mirror1]);
Expand All @@ -70,6 +70,7 @@ IF bLI2K4XOut THEN
aLI2K4YStates[ENUM_LaserCoupling_States.Mirror1].bMoveOk := TRUE;
aLI2K4YStates[ENUM_LaserCoupling_States.OUT].bMoveOk := TRUE;
END_IF
*}
//LI2K4 sequenct move : OUT->IN Y move first and then X moves IN->OUT X moves first then Y
Expand Down
Loading

0 comments on commit 37a6554

Please sign in to comment.