|
@@ -1282,7 +1282,7 @@ namespace IMCS.CCS.Services
|
|
return responseData;
|
|
return responseData;
|
|
|
|
|
|
}
|
|
}
|
|
- else if (actionInfo.ProtocolType == ProtocalTypeEnum.HEIDEHAIN.ToString())
|
|
|
|
|
|
+ else if (actionInfo.ProtocolType == ProtocalTypeEnum.HEIDEHAIN.ToString() || actionInfo.ProtocolType == ProtocalTypeEnum.KEDE.ToString())
|
|
{
|
|
{
|
|
//调用机器人plc启动海德汉程序
|
|
//调用机器人plc启动海德汉程序
|
|
SiemensS7Net s7 = DevicePlcS7.SiemensS7(actionInfo.PlcIp);
|
|
SiemensS7Net s7 = DevicePlcS7.SiemensS7(actionInfo.PlcIp);
|
|
@@ -1358,6 +1358,10 @@ namespace IMCS.CCS.Services
|
|
return responseData;
|
|
return responseData;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ }else if (device.Description.Contains("科德"))
|
|
|
|
+ {
|
|
|
|
+ CcsActionAddress CcsActionAddressWrites = CcsActionAddresses.Where(o => o.Type == ActionAddressTypeEnum.WRITE.ToString()).ToList().FirstOrDefault();
|
|
|
|
+ s7.Write(CcsActionAddressWrites.Address, Convert.ToInt16(CcsActionAddressWrites.Value));
|
|
}
|
|
}
|
|
|
|
|
|
s7.ConnectClose();
|
|
s7.ConnectClose();
|