| | |
| | | int liftPosition = (int)para.LeftPosition;//左伸åºä½ç½® |
| | | int rigtpostition = (int)para.RightPosition;//å³ä¼¸åºä½ç½® |
| | | |
| | | var leftorigin = devices.Value.left.Communicator.Read<bool>("M115");//å·¦plcå°åç¹ä½ç½®ä¿¡å· |
| | | var rightorigin = devices.Value.right.Communicator.Read<bool>("M115");//å³plcå°è¾¾åç¹ä½ç½®ä¿¡å· |
| | | var lefttarget = devices.Value.left.Communicator.Read<bool>("M116");//å·¦plcå°è¾¾ç®æ ä½ç½® |
| | | var righttarget = devices.Value.right.Communicator.Read<bool>("M116");//å³plcå°è¾¾ç®æ ä½ç½® |
| | | |
| | | if (leftorigin == true || rightorigin == true) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "å·²å°åå§ç¹" }; |
| | | } |
| | | if (lefttarget == true || righttarget == true) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "已尿大å¼" }; |
| | | } |
| | | |
| | | |
| | | if (extendedState == "伸åº") |
| | |
| | | |
| | | int ext = (int)para.ManualExtend;//å·¦PLCæå¨ä¼¸åºç¼©åé度 |
| | | int ret = (int)para.ManualRetraction;//å³PLCæå¨ä¼¸åºç¼©åé度 |
| | | var leftorigin = devices.Value.left.Communicator.Read<bool>("M115");//å·¦plcå°åç¹ä½ç½®ä¿¡å· |
| | | var rightorigin = devices.Value.right.Communicator.Read<bool>("M115");//å³plcå°è¾¾åç¹ä½ç½®ä¿¡å· |
| | | var lefttarget = devices.Value.left.Communicator.Read<bool>("M116");//å·¦plcå°è¾¾ç®æ ä½ç½® |
| | | var righttarget = devices.Value.right.Communicator.Read<bool>("M116");//å³plcå°è¾¾ç®æ ä½ç½® |
| | | |
| | | if (leftorigin == true || rightorigin == true) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "å·²å°åå§ç¹" }; |
| | | } |
| | | if (lefttarget == true || righttarget == true) |
| | | { |
| | | return new WebResponseContent { Status = false, Message = "已尿大å¼" }; |
| | | } |
| | | |
| | | if (position == "å·¦" && ExtendedState == "伸åº") |
| | | { |