This commit is contained in:
gongxh
2022-05-05 09:12:10 +08:00
parent 0a4fe0907b
commit fe3f0f0f9e
3 changed files with 9 additions and 9 deletions

View File

@@ -163,8 +163,8 @@ namespace CleanMachineHMI
{
if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
{
string PlcItemId = item.PlcItemId.ToString();
string plcdatatype = item.PlcItemDataType.ToString();
//string PlcItemId = item.PlcItemId.ToString();
// string plcdatatype = item.PlcItemDataType.ToString();
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
item.PlcItemValue = readBytArr_M[plcItemDeviationAddress].ToString();
GlobalHelper.ShowSensorStatus(item, new EventArgs());
@@ -174,8 +174,8 @@ namespace CleanMachineHMI
{
if (!string.IsNullOrEmpty(item.PlcItemDeviationAddress))
{
string PlcItemId = item.PlcItemId.ToString();
string plcdatatype = item.PlcItemDataType.ToString();
//string PlcItemId = item.PlcItemId.ToString();
//string plcdatatype = item.PlcItemDataType.ToString();
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
item.PlcItemValue = readBytArr_M1[plcItemDeviationAddress].ToString();
GlobalHelper.ShowSensorStatus(item, new EventArgs());
@@ -210,7 +210,7 @@ namespace CleanMachineHMI
{
string PlcItemId = item.PlcItemId.ToString();
string plcdatatype = item.PlcItemDataType.ToString();
// string plcdatatype = item.PlcItemDataType.ToString();
int plcItemDeviationAddress = Convert.ToInt32(item.PlcItemDeviationAddress);
if (Convert.ToInt32(item.PlcItemPriAddress) < 409)
{