Constant.cs
3.77 KB
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HaierExe04
{
public class Constant
{
public static int TASK_QUIT = 2; //退出程序
public static int TASK_CANCEL = 3; //取消程序
public static int TASK_BACK = 5; //机器人返回安全位置
public static int TASK_WELD = 6; //机器人焊接
public static int TASK_CLEAN = 7; //机器人清理焊枪
public static int TASK_STATION_1 = 8; //机器人旋转至焊接工位一
public static int TASK_STATION_2 = 9; //机器人旋转至焊接工位二
public static string ROBOT_CONNECT = "<PData><Send><Pra[10]>Hellon</Pra[10]><Request>0</Request><Complete>0</Complete></Send></PData>";
public static string ROBOT_ASK_TESK = "<PData><Send><Pra[10]> </Pra[10]><Request>3</Request><Complete>0</Complete></Send></PData>";
public static string CONFIRM_OK = "<PData><Receive><ComfirmOK>1</ComfirmOK></Receive></PData>";
public static string TASK_ROBOT_BACK = "<PData><Receive><TASK>5</TASK></Receive></PData>";
public static string TASK_START_WELD = "<PData><Receive><TASK>6</TASK></Receive></PData>";
public static string TASK_CLEAN_WELD = "<PData><Receive><TASK>7</TASK></Receive></PData>";
public static string TASK_WELD_STATION_1 = "<PData><Receive><TASK>8</TASK></Receive></PData>";
public static string TASK_WELD_STATION_2 = "<PData><Receive><TASK>9</TASK></Receive></PData>";
public static string TASK_ROBOT_BACK_OK = "<PData><Send><Pra[10]> </Pra[10]><Request>0</Request><Complete>12</Complete></Send></PData>";
public static string TASK_START_WELD_OK = "<PData><Send><Pra[10]> </Pra[10]><Request>0</Request><Complete>14</Complete></Send></PData>";
public static string TASK_START_CLEAN_OK = "<PData><Send><Pra[10]> </Pra[10]><Request>0</Request><Complete>16</Complete></Send></PData>";
public static string TASK_WELD_STATION_1_OK = "<PData><Send><Pra[10]> </Pra[10]><Request>0</Request><Complete>18</Complete></Send></PData>";
public static string TASK_WELD_STATION_2_OK = "<PData><Send><Pra[10]> </Pra[10]><Request>0</Request><Complete>20</Complete></Send></PData>";
public static string ROBOT_STATION_1 = "<PData><Send><Pra[10]> </Pra[10]><Request>4</Request><Complete>0</Complete></Send></PData>";
public static string ROBOT_STATION_2 = "<PData><Send><Pra[10]> </Pra[10]><Request>5</Request><Complete>0</Complete></Send></PData>";
public static string WELD_INFO = "<PData><Receive><Model>1</Model><Type>1</Type></Receive><P1><x>1.000000</x><y>1.000000</y><z>1.020000</z><E1>1.030000</E1><E2>1.000000</E2><E3>1.000000</E3><E4>1.000000</E4></P1><P2><x>1.000000</x><y>1.000000</y><z>1.000000</z><E1>1.000000</E1><E2>1.000000</E2><E3>1.000000</E3><E4>1.000000</E4></P2><P3><x>1.000000</x><y>1.000000</y><z>1.000000</z><E1>1.000000</E1><E2>1.000000</E2><E3>1.000000</E3><E4>1.000000</E4></P3><P4><x>1.000000</x><y>1.000000</y><z>1.000000</z><E1>1.000000</E1><E2>1.000000</E2><E3>1.000000</E3><E4>1.000000</E4></P4><P5><x>1.000000</x><y>1.000000</y><z>1.000000</z><E1>1.000000</E1><E2>1.000000</E2><E3>1.000000</E3><E4>1.000000</E4></P5><W1><a>1.000000</a><b>1.000000</b><c>1.000000</c><d>1.000000</d><e>1.000000</e><f>1.000000</f></W1><W2><a>1.000000</a><b>1.000000</b><c>1.000000</c><d>1.000000</d><e>1.000000</e><f>1.000000</f></W2><W3><a>1.000000</a><b>1.000000</b><c>1.000000</c><d>1.000000</d><e>1.000000</e><f>1.000000</f></W3><W4><a>1.000000</a><b>1.000000</b><c>1.000000</c><d>1.000000</d><e>1.000000</e><f>1.000000</f></W4><W5><a>1.000000</a><b>1.000000</b><c>1.000000</c><d>1.000000</d><e>1.000000</e><f>1.000000</f></W5><Base><x>1.000000</x><y>1.000000</y><z>1.000000</z><a>1.000000</a><b>1.000000</b><c>1.000000</c></Base></PData>";
}
}