diff --git a/MatLab/Robot_GUI.mlapp b/MatLab/Robot_GUI.mlapp
index aed7eb337cccabfa75171c480bcd0d3bde5bd7b7..00732c8b00100e1bb106ad45a2645620c2418403 100644
Binary files a/MatLab/Robot_GUI.mlapp and b/MatLab/Robot_GUI.mlapp differ
diff --git a/MatLab/Robot_GUI_exported.m b/MatLab/Robot_GUI_exported.m
index cfd8c4ebd4d383a492949cdf0409c77f862a29c5..c9e2679e35391937d348be7d0558026ade1fc923 100644
--- a/MatLab/Robot_GUI_exported.m
+++ b/MatLab/Robot_GUI_exported.m
@@ -2,111 +2,114 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
 
     % Properties that correspond to app components
     properties (Access = public)
-        UIFigure                       matlab.ui.Figure
-        GridLayout                     matlab.ui.container.GridLayout
-        LeftPanel                      matlab.ui.container.Panel
-        BlacklineLabel_10              matlab.ui.control.Label
-        UpdatestatusButton             matlab.ui.control.Button
-        TemperaturesTextAreaLabel      matlab.ui.control.Label
-        TemperaturesTextArea           matlab.ui.control.TextArea
-        TemperaturesTextArea_2         matlab.ui.control.TextArea
-        ZeroseeksLabel                 matlab.ui.control.Label
-        BlacklineLabel_9               matlab.ui.control.Label
-        BlacklineLabel_8               matlab.ui.control.Label
-        BlacklineLabel_7               matlab.ui.control.Label
-        BlacklineLabel_6               matlab.ui.control.Label
-        Tempprobe2CLabel               matlab.ui.control.Label
-        Tempprobe1CLabel               matlab.ui.control.Label
-        BlacklineLabel_5               matlab.ui.control.Label
-        GettemperaturesButton          matlab.ui.control.Button
-        BlacklineLabel_4               matlab.ui.control.Label
-        BlacklineLabel                 matlab.ui.control.Label
-        GrabberstatusLabel             matlab.ui.control.Label
-        AbsLamp_Z_max                  matlab.ui.control.Lamp
-        AbsLamp_Y_max                  matlab.ui.control.Lamp
-        AbsLamp_X_max                  matlab.ui.control.Lamp
-        AbsLamp_Z_min                  matlab.ui.control.Lamp
-        AbsLamp_Y_min                  matlab.ui.control.Lamp
-        ZLabel                         matlab.ui.control.Label
-        YLabel                         matlab.ui.control.Label
-        XLabel                         matlab.ui.control.Label
-        MaxLabel                       matlab.ui.control.Label
-        MinLabel                       matlab.ui.control.Label
-        AbsLamp_X_min                  matlab.ui.control.Lamp
-        LimitswitchesLabel             matlab.ui.control.Label
-        StepperStatusTextArea          matlab.ui.control.EditField
-        StepperstatusLabel             matlab.ui.control.Label
-        AbsoluteZTextArea              matlab.ui.control.EditField
-        AbsoluteYTextArea              matlab.ui.control.EditField
-        AbsoluteXTextArea              matlab.ui.control.EditField
-        GrabberstatusTextArea          matlab.ui.control.TextArea
-        AbsLamp_Y                      matlab.ui.control.Lamp
-        AbsLamp_Z                      matlab.ui.control.Lamp
-        AbsLamp_X                      matlab.ui.control.Lamp
-        ZeroseekZButton                matlab.ui.control.Button
-        ZeroseekYButton                matlab.ui.control.Button
-        ZeroseekXButton                matlab.ui.control.Button
-        CenterPanel                    matlab.ui.container.Panel
-        TabGroup                       matlab.ui.container.TabGroup
-        PlotsTab                       matlab.ui.container.Tab
-        Image2                         matlab.ui.control.Image
-        BlacklineLabel_11              matlab.ui.control.Label
-        PositionplotsLabel             matlab.ui.control.Label
-        UIAxes_6                       matlab.ui.control.UIAxes
-        UIAxes_5                       matlab.ui.control.UIAxes
-        UIAxes_4                       matlab.ui.control.UIAxes
-        DebugTab                       matlab.ui.container.Tab
-        BlacklineLabel_12              matlab.ui.control.Label
-        DebugLabel                     matlab.ui.control.Label
-        RawHistory                     matlab.ui.control.ListBox
-        RightPanel                     matlab.ui.container.Panel
-        Image                          matlab.ui.control.Image
-        FilterINButton                 matlab.ui.control.Button
-        FilterOUTButton                matlab.ui.control.Button
-        Panel                          matlab.ui.container.Panel
-        GridLayout2                    matlab.ui.container.GridLayout
-        GrabHolder_32                  matlab.ui.control.StateButton
-        GrabHolder_31                  matlab.ui.control.StateButton
-        GrabHolder_30                  matlab.ui.control.StateButton
-        GrabHolder_29                  matlab.ui.control.StateButton
-        GrabHolder_28                  matlab.ui.control.StateButton
-        GrabHolder_27                  matlab.ui.control.StateButton
-        GrabHolder_26                  matlab.ui.control.StateButton
-        GrabHolder_25                  matlab.ui.control.StateButton
-        GrabHolder_23                  matlab.ui.control.StateButton
-        GrabHolder_12                  matlab.ui.control.StateButton
-        GrabHolder_24                  matlab.ui.control.StateButton
-        GrabHolder_22                  matlab.ui.control.StateButton
-        GrabHolder_21                  matlab.ui.control.StateButton
-        GrabHolder_20                  matlab.ui.control.StateButton
-        GrabHolder_19                  matlab.ui.control.StateButton
-        GrabHolder_18                  matlab.ui.control.StateButton
-        GrabHolder_17                  matlab.ui.control.StateButton
-        GrabHolder_16                  matlab.ui.control.StateButton
-        GrabHolder_15                  matlab.ui.control.StateButton
-        GrabHolder_14                  matlab.ui.control.StateButton
-        GrabHolder_13                  matlab.ui.control.StateButton
-        GrabHolder_11                  matlab.ui.control.StateButton
-        GrabHolder_10                  matlab.ui.control.StateButton
-        GrabHolder_09                  matlab.ui.control.StateButton
-        GrabHolder_08                  matlab.ui.control.StateButton
-        GrabHolder_07                  matlab.ui.control.StateButton
-        GrabHolder_06                  matlab.ui.control.StateButton
-        GrabHolder_05                  matlab.ui.control.StateButton
-        GrabHolder_04                  matlab.ui.control.StateButton
-        GrabHolder_03                  matlab.ui.control.StateButton
-        GrabHolder_02                  matlab.ui.control.StateButton
-        GrabHolder_01                  matlab.ui.control.StateButton
-        XpositioninbeamstepsEditField  matlab.ui.control.NumericEditField
-        XpositioninbeamstepsEditFieldLabel  matlab.ui.control.Label
-        LastCommandTextArea            matlab.ui.control.TextArea
-        LastCommandTextAreaLabel       matlab.ui.control.Label
-        PutHolderInBeam                matlab.ui.control.Button
-        BlacklineLabel_3               matlab.ui.control.Label
-        ControlsLabel                  matlab.ui.control.Label
-        SelecttheholdertopickupLabel   matlab.ui.control.Label
-        BringbackholderButton          matlab.ui.control.Button
-        StatusandChecksLabel           matlab.ui.control.Label
+        UIFigure                      matlab.ui.Figure
+        GridLayout                    matlab.ui.container.GridLayout
+        LeftPanel                     matlab.ui.container.Panel
+        Emergency_Button              matlab.ui.control.Lamp
+        EmergencybuttonLabel          matlab.ui.control.Label
+        BlacklineLabel_13             matlab.ui.control.Label
+        BlacklineLabel_10             matlab.ui.control.Label
+        UpdatestatusButton            matlab.ui.control.Button
+        TemperaturesTextAreaLabel     matlab.ui.control.Label
+        TemperaturesTextArea          matlab.ui.control.TextArea
+        TemperaturesTextArea_2        matlab.ui.control.TextArea
+        ZeroseeksLabel                matlab.ui.control.Label
+        BlacklineLabel_9              matlab.ui.control.Label
+        BlacklineLabel_8              matlab.ui.control.Label
+        BlacklineLabel_7              matlab.ui.control.Label
+        BlacklineLabel_6              matlab.ui.control.Label
+        Tempprobe2CLabel              matlab.ui.control.Label
+        Tempprobe1CLabel              matlab.ui.control.Label
+        BlacklineLabel_5              matlab.ui.control.Label
+        GettemperaturesButton         matlab.ui.control.Button
+        BlacklineLabel_4              matlab.ui.control.Label
+        BlacklineLabel                matlab.ui.control.Label
+        GrabberstatusLabel            matlab.ui.control.Label
+        AbsLamp_Z_max                 matlab.ui.control.Lamp
+        AbsLamp_Y_max                 matlab.ui.control.Lamp
+        AbsLamp_X_max                 matlab.ui.control.Lamp
+        AbsLamp_Z_min                 matlab.ui.control.Lamp
+        AbsLamp_Y_min                 matlab.ui.control.Lamp
+        ZLabel                        matlab.ui.control.Label
+        YLabel                        matlab.ui.control.Label
+        XLabel                        matlab.ui.control.Label
+        MaxLabel                      matlab.ui.control.Label
+        MinLabel                      matlab.ui.control.Label
+        AbsLamp_X_min                 matlab.ui.control.Lamp
+        LimitswitchesLabel            matlab.ui.control.Label
+        StepperStatusTextArea         matlab.ui.control.EditField
+        StepperstatusLabel            matlab.ui.control.Label
+        AbsoluteZTextArea             matlab.ui.control.EditField
+        AbsoluteYTextArea             matlab.ui.control.EditField
+        AbsoluteXTextArea             matlab.ui.control.EditField
+        GrabberstatusTextArea         matlab.ui.control.TextArea
+        AbsLamp_Y                     matlab.ui.control.Lamp
+        AbsLamp_Z                     matlab.ui.control.Lamp
+        AbsLamp_X                     matlab.ui.control.Lamp
+        ZeroseekZButton               matlab.ui.control.Button
+        ZeroseekYButton               matlab.ui.control.Button
+        ZeroseekXButton               matlab.ui.control.Button
+        CenterPanel                   matlab.ui.container.Panel
+        TabGroup                      matlab.ui.container.TabGroup
+        PlotsTab                      matlab.ui.container.Tab
+        Image2                        matlab.ui.control.Image
+        BlacklineLabel_11             matlab.ui.control.Label
+        PositionplotsLabel            matlab.ui.control.Label
+        UIAxes_6                      matlab.ui.control.UIAxes
+        UIAxes_5                      matlab.ui.control.UIAxes
+        UIAxes_4                      matlab.ui.control.UIAxes
+        DebugTab                      matlab.ui.container.Tab
+        BlacklineLabel_12             matlab.ui.control.Label
+        DebugLabel                    matlab.ui.control.Label
+        RawHistory                    matlab.ui.control.ListBox
+        RightPanel                    matlab.ui.container.Panel
+        Image                         matlab.ui.control.Image
+        FilterINButton                matlab.ui.control.Button
+        FilterOUTButton               matlab.ui.control.Button
+        Panel                         matlab.ui.container.Panel
+        GridLayout2                   matlab.ui.container.GridLayout
+        GrabHolder_32                 matlab.ui.control.StateButton
+        GrabHolder_31                 matlab.ui.control.StateButton
+        GrabHolder_30                 matlab.ui.control.StateButton
+        GrabHolder_29                 matlab.ui.control.StateButton
+        GrabHolder_28                 matlab.ui.control.StateButton
+        GrabHolder_27                 matlab.ui.control.StateButton
+        GrabHolder_26                 matlab.ui.control.StateButton
+        GrabHolder_25                 matlab.ui.control.StateButton
+        GrabHolder_23                 matlab.ui.control.StateButton
+        GrabHolder_12                 matlab.ui.control.StateButton
+        GrabHolder_24                 matlab.ui.control.StateButton
+        GrabHolder_22                 matlab.ui.control.StateButton
+        GrabHolder_21                 matlab.ui.control.StateButton
+        GrabHolder_20                 matlab.ui.control.StateButton
+        GrabHolder_19                 matlab.ui.control.StateButton
+        GrabHolder_18                 matlab.ui.control.StateButton
+        GrabHolder_17                 matlab.ui.control.StateButton
+        GrabHolder_16                 matlab.ui.control.StateButton
+        GrabHolder_15                 matlab.ui.control.StateButton
+        GrabHolder_14                 matlab.ui.control.StateButton
+        GrabHolder_13                 matlab.ui.control.StateButton
+        GrabHolder_11                 matlab.ui.control.StateButton
+        GrabHolder_10                 matlab.ui.control.StateButton
+        GrabHolder_09                 matlab.ui.control.StateButton
+        GrabHolder_08                 matlab.ui.control.StateButton
+        GrabHolder_07                 matlab.ui.control.StateButton
+        GrabHolder_06                 matlab.ui.control.StateButton
+        GrabHolder_05                 matlab.ui.control.StateButton
+        GrabHolder_04                 matlab.ui.control.StateButton
+        GrabHolder_03                 matlab.ui.control.StateButton
+        GrabHolder_02                 matlab.ui.control.StateButton
+        GrabHolder_01                 matlab.ui.control.StateButton
+        XpositioninbeammmEditField    matlab.ui.control.NumericEditField
+        XpositioninbeammmEditFieldLabel  matlab.ui.control.Label
+        LastCommandTextArea           matlab.ui.control.TextArea
+        LastCommandTextAreaLabel      matlab.ui.control.Label
+        PutHolderInBeam               matlab.ui.control.Button
+        BlacklineLabel_3              matlab.ui.control.Label
+        ControlsLabel                 matlab.ui.control.Label
+        SelecttheholdertopickupLabel  matlab.ui.control.Label
+        BringbackholderButton         matlab.ui.control.Button
+        StatusandChecksLabel          matlab.ui.control.Label
     end
 
     % Properties that correspond to apps with auto-reflow
