Added path for PLC Alarm/message decoding + other translations
This commit is contained in:
@@ -41,6 +41,8 @@ namespace CMS_CORE_Library.S7Net
|
||||
|
||||
// Alarms data
|
||||
private static Dictionary<int, string> PlcMessages;
|
||||
private const string PLC_MESSAGE_PATH = "C:/CMS/S7NET/";
|
||||
private const string THERMO_DICT_PATH = "C:/CMS/ThermoActive/Dict/";
|
||||
|
||||
private static ushort SelectedProcess = 1;
|
||||
|
||||
@@ -206,8 +208,6 @@ namespace CMS_CORE_Library.S7Net
|
||||
/// <returns></returns>
|
||||
public override CmsError NC_GetTranslatedPlcMessages(string language, ref Dictionary<int, string> messages)
|
||||
{
|
||||
// FIXME TODO
|
||||
#if false
|
||||
string filePath;
|
||||
try
|
||||
{
|
||||
@@ -234,8 +234,7 @@ namespace CMS_CORE_Library.S7Net
|
||||
{
|
||||
return ManageException(ex);
|
||||
}
|
||||
#endif
|
||||
return FUNCTION_NOT_ALLOWED_ERROR;
|
||||
return NO_ERROR;
|
||||
}
|
||||
/// <summary>
|
||||
/// Elenco lingue disponibili
|
||||
@@ -568,7 +567,6 @@ namespace CMS_CORE_Library.S7Net
|
||||
for (i = 0; i < ALARMS_STATUS.Size * 8; i++)
|
||||
{
|
||||
// If alarm is active
|
||||
//if (statusBits[i])
|
||||
if (bArray[i])
|
||||
{
|
||||
// Calculate matching alarm byte info address
|
||||
|
||||
Reference in New Issue
Block a user