|
|
|
@ -227,10 +227,10 @@ def program2(sock, turn_on_relay_start, turn_on_relay_end, turn_off_relay_start, |
|
|
|
|
|
|
|
if(i >= turn_on_relay_start and i <= turn_on_relay_end): |
|
|
|
turn_on_relay() |
|
|
|
print("打开喷枪") |
|
|
|
print(f"打开喷枪2:{turn_on_relay_start} ~ {turn_on_relay_end}") |
|
|
|
if(i >= turn_off_relay_start and i <= turn_off_relay_end): |
|
|
|
turn_off_relay() |
|
|
|
print("关闭喷枪") |
|
|
|
print(f"关闭喷枪2:{turn_off_relay_start} ~ {turn_off_relay_end}") |
|
|
|
i = i + 1 |
|
|
|
|
|
|
|
suc, result, id = sendCMD(sock, "tt_clear_servo_joint_buf") |
|
|
|
@ -402,10 +402,10 @@ def program4(sock, turn_on_relay_start, turn_on_relay_end, turn_off_relay_start, |
|
|
|
time.sleep(sleep_time) |
|
|
|
if(i >= ex_turn_on_relay_start and i <= ex_turn_on_relay_end): |
|
|
|
turn_on_relay() |
|
|
|
print("打开喷枪") |
|
|
|
print(f"打开喷枪4:{ex_turn_on_relay_start} ~ {ex_turn_on_relay_end}") |
|
|
|
if(i >= ex_turn_off_relay_start and i <= ex_turn_off_relay_end): |
|
|
|
turn_off_relay() |
|
|
|
print("关闭喷枪") |
|
|
|
print(f"关闭喷枪4:{ex_turn_off_relay_start} ~ {ex_turn_off_relay_end}") |
|
|
|
i = i + 1 |
|
|
|
|
|
|
|
suc, result, id = sendCMD(sock, "tt_clear_servo_joint_buf") |
|
|
|
@ -577,10 +577,10 @@ def program6(sock, turn_on_relay_start, turn_on_relay_end, turn_off_relay_start, |
|
|
|
time.sleep(sleep_time) |
|
|
|
if(i >= turn_on_relay_start and i <= turn_on_relay_end): |
|
|
|
turn_on_relay() |
|
|
|
print("打开喷枪") |
|
|
|
print(f"打开喷枪6:{turn_on_relay_start} ~ {turn_on_relay_end}") |
|
|
|
if(i >= turn_off_relay_start and i <= turn_off_relay_end): |
|
|
|
turn_off_relay() |
|
|
|
print("关闭喷枪") |
|
|
|
print(f"关闭喷枪6:{turn_off_relay_start} ~ {turn_off_relay_end}") |
|
|
|
i = i + 1 |
|
|
|
suc, result, id = sendCMD(sock, "tt_clear_servo_joint_buf") |
|
|
|
print("第六段程序执行完") |
|
|
|
@ -749,10 +749,10 @@ def program8(sock, turn_on_relay_start, turn_on_relay_end, turn_off_relay_start, |
|
|
|
time.sleep(sleep_time) |
|
|
|
if(i >= ex_turn_on_relay_start and i <= ex_turn_on_relay_end): |
|
|
|
turn_on_relay() |
|
|
|
print("打开喷枪") |
|
|
|
print(f"打开喷枪8:{ex_turn_on_relay_start} ~ {ex_turn_on_relay_end}") |
|
|
|
if(i >= ex_turn_off_relay_start and i <= ex_turn_off_relay_end): |
|
|
|
turn_off_relay() |
|
|
|
print("关闭喷枪") |
|
|
|
print(f"关闭喷枪8:{ex_turn_off_relay_start} ~ {ex_turn_off_relay_end}") |
|
|
|
i = i + 1 |
|
|
|
|
|
|
|
suc, result, id = sendCMD(sock, "tt_clear_servo_joint_buf") |
|
|
|
|