@@ -337,6 +340,13 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
                 else
                    app.AbsLamp_Z_max.Color = [0.8 0.8 0.8];             
                 end
+
+                %Light for Emergency Button
+                if app.conn.isEmergencyStopped == 1
+                   app.Emergency_Button.Color = 'green';
+                else
+                   app.Emergency_Button.Color = [0.8 0.8 0.8];               
+                end
             end
             
             %Status of the grabber            
@@ -401,7 +411,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
 
         % Code that executes after component creation
         function startupFcn(app)
-            app.conn = robotConnector("128.141.216.145",@(obj,stepper,grabber,temp,filter) app.robotCallBack(stepper,grabber,temp,filter),@(obj,textLine) app.textCallBack(textLine));
+            app.conn = robotConnector("128.141.216.83",@(obj,stepper,grabber,temp,filter) app.robotCallBack(stepper,grabber,temp,filter),@(obj,textLine) app.textCallBack(textLine));
 
             %List of all holder buttons,
             % not possible to generate programattically in AppDesigner
@@ -484,7 +494,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             
             app.conn.stepperGo('Z',50);
             app.conn.stepperGo('Y',7210);
-            app.conn.stepperGo('X',app.XpositioninbeamstepsEditField.Value);
+            app.conn.stepperGo('X',app.XpositioninbeammmEditField.Value*7803/460+95*7803/460);
             app.conn.stepperGo('Z',2340);
 
             %Disable itself, enable bringback button
