更改了部分地址和精度信息
This commit is contained in:
@@ -616,8 +616,8 @@ namespace CapMachine.Wpf.Services
|
||||
MinValue = -50,
|
||||
MaxValue = 150,
|
||||
IsMeter = true,
|
||||
DecimalPoint = 1,
|
||||
Precision = 10,
|
||||
DecimalPoint = 2,
|
||||
Precision = 100,
|
||||
Unit = "℃",
|
||||
DataType = TagDataType.Short,
|
||||
PVModel = new MeterValueAttrCell() { Address = "VW126", EngValue = 0, EngValueStr = "", Block = "PV", BlockIndex = 26 },
|
||||
@@ -647,7 +647,7 @@ namespace CapMachine.Wpf.Services
|
||||
MaxValue = 100,
|
||||
IsMeter = true,
|
||||
DecimalPoint = 1,
|
||||
Precision = 10,
|
||||
Precision = 100,
|
||||
Unit = "%",
|
||||
DataType = TagDataType.Short,
|
||||
PVModel = new MeterValueAttrCell() { Address = "VW128", EngValue = 0, EngValueStr = "", Block = "PV", BlockIndex = 28 },
|
||||
@@ -2270,7 +2270,7 @@ namespace CapMachine.Wpf.Services
|
||||
new HandSwitchData(){Name="EV4",ActionAddress="M3.2",StateAddress="Q2.1" ,StateAddressType=HandSwitchStateType.Bool },
|
||||
new HandSwitchData(){Name="试验箱",ActionAddress="M3.3",StateAddress="VW32" ,StateAddressType=HandSwitchStateType.Word },//VW32=1
|
||||
new HandSwitchData(){Name="吸排气球阀",ActionAddress="M3.4",StateAddress="Q2.3" ,StateAddressType=HandSwitchStateType.Bool },
|
||||
new HandSwitchData(){Name="使能",ActionAddress="M3.5",StateAddress="V9.1" ,StateAddressType=HandSwitchStateType.Bool },
|
||||
//new HandSwitchData(){Name="使能",ActionAddress="M3.5",StateAddress="V9.1" ,StateAddressType=HandSwitchStateType.Bool },
|
||||
};
|
||||
|
||||
ListPlcExdConfigCell = new List<PlcExdConfigCell>()
|
||||
@@ -2362,7 +2362,8 @@ namespace CapMachine.Wpf.Services
|
||||
//return true;
|
||||
|
||||
//取消XXX
|
||||
var Result = SiemensDrive.Write("M0.4", true);
|
||||
var Result = SiemensDrive.Write("M0.4", true);
|
||||
var Result1 = SiemensDrive.Write("V99.0", true);
|
||||
if (Result.IsSuccess)
|
||||
{
|
||||
return true;
|
||||
@@ -2384,6 +2385,7 @@ namespace CapMachine.Wpf.Services
|
||||
|
||||
//取消XXX
|
||||
var Result = SiemensDrive.Write("M0.7", true);
|
||||
var Result1 = SiemensDrive.Write("V99.0", false);
|
||||
if (Result.IsSuccess)
|
||||
{
|
||||
return true;
|
||||
@@ -2629,13 +2631,13 @@ namespace CapMachine.Wpf.Services
|
||||
//取得压缩机的CANLIN数据到数据集合中
|
||||
pVModel!.EngValue = CanDriveService.GetDbcValueByName(itemCanLinGroup.Value.NameNoUnit);
|
||||
//写入到PLC中
|
||||
SiemensDrive.Write(pVModel!.Address!.Replace("W", ""), (short)(CanDriveService.GetDbcValueByName(itemCanLinGroup.Value.NameNoUnit)));
|
||||
SiemensDrive.Write(pVModel!.Address!.Replace("W", ""), (short)(CanDriveService.GetDbcValueByName(itemCanLinGroup.Value.NameNoUnit) * itemCanLinGroup.Value.Precision));
|
||||
break;
|
||||
case CanLinEnum.Lin:
|
||||
//取得压缩机的CANLIN数据
|
||||
pVModel!.EngValue = LinDriveService.GetLdfValueByName(itemCanLinGroup.Value.NameNoUnit);
|
||||
//写入到PLC中
|
||||
SiemensDrive.Write(pVModel!.Address!.Replace("W", ""), (short)(LinDriveService.GetLdfValueByName(itemCanLinGroup.Value.NameNoUnit)));
|
||||
SiemensDrive.Write(pVModel!.Address!.Replace("W", ""), (short)(LinDriveService.GetLdfValueByName(itemCanLinGroup.Value.NameNoUnit) * itemCanLinGroup.Value.Precision));
|
||||
break;
|
||||
case CanLinEnum.No:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user