Ok release lettura stato RAMA (maybe)

This commit is contained in:
Samuele Locatelli
2024-11-23 10:50:42 +01:00
parent 23bc1da199
commit 6cddb8de85
2 changed files with 7 additions and 6 deletions
+6 -5
View File
@@ -8,7 +8,6 @@
"keyProgName": "",
"keyRunMode": "",
"pingAsPowerOn": false,
"forcePingOk": true,
"UseFullId": true,
"maxNullRead": 500,
"condWork": [
@@ -64,7 +63,7 @@
{
"keyName": "\"Fabric Run\"",
"bitNum": 0,
"targetValue": "False"
"targetValue": "0"
}
]
},
@@ -76,8 +75,9 @@
"checkMode": "AND",
"checkList": [
{
"keyName": "Alarms",
"targetValue": "False"
"keyName": "\"Alarms\"",
"bitNum": 0,
"targetValue": "1"
}
]
},
@@ -93,7 +93,8 @@
"subscribedItems": [
"ns=3;s=\"PV_Exchange_DB_R\".\"Enabled\"",
"ns=3;s=\"PV_Exchange_DB_R\".\"Fabric Run\"",
"ns=3;s=\"PV_Exchange_DB_R\".\"Production\""
"ns=3;s=\"PV_Exchange_DB_R\".\"Production\"",
"ns=3;s=\"PV_Exchange_DB_R\".\"Alarms\""
],
"filterItemsNodeId": [
"ns=2;s=RamosaETN21.RamosaCJ2._Hints",
+1 -1
View File
@@ -274,7 +274,7 @@ namespace IOB_WIN_NEXT.IobOpc
// MAIN TEST
var currDataItem = dataItemMem[diKey];
rawValue = currDataItem.rawByte;
if (rawValue.Length >= bitNum)
if (rawValue.Length > bitNum)
{
testBit = rawValue[bitNum] == 1;
}