Files
AutoControlSystem-git/Constant.py
2024-10-22 23:24:00 +08:00

57 lines
1.9 KiB
Python

import os
position_accuracy = 0.05
manual_adjust_accuracy = 1
speed = 10
shake_speed = 20
debug_speed=30
feedLine_set_section = 'FeedLine'
feedLine_set_file = f'.{os.sep}Config{os.sep}feedLine.ini'
set_ini = 'Seting.ini'
movie_moving = './Image/transport.gif'
mode_array = ["", "⼿动模式", "⾃动模式", "停⽌模式", "", "", "","⾃动运⾏中", "单步", "单循环"]
log_file_path = './log/log.log'
feed_sign_path = './Image/wait.png'
str_feed_start = '投料开始'
str_feed_check = '检测是否安全投料'
str_feed_photo = '移动到拍照位置'
str_feed_take = '移动到抓料位置'
str_feed_pause = '投料暂停'
str_feed_continue = '投料继续'
str_feed_stop = '投料停止'
str_feed_feed = '移动到投料位置'
str_feed_mid = '移动到中位位置'
str_feed_safe = '移动到安全位置'
str_feed_takePhoto = '拍照'
str_feed_broken = '移动到破袋位置'
str_feed_broken_bag = '划袋'
str_feed_drop = '移动扔空袋'
str_feed_takePhoto_fail = '识别图像失败'
str_feed_takePhoto_success = '识别图像成功'
str_feed_covert_success = '转换坐标成功'
str_feed_covert_fail = '转换坐标失败'
str_feed_error = '未知错误'
str_feed_none = ''
str_feed_finish = '投料结束'
str_feed_take_success = '抓料成功'
str_feed_take_fail = '抓料失败'
str_feed_feed_num = '剩余投料次数:'
str_feed_zip_bag = '移动到压缩袋位置'
str_sys_switch_tool = '切换到工具坐标'
str_sys_start_tool = '切换到自动运行状态'
str_sys_clearAlarm = '清除报警'
str_sys_setSpeed = '设置速度'
str_sys_manualPosition = '手动移动'
str_sys_setFeedNum = '设置投料次数'
str_sys_feedNum_sub = '减少投料次数'
str_sys_feedNum_add = '增加投料次数'
str_tcp_robot_connect_fail = '连接失败'
str_tcp_robot_connect_success = '连接成功'
str_tcp_robot_data_error = '数据解析错误'
str_tcp_connect_no_reply = '无回复'
str_tcp_connect_error = 'tcp连接错误'
str_tcp_reconnect = '重连中'