diff --git a/CMS_CORE_Library/NcThermo.cs b/CMS_CORE_Library/NcThermo.cs
index 37a9e64..bf7efce 100644
--- a/CMS_CORE_Library/NcThermo.cs
+++ b/CMS_CORE_Library/NcThermo.cs
@@ -764,6 +764,13 @@ namespace CMS_CORE_Library
/// Reference to the value of the gauge data
public abstract CmsError PLC_RGaugeData(ref ThermoModels.LiveProdDataModel gaugeData);
///
+ /// Set Keyboard softkey ID
+ ///
+ /// Softkey ID of the first button
+ /// Softkey ID of the second button
+ ///
+ public abstract CmsError PLC_WKeyboardSoftkey(ushort idKey1, ushort idKey2);
+ ///
/// Get current Production Info data
///
///
diff --git a/CMS_CORE_Library/S7Net/Nc_S7Net.cs b/CMS_CORE_Library/S7Net/Nc_S7Net.cs
index d61b612..6d27e10 100644
--- a/CMS_CORE_Library/S7Net/Nc_S7Net.cs
+++ b/CMS_CORE_Library/S7Net/Nc_S7Net.cs
@@ -2445,7 +2445,6 @@ namespace CMS_CORE_Library.S7Net
return NO_ERROR;
}
-
///
/// Get gauge data
///
@@ -2470,10 +2469,28 @@ namespace CMS_CORE_Library.S7Net
return NO_ERROR;
}
///
+ /// Set Keyboard softkey ID
+ ///
+ /// Softkey ID of the first button
+ /// Softkey ID of the second button
+ ///
+ public override CmsError PLC_WKeyboardSoftkey(ushort idKey1, ushort idKey2)
+ {
+ List currMem = new List();
+ currMem.Add(idKey1);
+ currMem.Add(idKey2);
+ CmsError libraryError = MEM_RWWordList(W, 0, KEYBOARD_STAR_MEMORY.MemType, KEYBOARD_STAR_MEMORY.Address, KEYBOARD_STAR_MEMORY.SubAddress, KEYBOARD_STAR_MEMORY.Size, ref currMem);
+ if (libraryError.IsError())
+ return libraryError;
+
+ return NO_ERROR;
+ }
+ ///
/// Get current Production Info data
///
///
///
+ ///
public override CmsError PLC_RProdInfo(ref ThermoModels.ProdInfoModel currProdInfo)
{
List currMem = new List();
@@ -5376,6 +5393,7 @@ namespace CMS_CORE_Library.S7Net
internal static MEMORY_CELL M156_INPUT_STROBE = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 6772, 1);
internal static MEMORY_CELL M156_INPUT_ID_LIST = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 6774, 2);
internal static MEMORY_CELL M156_RESPONSE_MEMORY = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 6776, 4);
+ internal static MEMORY_CELL KEYBOARD_STAR_MEMORY = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 6780, 2);
internal static MEMORY_CELL M154_ACK = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 3042, 1);
internal static MEMORY_CELL M154_STROBE = new MEMORY_CELL(MEMORY_TYPE.Siemens_DB, TABLE, 3043, 1);