From b55f1f6c0d51a7e637588fc90a39f1dbf00967d8 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Fri, 31 Mar 2017 11:28:02 +0200 Subject: [PATCH] Closedown --- .../Controller1/usr/usrapp/ForceDetection/comTcp.pgx | 8 +++++++- script/RobotTCP.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx index 3dec094..805a4bd 100644 --- a/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx +++ b/robot/MXLAB/Controller1/usr/usrapp/ForceDetection/comTcp.pgx @@ -91,7 +91,13 @@ else tx = tx + "0" + array_separator endIf - + //Task status + if len(args[0])>0 + tx=tx+toString("",taskStatus(args[0])) + else + tx=tx+"0"+array_separator + endIf + if tcp_events[0] != "" tx = tx + tcp_events[0] for index=0 to 8 diff --git a/script/RobotTCP.py b/script/RobotTCP.py index b122632..549afe0 100644 --- a/script/RobotTCP.py +++ b/script/RobotTCP.py @@ -405,7 +405,7 @@ class RobotTCP(TcpDevice, Stoppable): if time.time() - start > 5000: raise Exception("Cannot start task " + task) time.sleep(0.1) - time.sleep(0.1) + time.sleep(0.5) self.current_task = program def stop_task(self):