From 4a00a4c41442eb892cd1792b645e03402a26145c Mon Sep 17 00:00:00 2001 From: Matthias Heisig Date: Tue, 8 Apr 2025 07:24:55 +0200 Subject: [PATCH] Added Modbus registers --- .../HoldingRegisters/ST_MODBUS_REG_13.TcDUT | 27 +++++++++++++++++++ PLC/GVLs/GVL_CONFIG.TcGVL | 3 ++- PLC/GVLs/GVL_MODBUS.TcGVL | 11 +++++++- PLC/PLC.plcproj | 5 +++- Uniper.sln | 2 +- 5 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 PLC/DUTs/Modbus/HoldingRegisters/ST_MODBUS_REG_13.TcDUT diff --git a/PLC/DUTs/Modbus/HoldingRegisters/ST_MODBUS_REG_13.TcDUT b/PLC/DUTs/Modbus/HoldingRegisters/ST_MODBUS_REG_13.TcDUT new file mode 100644 index 0000000..40046e0 --- /dev/null +++ b/PLC/DUTs/Modbus/HoldingRegisters/ST_MODBUS_REG_13.TcDUT @@ -0,0 +1,27 @@ + + + + String 1, Bit 1 -> String 2, etc.) + // Addr: 13.002 + wStringWarningActive : WORD; + + // String error active + // (Bit 0 -> String 1, Bit 1 -> String 2, etc.) + // Addr: 13.003 + wStringErrorActive : WORD; +END_STRUCT +END_TYPE +]]> + + \ No newline at end of file diff --git a/PLC/GVLs/GVL_CONFIG.TcGVL b/PLC/GVLs/GVL_CONFIG.TcGVL index eb8d6b0..9235595 100644 --- a/PLC/GVLs/GVL_CONFIG.TcGVL +++ b/PLC/GVLs/GVL_CONFIG.TcGVL @@ -1,5 +1,5 @@  - + - + 14.023 + awWarningsUnitsActive : ARRAY [0..(GVL_CONFIG.uiNumberOfUnits-1)] OF WORD; + + // Addr: 15.000 -> 15.023 + awErrorsUnitsActive : ARRAY [0..(GVL_CONFIG.uiNumberOfUnits-1)] OF WORD; END_VAR]]> \ No newline at end of file diff --git a/PLC/PLC.plcproj b/PLC/PLC.plcproj index 6fb6a4e..6fed435 100644 --- a/PLC/PLC.plcproj +++ b/PLC/PLC.plcproj @@ -9,7 +9,7 @@ true false PLC - 3.1.4026.12 + 3.1.4026.14 {afd0b275-de2f-4006-ab0f-6826ccfce7be} {18a2eab9-0077-4cea-9d3b-9a168bdf0814} {6e35f35d-280b-4da2-9c5b-fc35ab6da425} @@ -66,6 +66,9 @@ Code + + Code + Code diff --git a/Uniper.sln b/Uniper.sln index 56345bb..4114438 100644 --- a/Uniper.sln +++ b/Uniper.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # TcXaeShell Solution File, Format Version 11.00 -VisualStudioVersion = 15.0.33403.129 +VisualStudioVersion = 17.7.34302.85 MinimumVisualStudioVersion = 10.0.40219.1 Project("{B1E792BE-AA5F-4E3C-8C82-674BF9C0715B}") = "Uniper", "Uniper.tsproj", "{24BCEDE3-526F-4D87-A687-3DBA9D107213}" EndProject