|
|
@ -498,7 +498,7 @@ namespace Module.FireCtrl.ModBusTcp
|
|
|
|
if (_net_connected)
|
|
|
|
if (_net_connected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#region 系统状态
|
|
|
|
#region 系统状态
|
|
|
|
OperateResult<byte[]> statusValue = _client.Read("x=1;0", 9);
|
|
|
|
OperateResult<byte[]> statusValue = _client.Read("x=1;0", 17);
|
|
|
|
_fire_status_value = new MFireStatusValue();
|
|
|
|
_fire_status_value = new MFireStatusValue();
|
|
|
|
if (statusValue.IsSuccess)
|
|
|
|
if (statusValue.IsSuccess)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -513,9 +513,9 @@ namespace Module.FireCtrl.ModBusTcp
|
|
|
|
_fire_status_value.F_StartManually = BitsConvertUtils.ByteToBitValue(results_16, 1, 1);
|
|
|
|
_fire_status_value.F_StartManually = BitsConvertUtils.ByteToBitValue(results_16, 1, 1);
|
|
|
|
_fire_status_value.F_ManualEmergencyStop = BitsConvertUtils.ByteToBitValue(results_16, 1, 2);
|
|
|
|
_fire_status_value.F_ManualEmergencyStop = BitsConvertUtils.ByteToBitValue(results_16, 1, 2);
|
|
|
|
|
|
|
|
|
|
|
|
_fire_status_value.F_AudibleVisualStatus = BitsConvertUtils.ByteToBitValue(results_16, 1, 6);
|
|
|
|
|
|
|
|
_fire_status_value.F_DeflatedState = BitsConvertUtils.ByteToBitValue(results_16, 1, 7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_fire_status_value.F_AudibleVisualStatus = BitsConvertUtils.ByteToBitValue(results_16, 1, 7);
|
|
|
|
|
|
|
|
_fire_status_value.F_DeflatedState = BitsConvertUtils.ByteToBitValue(results_16, 2, 0);
|
|
|
|
//new FireValueToRedis().StoredFireStatusValue(_eqm_code, _fire_status_value);
|
|
|
|
//new FireValueToRedis().StoredFireStatusValue(_eqm_code, _fire_status_value);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
#endregion
|
|
|
|