@@ -634,59 +644,59 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             % Create ZeroseekXButton
             app.ZeroseekXButton = uibutton(app.LeftPanel, 'push');
             app.ZeroseekXButton.ButtonPushedFcn = createCallbackFcn(app, @ZeroseekXButtonPushed, true);
-            app.ZeroseekXButton.Position = [12 677 98 46];
+            app.ZeroseekXButton.Position = [12 689 98 46];
             app.ZeroseekXButton.Text = 'Zero seek X';
 
             % Create ZeroseekYButton
             app.ZeroseekYButton = uibutton(app.LeftPanel, 'push');
             app.ZeroseekYButton.ButtonPushedFcn = createCallbackFcn(app, @ZeroseekYButtonPushed, true);
-            app.ZeroseekYButton.Position = [12 625 98 46];
+            app.ZeroseekYButton.Position = [12 637 98 46];
             app.ZeroseekYButton.Text = 'Zero seek Y';
 
             % Create ZeroseekZButton
             app.ZeroseekZButton = uibutton(app.LeftPanel, 'push');
             app.ZeroseekZButton.ButtonPushedFcn = createCallbackFcn(app, @ZeroseekZButtonPushed, true);
-            app.ZeroseekZButton.Position = [12 574 98 46];
+            app.ZeroseekZButton.Position = [12 585 98 46];
             app.ZeroseekZButton.Text = 'Zero seek Z';
 
             % Create AbsLamp_X
             app.AbsLamp_X = uilamp(app.LeftPanel);
