Add output variable to power the green LED and the inside light of box, build solution

modified:   solution/_Config/PLC/tc_project_app.xti
modified:   solution/tc_project_app/POUs/Application_Specific/Applications/Pneumatic_Box.TcPOU
This commit is contained in:
Federico Rojas
2025-04-23 11:48:18 +02:00
parent 289c92d07c
commit 36e68aa23e
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<TcSmItem xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2012/07/TcSmProject" TcSmVersion="1.0" TcVersion="3.1.4024.62" ClassName="CNestedPlcProjDef">
<Project GUID="{FB261665-FD20-4BF2-97F8-2854C82B752D}" Name="tc_project_app" PrjFilePath="..\..\tc_project_app\tc_project_app.plcproj" TmcFilePath="..\..\tc_project_app\tc_project_app.tmc" ReloadTmc="true" AmsPort="852" FileArchiveSettings="#x000e" ClearInvalidPersist="true" SymbolicMapping="true">
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{0D303883-276D-E3A6-8DEF-3F8052496C6E}">
<Instance Id="#x08502040" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tc_project_app\tc_project_app.tmc" TmcHash="{38EB9C89-F2EA-1F8B-A69A-A8444D140251}">
<Name>tc_project_app Instance</Name>
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
<Vars VarGrpType="1">
@@ -32,6 +32,11 @@
<Comment><![CDATA[Define all necessary variables for your application]]></Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>Pneumatic_Box.bPowerLedAndLight</Name>
<Comment><![CDATA[Variable to power the green LED and the internal light]]></Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>Pneumatic_Box.bPowerPressureSensors</Name>
<Comment><![CDATA[Variable to power the air pressure sensors in the pneuatmic box]]></Comment>
@@ -4,6 +4,7 @@
<Declaration><![CDATA[PROGRAM Pneumatic_Box
VAR
//Define all necessary variables for your application
bPowerLedAndLight AT %Q*: BOOL:= TRUE; //Variable to power the green LED and the internal light
bPowerPressureSensors AT %Q*: BOOL:= TRUE; //Variable to power the air pressure sensors in the pneuatmic box
fScaledAirPressureGroup1: REAL;
fScaledAirPressureGroup2: REAL;