| | |
| | | { |
| | | if (devices.Value.left.Communicator.Read<float>("D80")>= liftPosition-5)//到达最大位置) |
| | | { |
| | | message += "左PLC已到最大位置;"; |
| | | message += "左伸缩杆到达目标位置;"; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | if (devices.Value.right.Communicator.Read<float>("D80") >= rigtpostition-5) |
| | | { |
| | | message += "右PLC已到最大位置;"; |
| | | message += "右伸缩杆到达目标位置;"; |
| | | } |
| | | else |
| | | { |
| | |
| | | { |
| | | if (devices.Value.right.Communicator.Read<bool>("M117")) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "现在正在进行中,等待操作完成" }; |
| | | return new WebResponseContent { Status = true, Message = "现在正在进行中,等待操作完成" }; |
| | | } |
| | | |
| | | } |
| | |
| | | { |
| | | if (devices.Value.left.Communicator.Read<bool>("M115"))//缩回的时候判断) |
| | | { |
| | | message += "左PLC已到原点;"; |
| | | message += "左伸缩杆已到原点;"; |
| | | } |
| | | else |
| | | { |