-            app.AbsLamp_X.Position = [192 689 20 20];
+            app.AbsLamp_X.Position = [192 701 20 20];
 
             % Create AbsLamp_Z
             app.AbsLamp_Z = uilamp(app.LeftPanel);
-            app.AbsLamp_Z.Position = [192 586 20 20];
+            app.AbsLamp_Z.Position = [192 598 20 20];
 
             % Create AbsLamp_Y
             app.AbsLamp_Y = uilamp(app.LeftPanel);
-            app.AbsLamp_Y.Position = [192 637 20 20];
+            app.AbsLamp_Y.Position = [192 649 20 20];
 
             % Create GrabberstatusTextArea
             app.GrabberstatusTextArea = uitextarea(app.LeftPanel);
             app.GrabberstatusTextArea.HorizontalAlignment = 'center';
-            app.GrabberstatusTextArea.Position = [47 217 128 24];
+            app.GrabberstatusTextArea.Position = [47 218 128 24];
 
             % Create AbsoluteXTextArea
             app.AbsoluteXTextArea = uieditfield(app.LeftPanel, 'text');
             app.AbsoluteXTextArea.HorizontalAlignment = 'center';
-            app.AbsoluteXTextArea.Position = [118 688 65 22];
+            app.AbsoluteXTextArea.Position = [118 700 65 22];
 
             % Create AbsoluteYTextArea
             app.AbsoluteYTextArea = uieditfield(app.LeftPanel, 'text');
             app.AbsoluteYTextArea.HorizontalAlignment = 'center';
