diff --git a/src/TcoKukaRobotics/assets/GSDML-V2.4-KUKA-KR C5-20220704.xml b/src/TcoKukaRobotics/assets/GSDML-V2.4-KUKA-KR C5-20220704.xml new file mode 100644 index 00000000..4bf4ad66 --- /dev/null +++ b/src/TcoKukaRobotics/assets/GSDML-V2.4-KUKA-KR C5-20220704.xml @@ -0,0 +1,2690 @@ + + + + PROFINET Device Profile + 1.00 + Device Profile for PROFINET Devices + PROFIBUS Nutzerorganisation e. V. (PNO) + Device + + 4 + 1 + GSDML + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/TcoKukaRobotics/assets/GSDML-V2.45-KUKA-KR C5-2-20260414.xml b/src/TcoKukaRobotics/assets/GSDML-V2.45-KUKA-KR C5-2-20260414.xml new file mode 100644 index 00000000..50e1a8aa --- /dev/null +++ b/src/TcoKukaRobotics/assets/GSDML-V2.45-KUKA-KR C5-2-20260414.xml @@ -0,0 +1,3036 @@ + + + + PROFINET Device Profile + 1.00 + Device Profile for PROFINET Devices + PROFIBUS Nutzerorganisation e. V. (PNO) + Device + + 4 + 1 + GSDML + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml new file mode 100644 index 00000000..a53e9fb5 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml.cs b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml.cs new file mode 100644 index 00000000..82ee452d --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceView.xaml.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using TcOpen.Inxton.Wpf; + +namespace TcoKukaRobotics +{ + + public partial class TcoKukaKssEcat_v_9_3_xServiceView : UserControl + { + public TcoKukaKssEcat_v_9_3_xServiceView() + { + if (DesignerProperties.GetIsInDesignMode(this)) + { + this.DataContext = new TcoKukaKssEcat_v_9_3_xServiceViewModel(); + } + + InitializeComponent(); + } + + + + + } + + + +} diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceViewModel.cs b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceViewModel.cs new file mode 100644 index 00000000..02fcbbf5 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssEcat_v_9_3_xServiceViewModel.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using Vortex.Connector; +using Vortex.Presentation.Wpf; + + +namespace TcoKukaRobotics +{ + public class TcoKukaKssEcat_v_9_3_xServiceViewModel : TcoKukaRoboticsBaseServiceViewModel + { + + public TcoKukaKssEcat_v_9_3_xServiceViewModel() :base() + { + + + } + } + public class TcoKukaKssEcat_v_9_3_xViewModel : TcoKukaKssEcat_v_9_3_xServiceViewModel + { } + +} diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml new file mode 100644 index 00000000..0932562a --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml.cs b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml.cs new file mode 100644 index 00000000..166a1371 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceView.xaml.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Globalization; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; +using TcOpen.Inxton.Wpf; + +namespace TcoKukaRobotics +{ + + public partial class TcoKukaKssPn_v_9_3_xServiceView : UserControl + { + public TcoKukaKssPn_v_9_3_xServiceView() + { + if (DesignerProperties.GetIsInDesignMode(this)) + { + this.DataContext = new TcoKukaKssPn_v_9_3_xServiceViewModel(); + } + + InitializeComponent(); + } + + + + + } + + + +} diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceViewModel.cs b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceViewModel.cs new file mode 100644 index 00000000..e6395072 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Kss/Service/TcoKukaKssPn_v_9_3_xServiceViewModel.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using Vortex.Connector; +using Vortex.Presentation.Wpf; + + +namespace TcoKukaRobotics +{ + public class TcoKukaKssPn_v_9_3_xServiceViewModel : TcoKukaRoboticsBaseServiceViewModel + { + + public TcoKukaKssPn_v_9_3_xServiceViewModel() :base() + { + + + } + } + public class TcoKukaKssPn_v_9_3_xViewModel : TcoKukaKssPn_v_9_3_xServiceViewModel + { } + +} diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.Designer.cs b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.Designer.cs index 4313628a..427174a7 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.Designer.cs +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.Designer.cs @@ -122,5 +122,32 @@ public static string SafetyOk { return ResourceManager.GetString("SafetyOk", resourceCulture); } } + + /// + /// Looks up a localized string similar to Local emergency stop!. + /// + public static string LocalEstopNotOk { + get { + return ResourceManager.GetString("LocalEstopNotOk", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Drives enable cut!. + /// + public static string DrivesEnableCut { + get { + return ResourceManager.GetString("DrivesEnableCut", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Normal stop active. + /// + public static string NormalStopActive { + get { + return ResourceManager.GetString("NormalStopActive", resourceCulture); + } + } } } diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.cs-CZ.resx b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.cs-CZ.resx index 0985238a..a9784437 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.cs-CZ.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.cs-CZ.resx @@ -138,4 +138,13 @@ Bezpečnost Ok + + Lokální nouzové zastavení! + + + Povolení pohonů odpojeno! + + + Normální stop aktivní + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.de-DE.resx b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.de-DE.resx index d7ea530c..b6dd0b72 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.de-DE.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.de-DE.resx @@ -138,4 +138,13 @@ Sicherheit Ok + + Lokaler Not-Halt! + + + Antriebsfreigabe abgeschaltet! + + + Normal-Stopp aktiv + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.es-ES.resx b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.es-ES.resx index 55e992f8..9cc4f2a8 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.es-ES.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.es-ES.resx @@ -138,4 +138,13 @@ Seguridad Ok + + Parada de emergencia local! + + + Habilitación de accionamientos cortada! + + + Parada normal activa + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.resx b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.resx index 54a6e452..8bf13181 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.resx @@ -138,4 +138,13 @@ Safety Ok + + Local emergency stop! + + + Drives enable cut! + + + Normal stop active + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.sk-Sk.resx b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.sk-Sk.resx index d9f2034c..5bbcabb8 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.sk-Sk.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/Properties/strings.sk-Sk.resx @@ -138,4 +138,13 @@ Bezpečnosť Ok + + Lokálne núdzové zastavenie! + + + Povolenie pohonov odpojené! + + + Normálny stop aktívny + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/TcOpen.Inxton.TcoKukaRobotics.Wpf.csproj b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/TcOpen.Inxton.TcoKukaRobotics.Wpf.csproj index 60ead433..5cadf3bd 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/TcOpen.Inxton.TcoKukaRobotics.Wpf.csproj +++ b/src/TcoKukaRobotics/src/TcoKukaRobotics.Wpf/TcOpen.Inxton.TcoKukaRobotics.Wpf.csproj @@ -54,6 +54,14 @@ Designer MSBuild:Compile + + $(DefaultXamlRuntime) + Designer + + + $(DefaultXamlRuntime) + Designer + $(DefaultXamlRuntime) Designer diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.cs-CZ.resx b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.cs-CZ.resx index 4a09b7f5..022bdc96 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.cs-CZ.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.cs-CZ.resx @@ -480,4 +480,136 @@ OUT + + je vypnutý + + + CutEnableDrives [CUT_ENABLE_DRIVES] + + + NormalStop [NORMAL_STOP_ACTIVE] + + + Data z robota + + + Data do robota + + + Aktivní lokální nouzové zastavení + + + Lokální nouzové zastavení OK + + + Reset všech výstupů + + + Robot v ručním režimu. MoveEnable je nastaven při přechodu do ručního režimu! + + + Čekání na signál: + + + Čekání na zrcadlení parametrů pohybu zpět. + + + Čekání na potvrzení čísla akce 253 robotem (parametry potvrzeny). + + + Čekání na potvrzení čísla akce 254 robotem (parametry odeslány). + + + Čekání na potvrzení čísla akce 255 robotem (pohyb dokončen). + + + Spustit od main úspěšně dokončeno. + + + Spustit od main skončilo s chybou. + + + Spustit od main spuštěno. + + + Spustit od main bylo přerušeno. + + + Spuštění motorů úspěšně dokončeno. + + + Spuštění motorů bylo přerušeno. + + + Spuštění motorů, programu a pohybů spuštěno. + + + Spuštění motorů, programu a pohybů bylo přerušeno. + + + Zahájení pohybů spuštěno. + + + Zahájení pohybů bylo přerušeno. + + + Spustit program úspěšně dokončeno. + + + Spustit program skončilo s chybou. + + + Spustit program spuštěno. + + + Spustit program bylo přerušeno. + + + Zastavení motorů úspěšně dokončeno. + + + Zastavení motorů bylo přerušeno. + + + Zastavení pohybů a programu úspěšně dokončeno. + + + Zastavení pohybů a programu bylo přerušeno. + + + Zastavení pohybů úspěšně dokončeno. + + + Zastavení pohybů skončilo s chybou. + + + Zastavení pohybů spuštěno. + + + Zastavení pohybů bylo přerušeno. + + + Zastavení programu úspěšně dokončeno. + + + Zastavení programu skončilo s chybou. + + + Zastavení programu spuštěno. + + + Zastavení programu bylo přerušeno. + + + Reset všech výstupů úspěšně dokončeno. + + + Reset všech výstupů skončilo s chybou. + + + Reset všech výstupů spuštěno. + + + Reset všech výstupů bylo přerušeno. + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.de-DE.resx b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.de-DE.resx index 972f3146..58300c70 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.de-DE.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.de-DE.resx @@ -480,4 +480,136 @@ OUT + + ist AUS + + + CutEnableDrives [CUT_ENABLE_DRIVES] + + + NormalStop [NORMAL_STOP_ACTIVE] + + + Daten vom Roboter + + + Daten zum Roboter + + + Lokaler Not-Halt aktiv + + + Lokaler Not-Halt OK + + + Alle Ausgänge zurücksetzen + + + Roboter im Handbetrieb. MoveEnable wird beim Wechsel in den Handbetrieb gesetzt! + + + Warten auf Signal: + + + Warten auf Rückspiegelung der Bewegungsparameter. + + + Warten auf Bestätigung der Aktionsnummer 253 durch den Roboter (Parameter quittiert). + + + Warten auf Bestätigung der Aktionsnummer 254 durch den Roboter (Parameter gesendet). + + + Warten auf Bestätigung der Aktionsnummer 255 durch den Roboter (Bewegung beendet). + + + Start am Main erfolgreich abgeschlossen. + + + Start am Main mit Fehler beendet. + + + Start am Main gestartet. + + + Start am Main wurde abgebrochen. + + + Motoren starten erfolgreich abgeschlossen. + + + Motoren starten wurde abgebrochen. + + + Motoren, Programm und Bewegungen starten gestartet. + + + Motoren, Programm und Bewegungen starten wurde abgebrochen. + + + Bewegungen starten gestartet. + + + Bewegungen starten wurde abgebrochen. + + + Programm starten erfolgreich abgeschlossen. + + + Programm starten mit Fehler beendet. + + + Programm starten gestartet. + + + Programm starten wurde abgebrochen. + + + Motoren anhalten erfolgreich abgeschlossen. + + + Motoren anhalten wurde abgebrochen. + + + Bewegungen und Programm anhalten erfolgreich abgeschlossen. + + + Bewegungen und Programm anhalten wurde abgebrochen. + + + Bewegungen anhalten erfolgreich abgeschlossen. + + + Bewegungen anhalten mit Fehler beendet. + + + Bewegungen anhalten gestartet. + + + Bewegungen anhalten wurde abgebrochen. + + + Programm anhalten erfolgreich abgeschlossen. + + + Programm anhalten mit Fehler beendet. + + + Programm anhalten gestartet. + + + Programm anhalten wurde abgebrochen. + + + Alle Ausgänge zurücksetzen erfolgreich abgeschlossen. + + + Alle Ausgänge zurücksetzen mit Fehler beendet. + + + Alle Ausgänge zurücksetzen gestartet. + + + Alle Ausgänge zurücksetzen wurde abgebrochen. + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.es-ES.resx b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.es-ES.resx index c9d9b117..76a34d06 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.es-ES.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.es-ES.resx @@ -480,4 +480,136 @@ OUT + + está apagado + + + CutEnableDrives [CUT_ENABLE_DRIVES] + + + NormalStop [NORMAL_STOP_ACTIVE] + + + Datos del robot + + + Datos al robot + + + Parada de emergencia local activa + + + Parada de emergencia local OK + + + Restablecer todas las salidas + + + Robot en modo manual. MoveEnable se activa al entrar en modo manual. + + + Esperando la señal: + + + Esperando el reflejo de los parámetros de movimiento. + + + Esperando que el robot confirme la acción 253 (parámetros confirmados). + + + Esperando que el robot confirme la acción 254 (parámetros enviados). + + + Esperando que el robot confirme la acción 255 (movimiento finalizado). + + + Inicio en main finalizado correctamente. + + + Inicio en main finalizado con error. + + + Inicio en main iniciado. + + + Inicio en main fue abortado. + + + Arrancar motores finalizado correctamente. + + + Arrancar motores fue abortado. + + + Arrancar motores, programa y movimientos iniciado. + + + Arrancar motores, programa y movimientos fue abortado. + + + Iniciar movimientos iniciado. + + + Iniciar movimientos fue abortado. + + + Iniciar programa finalizado correctamente. + + + Iniciar programa finalizado con error. + + + Iniciar programa iniciado. + + + Iniciar programa fue abortado. + + + Parar motores finalizado correctamente. + + + Parar motores fue abortado. + + + Detener movimientos y programa finalizado correctamente. + + + Detener movimientos y programa fue abortado. + + + Detener movimientos finalizado correctamente. + + + Detener movimientos finalizado con error. + + + Detener movimientos iniciado. + + + Detener movimientos fue abortado. + + + Detener programa finalizado correctamente. + + + Detener programa finalizado con error. + + + Detener programa iniciado. + + + Detener programa fue abortado. + + + Restablecer todas las salidas finalizado correctamente. + + + Restablecer todas las salidas finalizado con error. + + + Restablecer todas las salidas iniciado. + + + Restablecer todas las salidas fue abortado. + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.resx b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.resx index dc8bd4e2..396856fc 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.resx @@ -486,4 +486,136 @@ OUT + + is OFF + + + CutEnableDrives [CUT_ENABLE_DRIVES] + + + NormalStop [NORMAL_STOP_ACTIVE] + + + Data from robot + + + Data to robot + + + Local emergency stop active + + + Local emergency stop OK + + + Reset all outputs + + + Robot in manual mode. MoveEnable is set on entering manual mode! + + + Waiting for signal: + + + Waiting for the movement parameters to be mirrored back. + + + Waiting for the robot to confirm action number 253 (parameters acknowledged). + + + Waiting for the robot to confirm action number 254 (parameters sent). + + + Waiting for the robot to confirm action number 255 (movement finished). + + + Start at main finished successfully. + + + Start at main finished with error. + + + Start at main started. + + + Start at main was aborted. + + + Start motors finished successfully. + + + Start motors was aborted. + + + Start motors, program and movements started. + + + Start motors, program and movements was aborted. + + + Start movements started. + + + Start movements was aborted. + + + Start program finished successfully. + + + Start program finished with error. + + + Start program started. + + + Start program was aborted. + + + Stop motors finished successfully. + + + Stop motors was aborted. + + + Stop movements and program finished successfully. + + + Stop movements and program was aborted. + + + Stop movements finished successfully. + + + Stop movements finished with error. + + + Stop movements started. + + + Stop movements was aborted. + + + Stop program finished successfully. + + + Stop program finished with error. + + + Stop program started. + + + Stop program was aborted. + + + Reset all outputs finished successfully. + + + Reset all outputs finished with error. + + + Reset all outputs started. + + + Reset all outputs was aborted. + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.sk-SK.resx b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.sk-SK.resx index 1d0c46da..8aa5ee05 100644 --- a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.sk-SK.resx +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/Properties/Localizations.sk-SK.resx @@ -480,4 +480,136 @@ OUT + + je vypnutý + + + CutEnableDrives [CUT_ENABLE_DRIVES] + + + NormalStop [NORMAL_STOP_ACTIVE] + + + Dáta z robota + + + Dáta do robota + + + Aktívne lokálne núdzové zastavenie + + + Lokálne núdzové zastavenie OK + + + Reset všetkých výstupov + + + Robot v ručnom režime. MoveEnable je nastavený pri prechode do ručného režimu! + + + Čakanie na signál: + + + Čakanie na zrkadlenie parametrov pohybu späť. + + + Čakanie na potvrdenie čísla akcie 253 robotom (parametre potvrdené). + + + Čakanie na potvrdenie čísla akcie 254 robotom (parametre odoslané). + + + Čakanie na potvrdenie čísla akcie 255 robotom (pohyb dokončený). + + + Spustiť od main úspešne dokončené. + + + Spustiť od main skončilo s chybou. + + + Spustiť od main spustené. + + + Spustiť od main bolo prerušené. + + + Spustenie motorov úspešne dokončené. + + + Spustenie motorov bolo prerušené. + + + Spustenie motorov, programu a pohybov spustené. + + + Spustenie motorov, programu a pohybov bolo prerušené. + + + Spustenie pohybov spustené. + + + Spustenie pohybov bolo prerušené. + + + Spustenie programu úspešne dokončené. + + + Spustenie programu skončilo s chybou. + + + Spustenie programu spustené. + + + Spustenie programu bolo prerušené. + + + Zastavenie motorov úspešne dokončené. + + + Zastavenie motorov bolo prerušené. + + + Zastavenie pohybov a programu úspešne dokončené. + + + Zastavenie pohybov a programu bolo prerušené. + + + Zastavenie pohybov úspešne dokončené. + + + Zastavenie pohybov skončilo s chybou. + + + Zastavenie pohybov spustené. + + + Zastavenie pohybov bolo prerušené. + + + Zastavenie programu úspešne dokončené. + + + Zastavenie programu skončilo s chybou. + + + Zastavenie programu spustené. + + + Zastavenie programu bolo prerušené. + + + Reset všetkých výstupov úspešne dokončené. + + + Reset všetkých výstupov skončilo s chybou. + + + Reset všetkých výstupov spustené. + + + Reset všetkých výstupov bolo prerušené. + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssEcat_v_9_3_x.cs b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssEcat_v_9_3_x.cs new file mode 100644 index 00000000..a9264968 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssEcat_v_9_3_x.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Text.RegularExpressions; +using Vortex.Connector; + +namespace TcoKukaRobotics +{ + public partial class TcoKukaKssEcat_v_9_3_x + { + private const string blank = " "; + private string onlineMsg = string.Empty; string additionalInfo = " "; + + + public string AdvancedDiagnosticMessage + { + + get + { + + if (onlineMsg == _messenger._mime.Text.Cyclic) + { + return additionalInfo; + } + + + onlineMsg = _messenger._mime.Text.Synchron; + additionalInfo = blank; + var numberFromString = string.Join(string.Empty, Regex.Matches(onlineMsg, @"\d+").OfType().Select(m => m.Value)); + + + uint errorCode; + + UInt32.TryParse(numberFromString, out errorCode); + if (TcoKrc4ControllerEvents_v_5_x_x.Ids.ContainsKey(errorCode)) + additionalInfo = TcoKrc4ControllerEvents_v_5_x_x.Ids.Where(key => key.Key == errorCode).FirstOrDefault().Value; + + + return additionalInfo; + + } + } + + + + + + + + + } + +} + + diff --git a/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssPn_v_9_3_x.cs b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssPn_v_9_3_x.cs new file mode 100644 index 00000000..c390c9b5 --- /dev/null +++ b/src/TcoKukaRobotics/src/TcoKukaRoboticsConnector/pex/TcoKukaKssPn_v_9_3_x.cs @@ -0,0 +1,54 @@ +using System; +using System.Linq; +using System.Text.RegularExpressions; +using Vortex.Connector; + +namespace TcoKukaRobotics +{ + public partial class TcoKukaKssPn_v_9_3_x + { + private const string blank = " "; + private string onlineMsg = string.Empty; string additionalInfo = " "; + + + public string AdvancedDiagnosticMessage + { + + get + { + + if (onlineMsg == _messenger._mime.Text.Cyclic) + { + return additionalInfo; + } + + + onlineMsg = _messenger._mime.Text.Synchron; + additionalInfo = blank; + var numberFromString = string.Join(string.Empty, Regex.Matches(onlineMsg, @"\d+").OfType().Select(m => m.Value)); + + + uint errorCode; + + UInt32.TryParse(numberFromString, out errorCode); + if (TcoKrc4ControllerEvents_v_5_x_x.Ids.ContainsKey(errorCode)) + additionalInfo = TcoKrc4ControllerEvents_v_5_x_x.Ids.Where(key => key.Key == errorCode).FirstOrDefault().Value; + + + return additionalInfo; + + } + } + + + + + + + + + } + +} + + diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Config_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Config_v_9_3_x.TcDUT new file mode 100644 index 00000000..a502e0c9 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Config_v_9_3_x.TcDUT @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Control_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Control_v_9_3_x.TcDUT new file mode 100644 index 00000000..b33031de --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Control_v_9_3_x.TcDUT @@ -0,0 +1,94 @@ + + + + "} + ExternalStart : BOOL; + + {attribute addProperty Name "<#Move Enable [MOVE_ENABLE]#>"} + MoveEnable : BOOL; + + {attribute addProperty Name "<#Error Confirmation [CONF_MESS]#>"} + ErrorConfirmation : BOOL; + + {attribute addProperty Name "<#Drives Off [DRIVES_OFF]#>"} + DrivesOff : BOOL; + + {attribute addProperty Name "<#Drives On [DRIVES_ON]#>"} + DrivesOn : BOOL; + + {attribute addProperty Name "<#Activate Interface [I_O_ACT]#>"} + ActivateInterface : BOOL; + + {attribute addProperty Name "<#Start At Main [START_AT_MAIN]#>"} + StartAtMain : BOOL; + + {attribute addProperty Name "<#Master mode#>"} + MasterMode : BYTE; + + {attribute addProperty Name "<#Tool 1 retract#>"} + Tool_1_Retract : BOOL; + + {attribute addProperty Name "<#Tool 1 extend#>"} + Tool_1_Extend : BOOL; + + {attribute addProperty Name "<#Tool 2 retract#>"} + Tool_2_Retract : BOOL; + + {attribute addProperty Name "<#Tool 2 extend#>"} + Tool_2_Extend : BOOL; + + {attribute addProperty Name "<#Tool 3 retract#>"} + Tool_3_Retract : BOOL; + + {attribute addProperty Name "<#Tool 3 extend#>"} + Tool_3_Extend : BOOL; + + {attribute addProperty Name "<#Tool 4 retract#>"} + Tool_4_Retract : BOOL; + + {attribute addProperty Name "<#Tool 4 extend#>"} + Tool_4_Extend : BOOL; + + {attribute addProperty Name "<#Zones#>"} + Zone : BYTE; + + {attribute addProperty Name "<#In position#>"} + InPosition : BYTE; + + {attribute addProperty Name "<#Action number#>"} + ActionNo : BYTE; + + {attribute addProperty Name "<#Global robot speed#>"} + GlobalSpeed : BYTE; + + {attribute addProperty Name "<#Tool number#>"} + ToolNo : BYTE; + + {attribute addProperty Name "<#Workobject number#>"} + WorkobjectNo : BYTE; + + {attribute addProperty Name "<#Point number#>"} + PointNo : BYTE; + + {attribute addProperty Name "<#User specific speed 1#>"} + UserSpecSpeed1 : REAL; + + {attribute addProperty Name "<#User specific speed 2#>"} + UserSpecSpeed2 : REAL; + + + + + {attribute addProperty Name "<#Coordinates#>"} + Coordinates : TcoAbstractions.TcoRoboticsCoordinates; + {attribute addProperty Name "<#Data to robot#>"} + DataToRobot : ARRAY[0..19] OF BYTE; +END_STRUCT +END_TYPE +]]> + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_State_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_State_v_9_3_x.TcDUT new file mode 100644 index 00000000..489ca96f --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_State_v_9_3_x.TcDUT @@ -0,0 +1,143 @@ + + + + "} + RcReady : BOOL; + {attribute addProperty Name "<#AlarmStopActive [ALARM_STOP]#>"} + AlarmStopActive : BOOL; + {attribute addProperty Name "<#UserSafetySwitchClosed [USER_SAF]#>"} + UserSafetySwitchClosed : BOOL; + {attribute addProperty Name "<#DrivesReady [PERI_RDY]#>"} + DrivesReady : BOOL; + {attribute addProperty Name "<#RobotCalibrated [ROB_CAL]#>"} + RobotCalibrated : BOOL; + {attribute addProperty Name "<#InterfaceActivated [I_O_ACTCONF]#>"} + InterfaceActivated : BOOL; + {attribute addProperty Name "<#ErrorCollection [STOPMESS]#>"} + StopMess : BOOL; + {attribute addProperty Name "<#RobotStopped [ROB_STOPPED]#>"} + RobotStopped : BOOL; + {attribute addProperty Name "<#InHome [IN_HOME]#>"} + InHome : BOOL; + {attribute addProperty Name "<#Manual [T1]#>"} + Manual : BOOL; + {attribute addProperty Name "<#Local emergency stop OK#>"} + LocalEstopOk : BOOL; + {attribute addProperty Name "<#ExternalAutomatic [EXT]#>"} + ExternalAutomatic : BOOL; + {attribute addProperty Name "<#ProcesActive [PRO_ACT]#>"} + ProActive : BOOL; + + {attribute addProperty Name "<#ProgramMoveActive [PROGRAM MOVEMENT ACTIVE]#>"} + ProgramMoveActive : BOOL; + + {attribute addProperty Name "<#Event ID#>"} + EventId : UDINT; + {attribute addProperty Name "<#PpMoved#>"} + PpMoved : BOOL; + + {attribute addProperty Name "<#StartAtMain#>"} + StartAtMain : BOOL; + + {attribute addProperty Name "<#Error#>"} + Error : BOOL; + + {attribute addProperty Name "<#In area 1#>"} + InArea_1 : BOOL; + + {attribute addProperty Name "<#In area 2#>"} + InArea_2 : BOOL; + + {attribute addProperty Name "<#In area 3#>"} + InArea_3 : BOOL; + + {attribute addProperty Name "<#In area 4#>"} + InArea_4 : BOOL; + + + {attribute addProperty Name "<#In position 1#>"} + InPosition_1 : BOOL; + + {attribute addProperty Name "<#In position 2#>"} + InPosition_2 : BOOL; + + {attribute addProperty Name "<#In position 3#>"} + InPosition_3 : BOOL; + + {attribute addProperty Name "<#In position 4#>"} + InPosition_4 : BOOL; + + + + {attribute addProperty Name "<#Zones#>"} + Zone : BYTE; + + {attribute addProperty Name "<#In position#>"} + InPosition : BYTE; + + + + {attribute addProperty Name "<#Tool 1 retract#>"} + Tool_1_Retract : BOOL; + + {attribute addProperty Name "<#Tool 1 extend#>"} + Tool_1_Extend : BOOL; + + {attribute addProperty Name "<#Tool 2 retract#>"} + Tool_2_Retract : BOOL; + + {attribute addProperty Name "<#Tool 2 extend#>"} + Tool_2_Extend : BOOL; + + {attribute addProperty Name "<#Tool 3 retract#>"} + Tool_3_Retract : BOOL; + + {attribute addProperty Name "<#Tool 3 extend#>"} + Tool_3_Extend : BOOL; + + {attribute addProperty Name "<#Tool 4 retract#>"} + Tool_4_Retract : BOOL; + + {attribute addProperty Name "<#Tool 4 extend#>"} + Tool_4_Extend : BOOL; + + + + + {attribute addProperty Name "<#Action number#>"} + ActionNo : BYTE; + + {attribute addProperty Name "<#Global speed#>"} + GlobalSpeed : BYTE; + + {attribute addProperty Name "<#Tool number#>"} + ToolNo : BYTE; + + {attribute addProperty Name "<#Workobject number#>"} + WorkobjectNo : BYTE; + + {attribute addProperty Name "<#PointNumber#>"} + PointNo : BYTE; + + {attribute addProperty Name "<#User specific speed 1#>"} + UserSpecSpeed1 : DINT; + + {attribute addProperty Name "<#User specific speed 2#>"} + UserSpecSpeed2 : DINT; + + {attribute addProperty Name "<#Coordinates#>"} + Coordinates : TcoAbstractions.TcoRoboticsCoordinates; + {attribute addProperty Name "<#NormalStop [NORMAL_STOP_ACTIVE]#>"} + NormalStop : BOOL; + {attribute addProperty Name "<#CutEnableDrives [CUT_ENABLE_DRIVES]#>"} + CutEnableDrives : BOOL; + {attribute addProperty Name "<#Data from robot#>"} + DataFromRobot : ARRAY[0..15] OF BYTE; +END_STRUCT +END_TYPE +]]> + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Status_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Status_v_9_3_x.TcDUT new file mode 100644 index 00000000..faaf9242 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/DUTs/Kss/TcoKukaKss_Status_v_9_3_x.TcDUT @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssEcat_IO_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssEcat_IO_v_9_3_x.TcDUT new file mode 100644 index 00000000..79f79da3 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssEcat_IO_v_9_3_x.TcDUT @@ -0,0 +1,14 @@ + + + + "} + In : TcoKukaKss_Inputs_v_9_3_x; + {attribute addProperty Name "<#OUT#>"} + Out : TcoKukaKss_Outputs_v_9_3_x; +END_STRUCT +END_TYPE +]]> + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssPn_IO_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssPn_IO_v_9_3_x.TcDUT new file mode 100644 index 00000000..21228b22 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKssPn_IO_v_9_3_x.TcDUT @@ -0,0 +1,17 @@ + + + + "} + In : TcoKukaKss_Inputs_v_9_3_x; + {attribute addProperty Name "<#OUT#>"} + Out : TcoKukaKss_Outputs_v_9_3_x; +END_STRUCT +END_TYPE +]]> + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Inputs_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Inputs_v_9_3_x.TcDUT new file mode 100644 index 00000000..f1c235fd --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Inputs_v_9_3_x.TcDUT @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Outputs_v_9_3_x.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Outputs_v_9_3_x.TcDUT new file mode 100644 index 00000000..4ac7c769 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/IO/TcoKukaKss_Outputs_v_9_3_x.TcDUT @@ -0,0 +1,11 @@ + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssEcat_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssEcat_v_9_3_x.TcPOU new file mode 100644 index 00000000..14b8ff77 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssEcat_v_9_3_x.TcPOU @@ -0,0 +1,752 @@ + + + + + + KUKA robot controller running KSS / iiQKA.OS2 9.3 (ECat). + The interface uses 64 input and 64 output bytes. Compared to TcoKrc4 v5 it adds LocalEstopOk, NormalStop, + CutEnableDrives, user data in both directions and a new start sequence (interface is activated first, + drives are switched on only when CutEnableDrives is present). + + +~*) +FUNCTION_BLOCK TcoKukaKssEcat_v_9_3_x EXTENDS TcoIo.TcoEcatComponent IMPLEMENTS TcoAbstractions.ITcoRobotics +VAR_INPUT + inEnable : BOOL; +END_VAR +VAR_OUTPUT +END_VAR +VAR_IN_OUT + inoData : TcoKukaKssEcat_IO_v_9_3_x; +END_VAR +VAR + {attribute addProperty Name "<#Status#>"} + {attribute clr [ReadOnly()]} + _status : TcoKukaKss_Status_v_9_3_x; + {attribute addProperty Name "<#Control#>"} + _control : TcoKukaKss_Control_v_9_3_x; + {attribute addProperty Name "<#Config#>"} + _config : TcoKukaKss_Config_v_9_3_x; + {attribute addProperty Name "<#ECat Error#>"} + {attribute clr [ReadOnly()]} + _busError : BOOL; + + _someTaskIsActive : BOOL; + _stopTasksAreActive : BOOL; + + _reportTimer : TON; + _errorReportTimer : TON; + {attribute 'hide'} + _manualPV : BOOL; +END_VAR +VAR + {attribute addProperty Name "<#Start at Main#>"} + _startAtMainTask : TcoKukaKss_StartAtMainTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors and program#>"} + _startMotorsAndProgramTask : TcoKukaKss_StartMotorsAndProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start program#>"} + _startProgramTask : TcoKukaKss_StartProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors#>"} + _startMotorsTask : TcoKukaKss_StartMotorsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start movements#>"} + _startMovementsTask : TcoKukaKss_StartMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors program and movements#>"} + _startMotorsProgramAndMovementsTask : TcoKukaKss_StartMotorsProgramAndMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop movements#>"} + _stopMovementsTask : TcoKukaKss_StopMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop movenents and program#>"} + _stopMovementsAndProgramTask : TcoKukaKss_StopMovementsAndProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop program#>"} + _stopProgramTask : TcoKukaKss_StopProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop motors#>"} + _stopMotorsTask : TcoKukaKss_StopMotorsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Reset all outputs#>"} + _resetAllOutputsTask : TcoKukaKss_ResetAllOutputsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Restore#>"} + _restoreTask : TcoCore.TcoTask(THIS^); +END_VAR +]]> + + '); + END_IF; + IF NOT _status.State.LocalEstopOk THEN + Messenger.Error('<#Local emergency stop active#>'); + END_IF; + IF NOT _status.State.UserSafetySwitchClosed THEN + Messenger.Warning('<#Safety Error #>'); + END_IF; +END_IF; + +_errorReportTimer(IN := _status.State.Error, PT := _config.InfoTime); +Messenger.OnCondition(_errorReportTimer.Q).Error(_sb.Clear() + .Append('<#Robot reported an error: #>') + .Append(UDINT_TO_STRING(_status.State.EventId)) + .Append(' |[[0]AdvancedDiagnosticMessage]|') + .Append('.') + .Append('For details see the service mode') + .ToString()); + +_reportTimer(IN := _status.State.Manual, PT := _config.InfoTime); +Messenger.OnCondition(_reportTimer.Q).Warning('<#Robot in manual mode. MoveEnable is set on entering manual mode!#>'); + +UpdateControl();]]> + + + + + + + Gets the configuration of the robot. + + +~*) +PROPERTY Config : REFERENCE TO TcoKukaKss_Config_v_9_3_x]]> + + + + + + + + + + + + + + + + + + + + Gets the status of the robot. + + +~*) +PROPERTY Status : REFERENCE TO TcoKukaKss_Status_v_9_3_x]]> + + + + + + + + + + + + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + + + + + + + + + Custom service (manual, maintenance) logic. + This method must be implemented in derived class. + + +~*) +METHOD PROTECTED ServiceMode]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssPn_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssPn_v_9_3_x.TcPOU new file mode 100644 index 00000000..bd59b4dd --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/KSS/TcoKukaKssPn_v_9_3_x.TcPOU @@ -0,0 +1,755 @@ + + + + + + KUKA robot controller running KSS / iiQKA.OS2 9.3 (PN). + The interface uses 64 input and 64 output bytes. Compared to TcoKrc4 v5 it adds LocalEstopOk, NormalStop, + CutEnableDrives, user data in both directions and a new start sequence (interface is activated first, + drives are switched on only when CutEnableDrives is present). + + +~*) +FUNCTION_BLOCK TcoKukaKssPn_v_9_3_x EXTENDS TcoIo.TcoPnIoComponent IMPLEMENTS TcoAbstractions.ITcoRobotics +VAR_INPUT + inEnable : BOOL; +END_VAR +VAR_OUTPUT +END_VAR +VAR_IN_OUT + inoData : TcoKukaKssPn_IO_v_9_3_x; +END_VAR +VAR + {attribute addProperty Name "<#Status#>"} + {attribute clr [ReadOnly()]} + _status : TcoKukaKss_Status_v_9_3_x; + {attribute addProperty Name "<#Control#>"} + _control : TcoKukaKss_Control_v_9_3_x; + {attribute addProperty Name "<#Config#>"} + _config : TcoKukaKss_Config_v_9_3_x; + {attribute addProperty Name "<#PN Error#>"} + {attribute clr [ReadOnly()]} + _busError : BOOL; + + _someTaskIsActive : BOOL; + _stopTasksAreActive : BOOL; + + _reportTimer : TON; + _errorReportTimer : TON; + {attribute 'hide'} + _manualPV : BOOL; +END_VAR +VAR + {attribute addProperty Name "<#Start at Main#>"} + _startAtMainTask : TcoKukaKss_StartAtMainTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors and program#>"} + _startMotorsAndProgramTask : TcoKukaKss_StartMotorsAndProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start program#>"} + _startProgramTask : TcoKukaKss_StartProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors#>"} + _startMotorsTask : TcoKukaKss_StartMotorsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start movements#>"} + _startMovementsTask : TcoKukaKss_StartMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Start motors program and movements#>"} + _startMotorsProgramAndMovementsTask : TcoKukaKss_StartMotorsProgramAndMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop movements#>"} + _stopMovementsTask : TcoKukaKss_StopMovementsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop movenents and program#>"} + _stopMovementsAndProgramTask : TcoKukaKss_StopMovementsAndProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop program#>"} + _stopProgramTask : TcoKukaKss_StopProgramTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Stop motors#>"} + _stopMotorsTask : TcoKukaKss_StopMotorsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Reset all outputs#>"} + _resetAllOutputsTask : TcoKukaKss_ResetAllOutputsTask_v_9_3_x(THIS^); + + {attribute addProperty Name "<#Restore#>"} + _restoreTask : TcoCore.TcoTask(THIS^); +END_VAR +VAR + {attribute 'hide'} + _sb : TcoCore.StringBuilder; +END_VAR]]> + + '); + END_IF; + IF NOT _status.State.LocalEstopOk THEN + Messenger.Error('<#Local emergency stop active#>'); + END_IF; + IF NOT _status.State.UserSafetySwitchClosed THEN + Messenger.Warning('<#Safety Error #>'); + END_IF; +END_IF; + +_errorReportTimer(IN := _status.State.Error, PT := _config.InfoTime); +Messenger.OnCondition(_errorReportTimer.Q).Error(_sb.Clear() + .Append('<#Robot reported an error: #>') + .Append(UDINT_TO_STRING(_status.State.EventId)) + .Append(' |[[0]AdvancedDiagnosticMessage]|') + .Append('.') + .Append('For details see the service mode') + .ToString()); + +_reportTimer(IN := _status.State.Manual, PT := _config.InfoTime); +Messenger.OnCondition(_reportTimer.Q).Warning('<#Robot in manual mode. MoveEnable is set on entering manual mode!#>'); + +UpdateControl();]]> + + + + + + + Gets the configuration of the robot. + + +~*) +PROPERTY Config : REFERENCE TO TcoKukaKss_Config_v_9_3_x]]> + + + + + + + + + + + + + + + + + + + + Gets the status of the robot. + + +~*) +PROPERTY Status : REFERENCE TO TcoKukaKss_Status_v_9_3_x]]> + + + + + + + + + + + + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + + + + + + + + + Custom service (manual, maintenance) logic. + This method must be implemented in derived class. + + +~*) +METHOD PROTECTED ServiceMode]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKssTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKssTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..8ae93ed6 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKssTask_v_9_3_x.TcPOU @@ -0,0 +1,91 @@ + + + + + + + + + + + T#0S OR NOT inValue THEN +_errorTimer(IN := inValue, PT := THIS^.inoConfig.ErrorTime); +END_IF; +IF __ISVALIDREF(inoConfig) AND THIS^.inoConfig.InfoTime <>T#0S OR NOT inValue THEN +_infoTimer(IN := inValue, PT := THIS^.inoConfig.InfoTime); +END_IF;]]> + + + + + + Checks the references to the config, control and status structures. Returns TRUE when all of them are valid. + + +~*) +METHOD PROTECTED CheckReferences : BOOL]]> + + ').Append(_varInfo.Symbol).ToString()).Pin(); +ELSIF NOT __ISVALIDREF(inoConfig) THEN + _varInfo :=__VARINFO(inoConfig); + Messenger.Programming(_sb.Clear().Append('<#Invalid reference: #>').Append(_varInfo.Symbol).ToString()).Pin(); +ELSIF NOT __ISVALIDREF(inoStatus) THEN + _varInfo :=__VARINFO(inoStatus); + Messenger.Programming(_sb.Clear().Append('<#Invalid reference: #>').Append(_varInfo.Symbol).ToString()).Pin(); +ELSE + CheckReferences := TRUE; +END_IF]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_ResetAllOutputsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_ResetAllOutputsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..3b86afa8 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_ResetAllOutputsTask_v_9_3_x.TcPOU @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartAtMainTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartAtMainTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..8383b212 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartAtMainTask_v_9_3_x.TcPOU @@ -0,0 +1,138 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.PpMoved THEN + inoControl.StartAtMain := FALSE; + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.StartAtMain := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +IF __ISVALIDREF(inoControl) THEN + inoControl.StartAtMain := FALSE; +END_IF +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +IF __ISVALIDREF(inoControl) THEN + inoControl.StartAtMain := FALSE; +END_IF +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsAndProgramTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsAndProgramTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..66e60ff6 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsAndProgramTask_v_9_3_x.TcPOU @@ -0,0 +1,213 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.InterfaceActivated THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // AX step 1: enable, try to acknowledge errors, waiting for 'CutEnableDrives' + inoControl.MoveEnable := TRUE; + inoControl.DrivesOff := TRUE; + inoControl.ActionNo := 255; + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.CutEnableDrives); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.CutEnableDrives).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.CutEnableDrives THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + // AX step 2: waiting for 'AlarmStopActive' + _varInfo :=__VARINFO(inoStatus.State.AlarmStopActive); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.AlarmStopActive).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.AlarmStopActive THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 4 THEN + // AX step 3: drives on, waiting for 'DrivesReady' + inoControl.DrivesOff := TRUE; + IF inoStatus.State.CutEnableDrives THEN + inoControl.DrivesOn := _blink.outQ; + END_IF + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.DrivesReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.DrivesReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.DrivesReady THEN + inoControl.DrivesOn := FALSE; + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 5 THEN + // AX step 4: acknowledge, waiting for 'StopMess' to be off + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.StopMess); + THIS^.Messenger.OnCondition(_infoTimer.Q AND inoStatus.State.StopMess).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.StopMess THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 6 THEN + // AX step 5: waiting for 'RcReady' + inoControl.MoveEnable := TRUE; + inoControl.ErrorConfirmation := inoStatus.State.AlarmStopActive AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.RcReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.RcReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.RcReady THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 7 THEN + // AX step 6: external start, waiting for 'ProActive' + IF inoStatus.State.StopMess OR NOT inoStatus.State.RcReady OR inoStatus.State.NormalStop THEN + inoControl.ExternalStart := FALSE; // not in AX: do not leave EXT_START high while the sequence restarts + _progress := 1; + ELSE + inoControl.ExternalStart := _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.ProActive); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.ProActive).Warning(_sb.Clear().Append('<#Waiting for program running signal! #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.ProActive THEN + inoControl.ExternalStart := FALSE; + _progress := _progress + 1; + END_IF + END_IF + END_IF + + IF _progress = 8 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; + inoControl.ExternalStart := FALSE; + inoControl.ErrorConfirmation := FALSE; + inoControl.MoveEnable := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; + inoControl.ExternalStart := FALSE; +END_IF +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; + inoControl.ExternalStart := FALSE; + inoControl.ActivateInterface := FALSE; +END_IF +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsProgramAndMovementsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsProgramAndMovementsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..419e7fe1 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsProgramAndMovementsTask_v_9_3_x.TcPOU @@ -0,0 +1,220 @@ + + + + + + ', TcoCore.eMessageCategory.ProgrammingError); + RETURN; +END_IF +_startMotorsAndProgramTask REF= refStartMotorsAndProgramTask; + +IF Execute() THEN + _blink(inOnTime:=T#500MS,inOffTime:=T#500MS); + + IF _progress = 0 THEN + IF CheckReferences() THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 1 THEN + // start motors and program (replaces AX StartMovements steps 0..2) + IF _startMotorsAndProgramTask.Invoke().Done THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // AX step 3: sending parameters of the movement to the controller + inoControl.GlobalSpeed := _moveParams.GlobalSpeed; + inoControl.ToolNo := _moveParams.ToolNo; + inoControl.WorkobjectNo := _moveParams.WorkobjectNo; + inoControl.PointNo := _moveParams.PointNo; + inoControl.UserSpecSpeed1 := _moveParams.UserSpecSpeed1; + inoControl.UserSpecSpeed2 := _moveParams.UserSpecSpeed2; + inoControl.Coordinates := _moveParams.Coordinates; + inoControl.ActionNo := 254; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 254 (parameters sent).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + // AX step 4: waiting for the movement parameters sent to the controller to be mirrored back + IF _infoTimer.Q THEN + _varInfo :=__VARINFO(inoStatus.State.GlobalSpeed); + THIS^.Messenger.OnCondition(inoStatus.State.GlobalSpeed <> _moveParams.GlobalSpeed).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.ToolNo); + THIS^.Messenger.OnCondition(inoStatus.State.ToolNo <> _moveParams.ToolNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.WorkobjectNo); + THIS^.Messenger.OnCondition(inoStatus.State.WorkobjectNo <> _moveParams.WorkobjectNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.PointNo); + THIS^.Messenger.OnCondition(inoStatus.State.PointNo <> _moveParams.PointNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.UserSpecSpeed1); + THIS^.Messenger.OnCondition(inoStatus.State.UserSpecSpeed1 <> _moveParams.UserSpecSpeed1).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.UserSpecSpeed2); + THIS^.Messenger.OnCondition(inoStatus.State.UserSpecSpeed2 <> _moveParams.UserSpecSpeed2).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + THIS^.Messenger.OnCondition(NOT TcoAbstractions.CoordinatesAreEqual(inoStatus.State.Coordinates,_moveParams.Coordinates,0.01,0.01,0.01,0.01,0.01,0.01)).Warning('<#Waiting for the movement parameters to be mirrored back.#>'); + END_IF + IF inoStatus.State.GlobalSpeed = _moveParams.GlobalSpeed AND + inoStatus.State.ToolNo = _moveParams.ToolNo AND + inoStatus.State.WorkobjectNo = _moveParams.WorkobjectNo AND + inoStatus.State.PointNo = _moveParams.PointNo AND + inoStatus.State.UserSpecSpeed1 = _moveParams.UserSpecSpeed1 AND + inoStatus.State.UserSpecSpeed2 = _moveParams.UserSpecSpeed2 AND + TcoAbstractions.CoordinatesAreEqual(inoStatus.State.Coordinates,_moveParams.Coordinates,0.01,0.01,0.01,0.01,0.01,0.01) THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 4 THEN + // AX step 5: acknowledging of the movement parameters + inoControl.ActionNo := 253; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 253 (parameters acknowledged).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 5 THEN + // AX step 6: waiting for the movement to be finished + inoControl.ActionNo := _moveParams.ActionNo; + THIS^.Messenger.OnCondition(_infoTimer.Q).Info(CONCAT('<#Moving to position ID#>: ', BYTE_TO_STRING(_moveParams.ActionNo))); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 6 THEN + // AX step 7: acknowledging of the finished movement + inoControl.ActionNo := 255; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 255 (movement finished).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 7 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.MoveEnable := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..2766bddb --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMotorsTask_v_9_3_x.TcPOU @@ -0,0 +1,170 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.InterfaceActivated THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // AX step 1: enable, try to acknowledge errors, waiting for 'CutEnableDrives' + inoControl.MoveEnable := TRUE; + inoControl.DrivesOff := TRUE; + inoControl.ActionNo := 255; + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.CutEnableDrives); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.CutEnableDrives).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.CutEnableDrives THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + // AX step 2: waiting for 'AlarmStopActive' + _varInfo :=__VARINFO(inoStatus.State.AlarmStopActive); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.AlarmStopActive).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.AlarmStopActive THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 4 THEN + // AX step 3: drives on, waiting for 'DrivesReady' + inoControl.DrivesOff := TRUE; + IF inoStatus.State.CutEnableDrives THEN + inoControl.DrivesOn := _blink.outQ; + END_IF + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.DrivesReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.DrivesReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.DrivesReady THEN + inoControl.DrivesOn := FALSE; + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 5 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; +END_IF +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOn := FALSE; +END_IF +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMovementsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMovementsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..b779ce80 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartMovementsTask_v_9_3_x.TcPOU @@ -0,0 +1,231 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.ProActive THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // AX step 1: waiting for 'DrivesReady' + _varInfo :=__VARINFO(inoStatus.State.DrivesReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.DrivesReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.DrivesReady THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + // AX step 2: waiting for 'StopMess' to be off + _varInfo :=__VARINFO(inoStatus.State.StopMess); + THIS^.Messenger.OnCondition(_infoTimer.Q AND inoStatus.State.StopMess).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.StopMess THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 4 THEN + // AX step 3: sending parameters of the movement to the controller + inoControl.GlobalSpeed := _moveParams.GlobalSpeed; + inoControl.ToolNo := _moveParams.ToolNo; + inoControl.WorkobjectNo := _moveParams.WorkobjectNo; + inoControl.PointNo := _moveParams.PointNo; + inoControl.UserSpecSpeed1 := _moveParams.UserSpecSpeed1; + inoControl.UserSpecSpeed2 := _moveParams.UserSpecSpeed2; + inoControl.Coordinates := _moveParams.Coordinates; + inoControl.ActionNo := 254; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 254 (parameters sent).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 5 THEN + // AX step 4: waiting for the movement parameters sent to the controller to be mirrored back + IF _infoTimer.Q THEN + _varInfo :=__VARINFO(inoStatus.State.GlobalSpeed); + THIS^.Messenger.OnCondition(inoStatus.State.GlobalSpeed <> _moveParams.GlobalSpeed).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.ToolNo); + THIS^.Messenger.OnCondition(inoStatus.State.ToolNo <> _moveParams.ToolNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.WorkobjectNo); + THIS^.Messenger.OnCondition(inoStatus.State.WorkobjectNo <> _moveParams.WorkobjectNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.PointNo); + THIS^.Messenger.OnCondition(inoStatus.State.PointNo <> _moveParams.PointNo).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.UserSpecSpeed1); + THIS^.Messenger.OnCondition(inoStatus.State.UserSpecSpeed1 <> _moveParams.UserSpecSpeed1).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + _varInfo :=__VARINFO(inoStatus.State.UserSpecSpeed2); + THIS^.Messenger.OnCondition(inoStatus.State.UserSpecSpeed2 <> _moveParams.UserSpecSpeed2).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + THIS^.Messenger.OnCondition(NOT TcoAbstractions.CoordinatesAreEqual(inoStatus.State.Coordinates,_moveParams.Coordinates,0.01,0.01,0.01,0.01,0.01,0.01)).Warning('<#Waiting for the movement parameters to be mirrored back.#>'); + END_IF + IF inoStatus.State.GlobalSpeed = _moveParams.GlobalSpeed AND + inoStatus.State.ToolNo = _moveParams.ToolNo AND + inoStatus.State.WorkobjectNo = _moveParams.WorkobjectNo AND + inoStatus.State.PointNo = _moveParams.PointNo AND + inoStatus.State.UserSpecSpeed1 = _moveParams.UserSpecSpeed1 AND + inoStatus.State.UserSpecSpeed2 = _moveParams.UserSpecSpeed2 AND + TcoAbstractions.CoordinatesAreEqual(inoStatus.State.Coordinates,_moveParams.Coordinates,0.01,0.01,0.01,0.01,0.01,0.01) THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 6 THEN + // AX step 5: acknowledging of the movement parameters + inoControl.ActionNo := 253; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 253 (parameters acknowledged).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 7 THEN + // AX step 6: waiting for the movement to be finished + inoControl.ActionNo := _moveParams.ActionNo; + THIS^.Messenger.OnCondition(_infoTimer.Q).Info(CONCAT('<#Moving to position ID#>: ', BYTE_TO_STRING(_moveParams.ActionNo))); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 8 THEN + // AX step 7: acknowledging of the finished movement + inoControl.ActionNo := 255; + THIS^.Messenger.OnCondition(_infoTimer.Q).Warning('<#Waiting for the robot to confirm action number 255 (movement finished).#>'); + IF inoControl.ActionNo = inoStatus.State.ActionNo THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 9 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.MoveEnable := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartProgramTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartProgramTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..c02020c8 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StartProgramTask_v_9_3_x.TcPOU @@ -0,0 +1,199 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.InterfaceActivated THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // as AX step 1, but waits for 'DrivesReady' instead of switching the drives on + inoControl.MoveEnable := TRUE; + inoControl.DrivesOff := TRUE; + inoControl.ActionNo := 255; + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.DrivesReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.DrivesReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.DrivesReady THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + // AX step 4: acknowledge, waiting for 'StopMess' to be off + inoControl.ErrorConfirmation := inoStatus.State.StopMess AND _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.StopMess); + THIS^.Messenger.OnCondition(_infoTimer.Q AND inoStatus.State.StopMess).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.StopMess THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 4 THEN + // AX step 5: waiting for 'RcReady' + inoControl.MoveEnable := TRUE; + inoControl.ErrorConfirmation := inoStatus.State.AlarmStopActive AND NOT _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.RcReady); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.RcReady).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.RcReady THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 5 THEN + // AX step 6: external start, waiting for 'ProActive' + IF inoStatus.State.StopMess OR NOT inoStatus.State.RcReady OR inoStatus.State.NormalStop THEN + inoControl.ExternalStart := FALSE; // not in AX: do not leave EXT_START high while the sequence restarts + _progress := 1; + ELSE + inoControl.ExternalStart := _blink.outQ; + _varInfo :=__VARINFO(inoStatus.State.ProActive); + THIS^.Messenger.OnCondition(_infoTimer.Q AND NOT inoStatus.State.ProActive).Warning(_sb.Clear().Append('<#Waiting for program running signal! #>').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.ProActive THEN + inoControl.ExternalStart := FALSE; + _progress := _progress + 1; + END_IF + END_IF + END_IF + + IF _progress = 6 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.ExternalStart := FALSE; + inoControl.ErrorConfirmation := FALSE; + inoControl.MoveEnable := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +IF __ISVALIDREF(inoControl) THEN + inoControl.ExternalStart := FALSE; +END_IF +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +IF __ISVALIDREF(inoControl) THEN + inoControl.ExternalStart := FALSE; + inoControl.ActivateInterface := FALSE; +END_IF +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMotorsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMotorsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..4484de5e --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMotorsTask_v_9_3_x.TcPOU @@ -0,0 +1,135 @@ + + + + + + ').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.DrivesReady THEN + inoControl.DrivesOff := FALSE; + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOff := FALSE; +END_IF +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOff := FALSE; +END_IF +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +IF __ISVALIDREF(inoControl) THEN + inoControl.DrivesOff := FALSE; +END_IF +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsAndProgramTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsAndProgramTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..30ac57e7 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsAndProgramTask_v_9_3_x.TcPOU @@ -0,0 +1,146 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.RobotStopped THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + // AX step 1: waiting for 'ProActive' to be off + _varInfo :=__VARINFO(inoStatus.State.ProActive); + THIS^.Messenger.OnCondition(_infoTimer.Q AND inoStatus.State.ProActive).Warning(_sb.Clear().Append('<#Waiting for signal: #>').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.ProActive THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 3 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..66bb7e1f --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopMovementsTask_v_9_3_x.TcPOU @@ -0,0 +1,137 @@ + + + + + + ').Append(_varInfo.Symbol).ToString()); + IF inoStatus.State.RobotStopped THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopProgramTask_v_9_3_x.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopProgramTask_v_9_3_x.TcPOU new file mode 100644 index 00000000..0bb2c675 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/POUs/Prototypes/RoboticsTasks/Kss_v_9_3_x/TcoKukaKss_StopProgramTask_v_9_3_x.TcPOU @@ -0,0 +1,136 @@ + + + + + + ').Append(_varInfo.Symbol).Append('<# is OFF#>').ToString()); + IF NOT inoStatus.State.ProActive THEN + _progress := _progress + 1; + END_IF + END_IF + + IF _progress = 2 THEN + DoneWhen(TRUE); + END_IF + + CallTimers(TRUE); + THIS^.ThrowWhen(_errorTimer.Q); +END_IF + +IF THIS^.Error AND NOT _errorMessage.Pinned THEN + THIS^.Restore(); +END_IF]]> + + + + + + + + + + + + + + + + + Executes when task is aborted. + + +~*) +METHOD PROTECTED OnAbort +]]> + + '; END_IF; +]]> + + + + + + Executes when task reaches the ```Done``` state . + + +~*) +METHOD PROTECTED OnDone +]]> + + '; END_IF; +_progress := 0;]]> + + + + + + Executes when task reaches the ```Error``` state. + + +~*) +METHOD PROTECTED OnError +VAR + description: STRING; +END_VAR]]> + + '; +IF __ISVALIDREF(inoStatus) THEN THIS^.inoStatus.ActionDescription := description; END_IF; +THIS^._errorMessage.Error(_sb.Clear().Append(description).Append(' To restore acknowledge this alarm.').ToString()).Pin(); +]]> + + + + + + '; END_IF; +CallTimers(FALSE); +]]> + + + + + + Restores this instance to the Ready state. Can be called explicitly or from within one of the restore mechanisms. + + See also + + + +~*) +METHOD Restore : ITcoRestorable]]> + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/TcoKukaRobotics.plcproj b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/TcoKukaRobotics.plcproj index bae1bc73..b3293ca4 100644 --- a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/TcoKukaRobotics.plcproj +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRobotics/TcoKukaRobotics.plcproj @@ -48,6 +48,72 @@ Code + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + + + Code + Code @@ -104,6 +170,10 @@ + + + + diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/GVLs/GVL.TcGVL b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/GVLs/GVL.TcGVL index 14c23d3c..85ad3e3c 100644 --- a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/GVLs/GVL.TcGVL +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/GVLs/GVL.TcGVL @@ -4,6 +4,9 @@ diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/POUs/MAIN.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/POUs/MAIN.TcPOU index 076907b7..bbd70e08 100644 --- a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/POUs/MAIN.TcPOU +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/POUs/MAIN.TcPOU @@ -4,6 +4,7 @@ Code + + Code + + + Code + Code @@ -57,6 +63,7 @@ + diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoContext/WpfContext.TcPOU b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoContext/WpfContext.TcPOU index c39ba7c9..8f835b1c 100644 --- a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoContext/WpfContext.TcPOU +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoContext/WpfContext.TcPOU @@ -9,6 +9,12 @@ VAR {attribute addProperty Name "<#Krc4 ECAT#>"} _robot2 : TcoKukaRobotics.TcoKrc4_Ecat_v_5_x_x(THIS^); + + {attribute addProperty Name "<#KSS 9.3 PN#>"} + _robot3 : TcoKukaRobotics.TcoKukaKssPn_v_9_3_x(THIS^); + + {attribute addProperty Name "<#KSS 9.3 ECAT#>"} + _robot4 : TcoKukaRobotics.TcoKukaKssEcat_v_9_3_x(THIS^); _sequence1 : TcoCore.TcoSequence(THIS^, eRestoreMode.None); _observer : TcoCore.TcoSequencerObserver(THIS^); @@ -36,12 +42,18 @@ METHOD PROTECTED Main]]> + + + + + Test context of TcoKukaKssPn_v_9_3_x. _sim holds the signals of the robot side and is written into the + input image every cycle. With _simulate = TRUE a minimal KSS 9.3 controller model reacts to the outputs + (interface, drives, error acknowledge, program start, start at main, mirroring of the movement handshake). + + +~*) +FUNCTION_BLOCK TcoKukaKssTestContext EXTENDS TcoCore._internals_TcoContext +VAR + _sut : TcoKukaRobotics.TcoKukaKssPn_v_9_3_x(THIS^); + _io : TcoKukaRobotics.TcoKukaKssPn_IO_v_9_3_x; + _sim : TcoKukaRobotics.TcoKukaKss_State_v_9_3_x; + _simulate : BOOL; + _simProActiveBlocked : BOOL; + _moveParams : TcoAbstractions.TcoRoboticsMovementsParams; + _stopType : TcoAbstractions.eTcoRoboticsStopType; + _drivesOnSeen : BOOL; + _externalStartSeen : BOOL; + _taskDone : BOOL; + _taskError : BOOL; +END_VAR +VAR + {attribute 'hide'} + _i : INT; +END_VAR +]]> + + + + + + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoKukaKss/eTcoKukaKssTests.TcDUT b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoKukaKss/eTcoKukaKssTests.TcDUT new file mode 100644 index 00000000..d0968643 --- /dev/null +++ b/src/TcoKukaRobotics/src/XaeTcoKukaRobotics/TcoKukaRoboticsTests/Tests/TcoKukaKss/eTcoKukaKssTests.TcDUT @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/src/TcoKukaRobotics/tests/TcoKukaRobotics.Wpf.Sandbox/MainWindow.xaml b/src/TcoKukaRobotics/tests/TcoKukaRobotics.Wpf.Sandbox/MainWindow.xaml index 8de7976e..25bc0993 100644 --- a/src/TcoKukaRobotics/tests/TcoKukaRobotics.Wpf.Sandbox/MainWindow.xaml +++ b/src/TcoKukaRobotics/tests/TcoKukaRobotics.Wpf.Sandbox/MainWindow.xaml @@ -44,6 +44,15 @@ + + + + + + + + + diff --git a/src/TcoKukaRobotics/tests/TcoKukaRoboticsUnitTests/PlcExectutedTests/TcoKukaKssTests.cs b/src/TcoKukaRobotics/tests/TcoKukaRoboticsUnitTests/PlcExectutedTests/TcoKukaKssTests.cs new file mode 100644 index 00000000..daa215f1 --- /dev/null +++ b/src/TcoKukaRobotics/tests/TcoKukaRoboticsUnitTests/PlcExectutedTests/TcoKukaKssTests.cs @@ -0,0 +1,241 @@ +using NUnit.Framework; +using TcoKukaRoboticsTests; + +namespace TcoKukaRoboticsUnitTests.PlcExecutedTests +{ + /// + /// PLC executed tests of TcoKukaKssPn_v_9_3_x. Requires the TcoKukaRoboticsTests PLC running on the target set in the 'Tc3Target' environment variable. + /// + public class TcoKukaKssTests + { + TcoKukaKssTestContext sut = ConnectorFixture.Connector.MAIN._kssTestContext; + + [SetUp] + public void TestSetup() + { + sut._simulate.Synchron = false; + sut._simProActiveBlocked.Synchron = false; + ResetRobotSide(); + sut.ExecuteProbeRun((int)eTcoKukaKssTests.Restore); + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + } + + private void ResetRobotSide() + { + var s = sut._sim; + s.RcReady.Synchron = false; + s.AlarmStopActive.Synchron = false; + s.UserSafetySwitchClosed.Synchron = false; + s.DrivesReady.Synchron = false; + s.InterfaceActivated.Synchron = false; + s.StopMess.Synchron = false; + s.RobotStopped.Synchron = false; + s.Manual.Synchron = false; + s.LocalEstopOk.Synchron = false; + s.ExternalAutomatic.Synchron = false; + s.ProActive.Synchron = false; + s.PpMoved.Synchron = false; + s.Error.Synchron = false; + s.NormalStop.Synchron = false; + s.CutEnableDrives.Synchron = false; + s.EventId.Synchron = 0; + s.ActionNo.Synchron = 0; + for (int i = 0; i < s.DataFromRobot.Length; i++) + s.DataFromRobot[i].Synchron = 0; + } + + private void HealthyRobot() + { + var s = sut._sim; + s.AlarmStopActive.Synchron = true; + s.UserSafetySwitchClosed.Synchron = true; + s.LocalEstopOk.Synchron = true; + s.ExternalAutomatic.Synchron = true; + s.CutEnableDrives.Synchron = true; + sut._simulate.Synchron = true; + } + + private static bool Bit(byte value, int bit) => (value & (1 << bit)) != 0; + + private byte Out(int index) => sut._io.Out.Outputs[index].Synchron; + + [Test] + [Timeout(10000)] + public void InputsAreMappedToState() + { + var s = sut._sim; + s.LocalEstopOk.Synchron = true; + s.NormalStop.Synchron = true; + s.CutEnableDrives.Synchron = true; + s.StopMess.Synchron = true; + s.ActionNo.Synchron = 42; + s.EventId.Synchron = 0x01020304; + s.DataFromRobot[0].Synchron = 0xAB; + s.DataFromRobot[15].Synchron = 0xCD; + + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + + var state = sut._sut._status.State; + Assert.IsTrue(state.LocalEstopOk.Synchron); + Assert.IsTrue(state.NormalStop.Synchron); + Assert.IsTrue(state.CutEnableDrives.Synchron); + Assert.IsTrue(state.StopMess.Synchron); + Assert.IsFalse(state.Manual.Synchron); + Assert.AreEqual(42, state.ActionNo.Synchron); + Assert.AreEqual(0x01020304u, state.EventId.Synchron); + Assert.AreEqual(0xAB, state.DataFromRobot[0].Synchron); + Assert.AreEqual(0xCD, state.DataFromRobot[15].Synchron); + } + + [Test] + [Timeout(10000)] + public void ControlIsMappedToOutputs() + { + var c = sut._sut._control; + c.ActivateInterface.Synchron = true; + c.StartAtMain.Synchron = true; + c.ActionNo.Synchron = 7; + c.DataToRobot[0].Synchron = 0x5A; + c.DataToRobot[19].Synchron = 0xA5; + + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + + Assert.IsTrue(Bit(Out(0), 5)); + Assert.IsTrue(Bit(Out(0), 6)); + Assert.AreEqual(7, Out(7)); + Assert.AreEqual(0x5A, Out(44)); + Assert.AreEqual(0xA5, Out(63)); + } + + [Test] + [Timeout(10000)] + public void MoveEnableFollowsManualModeEdges() + { + sut._sim.Manual.Synchron = true; + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + Assert.IsTrue(sut._sut._control.MoveEnable.Synchron); + + // operator may drop MoveEnable while in manual mode, it is not forced every cycle + sut._sut._control.MoveEnable.Synchron = false; + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + Assert.IsFalse(sut._sut._control.MoveEnable.Synchron); + + sut._sut._control.MoveEnable.Synchron = true; + sut._sim.Manual.Synchron = false; + sut.ExecuteProbeRun(2, (int)eTcoKukaKssTests.Run); + Assert.IsFalse(sut._sut._control.MoveEnable.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartMotorsFinishesWhenDrivesAreReady() + { + HealthyRobot(); + sut.ExecuteProbeRun((int)eTcoKukaKssTests.StartMotors); + + Assert.IsTrue(sut._taskDone.Synchron); + Assert.IsFalse(sut._taskError.Synchron); + Assert.IsTrue(sut._sut._status.State.DrivesReady.Synchron); + Assert.IsTrue(sut._sut._control.ActivateInterface.Synchron); + Assert.IsFalse(sut._sut._control.DrivesOn.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartMotorsDoesNotPulseDrivesOnWithoutCutEnableDrives() + { + HealthyRobot(); + sut._sim.CutEnableDrives.Synchron = false; + sut.ExecuteProbeRun(200, (int)eTcoKukaKssTests.StartMotors); + + Assert.IsFalse(sut._taskDone.Synchron); + Assert.IsFalse(sut._drivesOnSeen.Synchron); + Assert.IsFalse(sut._sut._status.State.DrivesReady.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartMotorsAndProgramKeepsInterfaceActive() + { + HealthyRobot(); + sut.ExecuteProbeRun((int)eTcoKukaKssTests.StartMotorsAndProgram); + + Assert.IsTrue(sut._taskDone.Synchron); + Assert.IsTrue(sut._sut._status.State.ProActive.Synchron); + Assert.IsTrue(sut._sut._control.ActivateInterface.Synchron); + Assert.IsFalse(sut._sut._control.ExternalStart.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartMotorsAndProgramDoesNotStartProgramOnNormalStop() + { + HealthyRobot(); + sut._sim.NormalStop.Synchron = true; + sut.ExecuteProbeRun(300, (int)eTcoKukaKssTests.StartMotorsAndProgram); + + Assert.IsFalse(sut._taskDone.Synchron); + Assert.IsFalse(sut._externalStartSeen.Synchron); + Assert.IsFalse(sut._sut._status.State.ProActive.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartProgramDoesNotSwitchDrivesOn() + { + HealthyRobot(); + sut.ExecuteProbeRun(200, (int)eTcoKukaKssTests.StartProgram); + + Assert.IsFalse(sut._taskDone.Synchron); + Assert.IsFalse(sut._drivesOnSeen.Synchron); + Assert.IsFalse(sut._externalStartSeen.Synchron); + } + + [Test] + [Timeout(30000)] + public void StartAtMainFinishesWhenProgramPointerMoved() + { + HealthyRobot(); + sut.ExecuteProbeRun((int)eTcoKukaKssTests.StartAtMain); + + Assert.IsTrue(sut._taskDone.Synchron); + Assert.IsFalse(sut._sut._control.StartAtMain.Synchron); + } + + [Test] + [Timeout(60000)] + public void StartMovementsRunsTheHandshake() + { + HealthyRobot(); + sut.ExecuteProbeRun((int)eTcoKukaKssTests.StartMotorsAndProgram); + Assert.IsTrue(sut._taskDone.Synchron); + + sut._moveParams.ActionNo.Synchron = 10; + sut._moveParams.GlobalSpeed.Synchron = 50; + sut._moveParams.ToolNo.Synchron = 1; + sut.ExecuteProbeRun((int)eTcoKukaKssTests.StartMovements); + + Assert.IsTrue(sut._taskDone.Synchron); + Assert.IsFalse(sut._taskError.Synchron); + Assert.AreEqual(255, sut._sut._control.ActionNo.Synchron); + Assert.AreEqual(50, sut._sut._status.State.GlobalSpeed.Synchron); + } + + [Test] + [Timeout(30000)] + public void ResetAllOutputsKeepsUserData() + { + var c = sut._sut._control; + c.ActivateInterface.Synchron = true; + c.ActionNo.Synchron = 9; + c.DataToRobot[3].Synchron = 0x33; + + sut.ExecuteProbeRun((int)eTcoKukaKssTests.ResetAllOutputs); + + Assert.IsTrue(sut._taskDone.Synchron); + Assert.IsFalse(c.ActivateInterface.Synchron); + Assert.AreEqual(0, c.ActionNo.Synchron); + Assert.AreEqual(0x33, c.DataToRobot[3].Synchron); + } + } +}