# RTDEControllnterface: RTDE control script is not running!

**URL:** <https://forum.universal-robots.com/t/rtdecontrollnterface-rtde-control-script-is-not-running/36998>\
**Category:** Technical Questions\
**Created:** [November 15, 2024, 2:02am UTC](https://forum.universal-robots.com/t/rtdecontrollnterface-rtde-control-script-is-not-running/36998 "2024-11-15T02:02:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayson](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jayson](https://forum.universal-robots.com/u/jayson)\
**Post date:** [November 15, 2024, 2:02am UTC](https://forum.universal-robots.com/t/rtdecontrollnterface-rtde-control-script-is-not-running/36998/1 "2024-11-15T02:02:33Z")

</div>

Hello, if you connect the LAN to the robot and router and run RTDE with the router and laptop connected to wifi, it will disconnect in the middle and won’t communicate. The code is python.

from rtde\_control import RTDEControlInterface as RTDEControl from rtde\_receive import RTDEReceiveInterface as RTDEReceive

def connect(self): self.rb\_c = RTDEControl(self.ServIp) self.rb\_r = RTDEReceive(self.ServIp) self.DashServ = Dashboard\_Server.RobotDashboard() timeout = 0 while 1: status = self.getRobotStatus() print(f’Status: {status}')

```
    if status in (32,64,128): #Emergency Stop
        self.DashServ.reset_robot()
        time.sleep(20)
        self.reconnect()
        status = self.getRobotStatus()
        print(f'Status: {status}')
    
    if status == 1028: #Protective Stop
        self.DashServ.unlock_protective_stop()
    if status == 1:
        self.set_tcp(*self.TcpPos)
        break

    time.sleep(1.0)
    timeout += 1
    if timeout > 30:
        self.Status = False
        return False

self.Status = True
return True

```

def movAzimuth\_rel(self, Angle): pose\_rel = self.rb\_c.poseTrans(self.rb\_r.getTargetTCPPose(), [0,0,0,0,0,math.radians(Angle)]) self.rb\_c.moveL(pose\_rel,acceleration=0.05, speed=0.05) time.sleep(0.1)

It moves 1 degree at a movAzimuth\_rel angle, moves well up to a few dozen times, then disconnects in the middle, then moves to weird places and turns into protection stop mode.

If you connect the Ethernet line, the communication is good, but it’s disconnecting only when you communicate with wifi.

What should I do? I need your help.