-            app.AbsoluteYTextArea.Position = [118 636 65 22];
+            app.AbsoluteYTextArea.Position = [118 648 65 22];
 
             % Create AbsoluteZTextArea
             app.AbsoluteZTextArea = uieditfield(app.LeftPanel, 'text');
             app.AbsoluteZTextArea.HorizontalAlignment = 'center';
-            app.AbsoluteZTextArea.Position = [118 585 65 22];
+            app.AbsoluteZTextArea.Position = [118 597 65 22];
 
             % Create StepperstatusLabel
             app.StepperstatusLabel = uilabel(app.LeftPanel);
             app.StepperstatusLabel.HorizontalAlignment = 'center';
             app.StepperstatusLabel.FontSize = 14;
             app.StepperstatusLabel.FontWeight = 'bold';
-            app.StepperstatusLabel.Position = [58 504 103 41];
+            app.StepperstatusLabel.Position = [58 312 103 41];
             app.StepperstatusLabel.Text = 'Stepper status';
 
             % Create StepperStatusTextArea
@@ -695,74 +705,74 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.StepperStatusTextArea.FontSize = 14;
             app.StepperStatusTextArea.FontWeight = 'bold';
             app.StepperStatusTextArea.FontColor = [1 0 0];
-            app.StepperStatusTextArea.Position = [26 484 168 24];
+            app.StepperStatusTextArea.Position = [26 290 168 24];
 
             % Create LimitswitchesLabel
             app.LimitswitchesLabel = uilabel(app.LeftPanel);
             app.LimitswitchesLabel.HorizontalAlignment = 'center';
             app.LimitswitchesLabel.FontSize = 14;
             app.LimitswitchesLabel.FontWeight = 'bold';
-            app.LimitswitchesLabel.Position = [59 424 102 41];
+            app.LimitswitchesLabel.Position = [59 543 102 41];
             app.LimitswitchesLabel.Text = 'Limit switches';
 
             % Create AbsLamp_X_min
             app.AbsLamp_X_min = uilamp(app.LeftPanel);
-            app.AbsLamp_X_min.Position = [73 369 16 16];
+            app.AbsLamp_X_min.Position = [73 497 16 16];
             app.AbsLamp_X_min.Color = [0.8 0.8 0.8];
 
             % Create MinLabel
             app.MinLabel = uilabel(app.LeftPanel);
             app.MinLabel.HorizontalAlignment = 'center';
-            app.MinLabel.Position = [64 385 34 41];
+            app.MinLabel.Position = [64 513 34 41];
             app.MinLabel.Text = 'Min';
 
             % Create MaxLabel
             app.MaxLabel = uilabel(app.LeftPanel);
             app.MaxLabel.HorizontalAlignment = 'center';
-            app.MaxLabel.Position = [119 385 34 41];
+            app.MaxLabel.Position = [119 513 34 41];
             app.MaxLabel.Text = 'Max';
 
             % Create XLabel
             app.XLabel = uilabel(app.LeftPanel);
             app.XLabel.HorizontalAlignment = 'center';
