From 7fb35e2dda24bf6efdf964a3c2dd7900e264711f Mon Sep 17 00:00:00 2001 From: wenjy Date: Thu, 7 Nov 2024 16:30:52 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/AutoModeBusiness.cs | 7 + SlnMesnac.WPF/Page/IndexControl.xaml | 12 +- SlnMesnac.WPF/Page/IndexControl.xaml.cs | 540 +++-------------- .../ViewModel/IndexControlViewModel.cs | 572 +++++++++++++++++- 4 files changed, 681 insertions(+), 450 deletions(-) diff --git a/SlnMesnac.Business/AutoModeBusiness.cs b/SlnMesnac.Business/AutoModeBusiness.cs index 98fd4b2..70b5844 100644 --- a/SlnMesnac.Business/AutoModeBusiness.cs +++ b/SlnMesnac.Business/AutoModeBusiness.cs @@ -276,5 +276,12 @@ namespace SlnMesnac.Business } } + public int GetTrackMotorAddress() + { + int is_arrive_flag = _plc.readInt16ByAddress("VD2005"); + + return is_arrive_flag; + } + } } diff --git a/SlnMesnac.WPF/Page/IndexControl.xaml b/SlnMesnac.WPF/Page/IndexControl.xaml index 0ccba6d..dc286ef 100644 --- a/SlnMesnac.WPF/Page/IndexControl.xaml +++ b/SlnMesnac.WPF/Page/IndexControl.xaml @@ -112,14 +112,14 @@ - +