Merged in mbp-106/application-specific-gvl (pull request #10)
Mbp 106/application specific gvl
This commit is contained in:
@@ -1171,7 +1171,6 @@ External Setpoint Generation:
|
||||
</Instance>
|
||||
</Project>
|
||||
</Plc>
|
||||
<Io/>
|
||||
</Project>
|
||||
<Mappings>
|
||||
<MappingInfo Identifier="{05000010-2041-0850-3000-040340205008}" Id="#x02030010" Watchdog="04000000080000000400000004000000"/>
|
||||
|
||||
14
solution/tc_project_app/GVLs/GVL_APP.TcGVL
Normal file
14
solution/tc_project_app/GVLs/GVL_APP.TcGVL
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.17">
|
||||
<GVL Name="GVL_APP" Id="{8fe9690c-7907-432e-bedb-6fc99b5ce255}">
|
||||
<Declaration><![CDATA[{attribute 'qualified_only'}
|
||||
VAR_GLOBAL
|
||||
|
||||
END_VAR
|
||||
|
||||
VAR_GLOBAL CONSTANT
|
||||
axisNum : UINT:=3;
|
||||
//axisCoupleMax : UINT:=4;
|
||||
END_VAR]]></Declaration>
|
||||
</GVL>
|
||||
</TcPlcObject>
|
||||
@@ -5,7 +5,7 @@
|
||||
VAR
|
||||
sVersion: STRING:='1.0.0';
|
||||
i : UINT; //index variable for AXES()
|
||||
aFbAxes: ARRAY [1..gvl.axisNum] OF FB_Axis;
|
||||
aFbAxes: ARRAY [1..gvl_app.axisNum] OF FB_Axis;
|
||||
hmiAxisSelection : INT:=1; //Not possible to use local hmi variables for array indexes
|
||||
|
||||
(******Outputs: Power for Limit switches and Home Sensors (every 4th output)********)
|
||||
@@ -27,7 +27,7 @@ VAR
|
||||
|
||||
(******Error Handling********)
|
||||
fbErrorSystem: FB_ErrorSystem;
|
||||
aFbAxesError: ARRAY [1..gvl.axisNum] OF FB_NC_Error;
|
||||
aFbAxesError: ARRAY [1..gvl_app.axisNum] OF FB_NC_Error;
|
||||
|
||||
//fbEL1018 : EL1018;
|
||||
//fbEL2808 : EL2808;
|
||||
@@ -51,7 +51,7 @@ ERROR();]]></ST>
|
||||
<Action Name="AXES" Id="{7eb32732-9b53-4934-8cd9-20ba971dd8ff}">
|
||||
<Implementation>
|
||||
<ST><;
|
||||
END_FOR
|
||||
|
||||
@@ -76,7 +76,7 @@ fbErrorSystem(
|
||||
pErrorSystem=> );
|
||||
|
||||
|
||||
FOR GVL.iAxis:=1 TO gvl.axisNum DO
|
||||
FOR GVL.iAxis:=1 TO gvl_app.axisNum DO
|
||||
aFbAxesError[gvl.iAxis](EN:=TRUE,
|
||||
nNC_ErrorID:= gvl.axes[gvl.iAxis].status.nErrorID,
|
||||
nNC_AxisID:=gvl.axes[gvl.iAxis].Axis.NcToPlc.AxisId,
|
||||
|
||||
Submodule solution/tc_project_app/tc_mca_std_lib updated: 1a5fa47db4...f2b1862731
@@ -19,6 +19,10 @@
|
||||
<Compile Include="GlobalTextList.TcGTLO">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Compile Include="GVLs\GVL_APP.TcGVL">
|
||||
<SubType>Code</SubType>
|
||||
<LinkAlways>true</LinkAlways>
|
||||
</Compile>
|
||||
<Compile Include="PlcTask.TcTTO">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
|
||||
Reference in New Issue
Block a user