-            app.XLabel.Position = [22 357 34 41];
+            app.XLabel.Position = [22 485 34 41];
             app.XLabel.Text = 'X';
 
             % Create YLabel
             app.YLabel = uilabel(app.LeftPanel);
             app.YLabel.HorizontalAlignment = 'center';
-            app.YLabel.Position = [22 324 34 41];
+            app.YLabel.Position = [22 452 34 41];
             app.YLabel.Text = 'Y';
 
             % Create ZLabel
             app.ZLabel = uilabel(app.LeftPanel);
             app.ZLabel.HorizontalAlignment = 'center';
-            app.ZLabel.Position = [22 290 34 41];
+            app.ZLabel.Position = [22 418 34 41];
             app.ZLabel.Text = 'Z';
 
             % Create AbsLamp_Y_min
             app.AbsLamp_Y_min = uilamp(app.LeftPanel);
-            app.AbsLamp_Y_min.Position = [73 336 16 16];
+            app.AbsLamp_Y_min.Position = [73 464 16 16];
             app.AbsLamp_Y_min.Color = [0.8 0.8 0.8];
 
             % Create AbsLamp_Z_min
             app.AbsLamp_Z_min = uilamp(app.LeftPanel);
-            app.AbsLamp_Z_min.Position = [73 303 16 16];
+            app.AbsLamp_Z_min.Position = [73 431 16 16];
             app.AbsLamp_Z_min.Color = [0.8 0.8 0.8];
 
             % Create AbsLamp_X_max
             app.AbsLamp_X_max = uilamp(app.LeftPanel);
-            app.AbsLamp_X_max.Position = [128 369 16 16];
+            app.AbsLamp_X_max.Position = [128 497 16 16];
             app.AbsLamp_X_max.Color = [0.8 0.8 0.8];
 
             % Create AbsLamp_Y_max
             app.AbsLamp_Y_max = uilamp(app.LeftPanel);
-            app.AbsLamp_Y_max.Position = [128 336 16 16];
+            app.AbsLamp_Y_max.Position = [128 464 16 16];
             app.AbsLamp_Y_max.Color = [0.8 0.8 0.8];
 
             % Create AbsLamp_Z_max
             app.AbsLamp_Z_max = uilamp(app.LeftPanel);
-            app.AbsLamp_Z_max.Position = [128 303 16 16];
+            app.AbsLamp_Z_max.Position = [128 431 16 16];
             app.AbsLamp_Z_max.Color = [0.8 0.8 0.8];
 
             % Create GrabberstatusLabel
@@ -770,7 +780,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.GrabberstatusLabel.HorizontalAlignment = 'center';
             app.GrabberstatusLabel.FontSize = 14;
             app.GrabberstatusLabel.FontWeight = 'bold';
-            app.GrabberstatusLabel.Position = [58 245 105 41];
+            app.GrabberstatusLabel.Position = [58 238 105 41];
             app.GrabberstatusLabel.Text = 'Grabber status';
 
             % Create BlacklineLabel
@@ -784,7 +794,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.BlacklineLabel_4 = uilabel(app.LeftPanel);
             app.BlacklineLabel_4.BackgroundColor = [0 0 0];
             app.BlacklineLabel_4.FontSize = 2;
-            app.BlacklineLabel_4.Position = [1 547 218 1];
+            app.BlacklineLabel_4.Position = [1 578 218 1];
             app.BlacklineLabel_4.Text = 'Black line';
 
             % Create GettemperaturesButton
@@ -798,7 +808,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.BlacklineLabel_5 = uilabel(app.LeftPanel);
             app.BlacklineLabel_5.BackgroundColor = [0 0 0];
             app.BlacklineLabel_5.FontSize = 2;
-            app.BlacklineLabel_5.Position = [1 468 218 1];
+            app.BlacklineLabel_5.Position = [1 415 218 1];
             app.BlacklineLabel_5.Text = 'Black line';
 
             % Create Tempprobe1CLabel
@@ -815,7 +825,7 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.BlacklineLabel_6 = uilabel(app.LeftPanel);
             app.BlacklineLabel_6.BackgroundColor = [0 0 0];
             app.BlacklineLabel_6.FontSize = 2;
-            app.BlacklineLabel_6.Position = [1 290 218 1];
+            app.BlacklineLabel_6.Position = [1 276 218 1];
             app.BlacklineLabel_6.Text = 'Black line';
 
             % Create BlacklineLabel_7
