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 @@ - +