|
@@ -2077,7 +2077,15 @@ namespace IMCS.CCS.Services
|
|
|
{
|
|
|
if (!string.IsNullOrEmpty(actionAddress.Address))
|
|
|
{
|
|
|
- s7.Write(actionAddress.Address, Convert.ToInt16(string.IsNullOrEmpty(actionAddress.Value) ? req.data.Location : actionAddress.Value)); ;
|
|
|
+
|
|
|
+ if (actionAddress.Sort != 3)
|
|
|
+ {
|
|
|
+ s7.Write(actionAddress.Address, Convert.ToInt16(string.IsNullOrEmpty(actionAddress.Value) ? req.data.Location : actionAddress.Value));
|
|
|
+ }
|
|
|
+ else if (actionAddress.Sort == 3 && !string.IsNullOrEmpty(req.data.DestLocation))
|
|
|
+ {
|
|
|
+ s7.Write(actionAddress.Address, Convert.ToInt16(req.data.DestLocation));
|
|
|
+ }
|
|
|
|
|
|
Thread.Sleep(SLEEP_TIME);
|
|
|
}
|