| | |
| | | else |
| | | { |
| | | PLCTaskAction.boDrumReversal = !PLCTaskAction.boDrumReversal; |
| | | |
| | | await _plcHubContext.Clients.All.UpdateService( |
| | | new PLCServiceModel() |
| | | { |
| | | BoRunningState = PLCTaskAction.boRunningState, |
| | | BoRefresh = PLCTaskAction.boRefresh, |
| | | BoOffline = PLCTaskAction.boOffline, |
| | | BoDemo = PLCTaskAction.boDemo, |
| | | BoDrumReversal = PLCTaskAction.boDrumReversal, |
| | | Error = "与PCL交互失败,操作失败!" |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | PLCTaskAction.boDrumReversal = !PLCTaskAction.boDrumReversal; |
| | | |
| | | await _plcHubContext.Clients.All.UpdateService( |
| | | new PLCServiceModel() |
| | | { |
| | | BoRunningState = PLCTaskAction.boRunningState, |
| | | BoRefresh = PLCTaskAction.boRefresh, |
| | | BoOffline = PLCTaskAction.boOffline, |
| | | BoDemo = PLCTaskAction.boDemo, |
| | | BoDrumReversal = PLCTaskAction.boDrumReversal, |
| | | Error = "PCL未连接,操作失败!" |
| | | }); |
| | | return; |
| | | } |
| | | } |
| | | await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline, BoDemo = PLCTaskAction.boDemo, BoDrumReversal = PLCTaskAction.boDrumReversal }); |