Rename the Shutter operator panel program and update the PSS permit variable link

Add the comment to call the Shutter_Operator_Panel program from MAIN/PROG()
Build solution.
renamed:    solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_panel_Template.TcPOU -> solution/tc_project_app/POUs/Application_Specific/Applications/Shutter_Operator_Panel.TcPOU
modified:   solution/tc_project_app/POUs/MAIN.TcPOU
modified:   solution/tc_project_app/tc_project_app.plcproj
This commit is contained in:
Federico Rojas
2025-04-16 15:31:49 +02:00
parent bf17f42be1
commit b807a07723
3 changed files with 10 additions and 9 deletions
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1">
<POU Name="Shutter_Operator_panel_Template" Id="{09741edf-58a0-0d9d-0563-de91fec8904d}" SpecialFunc="None">
<Declaration><![CDATA[PROGRAM Shutter_Operator_panel_Template
<POU Name="Shutter_Operator_Panel" Id="{09741edf-58a0-0d9d-0563-de91fec8904d}" SpecialFunc="None">
<Declaration><![CDATA[PROGRAM Shutter_Operator_Panel
VAR
//Variables used to control the LEDs of the Safety Shutter Operator panel
(*
@@ -12,7 +12,7 @@ VAR
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF03 (EL2014)^DIG Outputs^Channel 2^Output'}
bMovingLight AT %Q*: BOOL; //Power output for cylinder Moving LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF04 (EL2014)^DIG Outputs^Channel 1^Output'}
bNoPermitLight AT %Q*: BOOL; //Power output for No permit LED
bPermitLight AT %Q*: BOOL; //Power output for PSS permit LED
{attribute 'TcLinkTo' := 'TIID^Device 1 (EtherCAT)^KF201 (EK1200)^KF217 (EK1521)^KF01 (EK1501-0100)^KF04 (EL2014)^DIG Outputs^Channel 2^Output'}
bErrorLight AT %Q*: BOOL; //Power output for Error LED
*)
@@ -22,17 +22,17 @@ END_VAR
<ST><![CDATA[//Uncomment the code, it is needed to control the LEDs of the Safety Shutter Operator panel
(*
//Assign LED to the permit status
bNoPermitLight := GVL.astPneumaticAxes[x].stPneumaticAxisStatus.bPSSPermit;
bPermitLight := GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bPSSPermitOK;
//Assign LED to the error status
bErrorLight := GVL.astPneumaticAxes[x].stPneumaticAxisStatus.bError;
bErrorLight := GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bError;
//Assign LEDs to the end switches statuses
bExtendedLight := GVL.astPneumaticAxes[x].stPneumaticAxisStatus.bExtended;
bRetractedLight := GVL.astPneumaticAxes[x].stPneumaticAxisStatus.bRetracted;
bExtendedLight := GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bExtended;
bRetractedLight := GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bRetracted;
//Checking the condition for the Moving LED
bMovingLight := GVL.astPneumaticAxes[x].stPneumaticAxisStatus.bRetracting OR gvl.astPneumaticAxes[x].stPneumaticAxisStatus.bExtending;
bMovingLight := GVL.astPneumaticAxes[1].stPneumaticAxisStatus.bRetracting OR gvl.astPneumaticAxes[1].stPneumaticAxisStatus.bExtending;
*)
]]></ST>
</Implementation>
+1
View File
@@ -135,6 +135,7 @@ Safety_Shutter();
//Application program calls
Cabinet_Monitoring();
Pneumatic_Box();
//Shutter_Operator_Panel();
//Application_Template();
]]></ST>
</Implementation>
@@ -43,7 +43,7 @@
<Compile Include="POUs\Application_Specific\Applications\Pneumatic_Box.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Application_Specific\Applications\Shutter_Operator_panel_Template.TcPOU">
<Compile Include="POUs\Application_Specific\Applications\Shutter_Operator_Panel.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\Application_Specific\Axes\Axis_Template.TcPOU">