From 865819f7f2d66cebb6bba68899159b9a24be3ee5 Mon Sep 17 00:00:00 2001 From: wells <123> Date: 星期六, 11 七月 2020 17:52:50 +0800 Subject: [PATCH] 板卡运行界面修改 --- src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisStatus.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisStatus.cs b/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisStatus.cs index 77966fd..df1f1b2 100644 --- a/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisStatus.cs +++ b/src/Bro.UI.Device.Winform/MotionCard/CtrlMotionCardAxisStatus.cs @@ -44,12 +44,12 @@ textBoxCurVel.Text = _axisMovingStatus.CurVelocity.ToString(); int axis_sts = _axisMovingStatus.AxisStatus; - ioIndicatorCtrl1.IsOn = (axis_sts & 0x2) == 0;//椹卞姩鎶ヨ - ioIndicatorCtrl2.IsOn = (axis_sts & 0x200) == 1;//浼烘湇浣胯兘 1涓哄紑鍚� - ioIndicatorCtrl6.IsOn = (axis_sts & 0x20) == 0;//姝i檺浣� - ioIndicatorCtrl8.IsOn = (axis_sts & 0x40) == 0;//璐熼檺浣� - ioIndicatorCtrl9.IsOn = (axis_sts & 0x400) == 0;//杩愬姩鐘舵�� - ioIndicatorCtrl10.IsOn = (axis_sts & 0x10) == 0;//杩愬姩鍑洪敊 + ioIndicatorCtrl1.IsOn = (axis_sts & 0x2) != 0;//椹卞姩鎶ヨ + ioIndicatorCtrl2.IsOn = (axis_sts & 0x200) != 0;//浼烘湇浣胯兘 1涓哄紑鍚� + ioIndicatorCtrl6.IsOn = (axis_sts & 0x20) != 0;//姝i檺浣� + ioIndicatorCtrl8.IsOn = (axis_sts & 0x40) != 0;//璐熼檺浣� + ioIndicatorCtrl9.IsOn = (axis_sts & 0x400) != 0;//杩愬姩鐘舵�� + ioIndicatorCtrl10.IsOn = (axis_sts & 0x10) != 0;//杩愬姩鍑洪敊 } } -- Gitblit v1.8.0