@@ -829,14 +839,14 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.BlacklineLabel_8 = uilabel(app.LeftPanel);
             app.BlacklineLabel_8.BackgroundColor = [0.8 0.8 0.8];
             app.BlacklineLabel_8.FontSize = 2;
-            app.BlacklineLabel_8.Position = [45 418 129 1];
+            app.BlacklineLabel_8.Position = [45 546 129 1];
             app.BlacklineLabel_8.Text = 'Black line';
 
             % Create BlacklineLabel_9
             app.BlacklineLabel_9 = uilabel(app.LeftPanel);
             app.BlacklineLabel_9.BackgroundColor = [0.8 0.8 0.8];
             app.BlacklineLabel_9.FontSize = 2;
-            app.BlacklineLabel_9.Position = [65 392 99 1];
+            app.BlacklineLabel_9.Position = [65 520 99 1];
             app.BlacklineLabel_9.Text = 'Black line';
 
             % Create ZeroseeksLabel
@@ -883,6 +893,25 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.BlacklineLabel_10.Position = [1 209 218 1];
             app.BlacklineLabel_10.Text = 'Black line';
 
+            % Create BlacklineLabel_13
+            app.BlacklineLabel_13 = uilabel(app.LeftPanel);
+            app.BlacklineLabel_13.BackgroundColor = [0 0 0];
+            app.BlacklineLabel_13.FontSize = 2;
+            app.BlacklineLabel_13.Position = [1 353 218 1];
+            app.BlacklineLabel_13.Text = 'Black line';
+
+            % Create EmergencybuttonLabel
+            app.EmergencybuttonLabel = uilabel(app.LeftPanel);
+            app.EmergencybuttonLabel.HorizontalAlignment = 'center';
+            app.EmergencybuttonLabel.FontSize = 14;
+            app.EmergencybuttonLabel.FontWeight = 'bold';
+            app.EmergencybuttonLabel.Position = [45 378 128 41];
+            app.EmergencybuttonLabel.Text = 'Emergency button';
+
+            % Create Emergency_Button
+            app.Emergency_Button = uilamp(app.LeftPanel);
+            app.Emergency_Button.Position = [99 362 20 20];
+
             % Create CenterPanel
             app.CenterPanel = uipanel(app.GridLayout);
             app.CenterPanel.Layout.Row = 1;
@@ -1053,17 +1082,17 @@ classdef Robot_GUI_exported < matlab.apps.AppBase
             app.LastCommandTextArea.FontSize = 10;
             app.LastCommandTextArea.Position = [74 154 134 20];
 
-            % Create XpositioninbeamstepsEditFieldLabel
-            app.XpositioninbeamstepsEditFieldLabel = uilabel(app.RightPanel);
-            app.XpositioninbeamstepsEditFieldLabel.HorizontalAlignment = 'center';
-            app.XpositioninbeamstepsEditFieldLabel.Position = [45 318 88 28];
-            app.XpositioninbeamstepsEditFieldLabel.Text = {'X position '; 'in beam (steps)'};
-
-            % Create XpositioninbeamstepsEditField
-            app.XpositioninbeamstepsEditField = uieditfield(app.RightPanel, 'numeric');
-            app.XpositioninbeamstepsEditField.HorizontalAlignment = 'center';
-            app.XpositioninbeamstepsEditField.Position = [135 321 54 22];
-            app.XpositioninbeamstepsEditField.Value = 1500;
+            % Create XpositioninbeammmEditFieldLabel
+            app.XpositioninbeammmEditFieldLabel = uilabel(app.RightPanel);
+            app.XpositioninbeammmEditFieldLabel.HorizontalAlignment = 'center';
+            app.XpositioninbeammmEditFieldLabel.Position = [49 318 80 28];
+            app.XpositioninbeammmEditFieldLabel.Text = {'X position '; 'in beam (mm)'};
+
+            % Create XpositioninbeammmEditField
+            app.XpositioninbeammmEditField = uieditfield(app.RightPanel, 'numeric');
+            app.XpositioninbeammmEditField.HorizontalAlignment = 'center';
+            app.XpositioninbeammmEditField.Position = [135 321 54 22];
+            app.XpositioninbeammmEditField.Value = 200;
 
             % Create Panel
             app.Panel = uipanel(app.RightPanel);