Commit 5ef664e8 LN

1

1 个父辈 0690b6b8
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<add key="App_AutoRun" value="1" /> <add key="App_AutoRun" value="1" />
<add key="App_Title" value="自动点料机" /> <add key="App_Title" value="自动点料机" />
<!--<add key="ServerAddr" value="http://localhost/myproject/service/store/emptyPosForPutin"/>--> <!--<add key="ServerAddr" value="http://10.85.17.233"/>-->
<add key="ConfigPath_Robot" value="\RobotConfig\Config_Robot.csv" /> <add key="ConfigPath_Robot" value="\RobotConfig\Config_Robot.csv" />
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<!--标签文件名称--> <!--标签文件名称-->
<add key ="LabelName" value ="test2"/> <add key ="LabelName" value ="test2"/>
<!--打印机名称--> <!--打印机名称-->
<add key ="PrinterName" value ="ZDesigner GT800 (EPL)"/> <add key ="PrinterName" value ="ZDesigner GT800-300dpi EPL"/>
</appSettings> </appSettings>
<log4net> <log4net>
......
...@@ -17,7 +17,7 @@ PRO,0,右侧提升轴缓慢上升目标位置P3,R_BatchAxisP3,5787415,,,,, ...@@ -17,7 +17,7 @@ PRO,0,右侧提升轴缓慢上升目标位置P3,R_BatchAxisP3,5787415,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,0,提升轴P1速度,BatchAxis_P1Speed,3000,,,,, PRO,0,提升轴P1速度,BatchAxis_P1Speed,3000,,,,,
,0,提升轴P2速度,BatchAxis_P2Speed,3000,,,,, ,0,提升轴P2速度,BatchAxis_P2Speed,3000,,,,,
PRO,0,提升轴P3速度,BatchAxis_P3Speed,500,,,,, PRO,0,提升轴P3速度,BatchAxis_P3Speed,1000,,,,,
PRO,0,提升轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,10446,,,,, PRO,0,提升轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,10446,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,0,取料升降轴待机点P1,UpdownAxis_P1,72000,,,,, PRO,0,取料升降轴待机点P1,UpdownAxis_P1,72000,,,,,
......
...@@ -7,12 +7,12 @@ PRO,0,料架出口AGV站号名称,AgvOutName,F4,,,,, ...@@ -7,12 +7,12 @@ PRO,0,料架出口AGV站号名称,AgvOutName,F4,,,,,
PRO,0,相机名称,CameraName,GigE:MV-CE200-10GC (00E02588177),,,,, PRO,0,相机名称,CameraName,GigE:MV-CE200-10GC (00E02588177),,,,,
,,,,,,,,, ,,,,,,,,,
PRO,0,出料提升轴上升待机点 P1,BatchAxisP1,6332000,,,,, PRO,0,出料提升轴上升待机点 P1,BatchAxisP1,6332000,,,,,
PRO,0,出料提升轴下降位置P2,BatchAxisP2,-88500,,,,, PRO,0,出料提升轴下降位置P2,BatchAxisP2,-65841,,,,,
PRO,0,出料提升轴缓慢上升目标位置P3,BatchAxisP3,5610528,,,,, PRO,0,出料提升轴缓慢上升目标位置P3,BatchAxisP3,5610528,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,0,出料提升轴P1速度,BatchAxis_P1Speed,4000,,,,, PRO,0,出料提升轴P1速度,BatchAxis_P1Speed,4000,,,,,
PRO,0,出料提升轴P2速度,BatchAxis_P2Speed,4000,,,,, PRO,0,出料提升轴P2速度,BatchAxis_P2Speed,4000,,,,,
PRO,0,出料提升轴P3速度,BatchAxis_P3Speed,500,,,,, PRO,0,出料提升轴P3速度,BatchAxis_P3Speed,1000,,,,,
PRO,0,出料提升轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,10446,,,,, PRO,0,出料提升轴高度转换系数(1mm对应的脉冲),Height_ChangeValue,10446,,,,,
,,,,,,,,, ,,,,,,,,,
PRO,0,取料X轴待机点-P1,MoveX_P1,2001,,,,, PRO,0,取料X轴待机点-P1,MoveX_P1,2001,,,,,
...@@ -56,3 +56,4 @@ PRO,0,贴标机构R轴贴标点P3,LabelR_P3,500,,,,, ...@@ -56,3 +56,4 @@ PRO,0,贴标机构R轴贴标点P3,LabelR_P3,500,,,,,
PRO,0,贴标机构R轴P1速度,LabelR_P1Speed,20,,,,, PRO,0,贴标机构R轴P1速度,LabelR_P1Speed,20,,,,,
PRO,0,贴标机构R轴P2速度,LabelR_P2Speed,20,,,,, PRO,0,贴标机构R轴P2速度,LabelR_P2Speed,20,,,,,
PRO,0,贴标机构R轴P3速度,LabelR_P3Speed,20,,,,, PRO,0,贴标机构R轴P3速度,LabelR_P3Speed,20,,,,,
...@@ -4,15 +4,15 @@ PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,,,,,,,, ...@@ -4,15 +4,15 @@ PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,,,,,,,,
AXIS,,取料机构旋转轴_SVD01,Take_Middle_Axis,1,COM2,,250,500,500,100,200,1000,10,1000,0,0 AXIS,,取料机构旋转轴_SVD01,Take_Middle_Axis,1,COM2,,250,500,500,100,200,1000,10,1000,0,0
AXIS,,取料机构上下轴_SVD02,Take_UpDown_Axis,2,COM2,,1000,1000,1000,200,500,500,10,1000,0,0 AXIS,,取料机构上下轴_SVD02,Take_UpDown_Axis,2,COM2,,1000,1000,1000,200,500,500,10,1000,0,0
AXIS,,取料机构进出轴_SVD03,Take_InOut_Axis,3,COM2,,800,1000,1000,200,500,500,10,1000,0,0 AXIS,,取料机构进出轴_SVD03,Take_InOut_Axis,3,COM2,,800,1000,1000,200,500,500,10,1000,0,0
AXIS,,左轨道提升轴_SVD04,Left_Batch_Axis,4,COM2,,3000,500,500,200,1000,200,10,1000,0,0 AXIS,,左轨道提升轴_SVD04,Left_Batch_Axis,4,COM2,,3000,1000,1000,200,1000,200,10,1000,0,0
AXIS,,右轨道提升轴_SVD05,Right_Batch_Axis,5,COM2,,3000,500,500,200,1000,200,10,1000,0,0 AXIS,,右轨道提升轴_SVD05,Right_Batch_Axis,5,COM2,,3000,1000,1000,200,1000,200,10,1000,0,0
AXIS,,取料移栽机构X轴_SVD06,Move_X_Axis,6,COM4,,100,3000,3000,30,100,1000,10,1000,0,0 AXIS,,取料移栽机构X轴_SVD06,Move_X_Axis,6,COM4,,100,1500,1500,30,100,1000,10,1000,0,0
AXIS,,取料移栽机构Z轴_SVD07,Move_Z_Axis,7,COM4,,100,1000,1000,50,250,1000,10,1000,0,0 AXIS,,取料移栽机构Z轴_SVD07,Move_Z_Axis,7,COM4,,100,1000,1000,50,250,1000,10,1000,0,0
AXIS,,贴标移栽机构X轴_SVD08,Label_X_Axis,8,COM4,,100,1000,1000,50,250,500,10,1000,0,0 AXIS,,贴标移栽机构X轴_SVD08,Label_X_Axis,8,COM4,,100,1000,1000,50,250,500,10,1000,0,0
AXIS,,贴标移栽机构Y轴_SVD09,Label_Y_Axis,9,COM4,,100,500,500,50,150,500,10,1000,0,0 AXIS,,贴标移栽机构Y轴_SVD09,Label_Y_Axis,9,COM4,,100,1000,1000,50,150,500,10,1000,0,0
AXIS,,贴标移栽机构Z轴_SVD10,Label_Z_Axis,10,COM4,,100,500,500,50,150,500,10,1000,0,0 AXIS,,贴标移栽机构Z轴_SVD10,Label_Z_Axis,10,COM4,,100,1000,1000,50,150,500,10,1000,0,0
AXIS,,贴标移栽机构R轴_SVD11,Label_R_Axis,11,COM4,,10,2000,2000,1,5,200,500,1000,0,0 AXIS,,贴标移栽机构R轴_SVD11,Label_R_Axis,11,COM4,,10,2000,2000,1,5,200,500,1000,0,0
AXIS,,出料工位提升轴_SVD12,Out_Batch_Axis,12,COM4,,2000,500,500,200,1000,500,10,1000,0,0 AXIS,,出料工位提升轴_SVD12,Out_Batch_Axis,12,COM4,,2000,1000,1000,200,1000,500,10,1000,0,0
,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,
......
...@@ -196,6 +196,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -196,6 +196,16 @@ namespace OnlineStore.DeviceLibrary
PrintBean.Printer(PrintName, false); PrintBean.Printer(PrintName, false);
LogUtil.info("打印机初始化完成【" + labelName + "】【" + PrintName + "】"); LogUtil.info("打印机初始化完成【" + labelName + "】【" + PrintName + "】");
System.Drawing.Printing.PrintDocument print = new System.Drawing.Printing.PrintDocument();
string sDefault = print.PrinterSettings.PrinterName;//默认打印机名
LogUtil.info("本机默认打印机:" + sDefault);
int index = 1;
foreach (string sPrint in System.Drawing.Printing.PrinterSettings.InstalledPrinters)//获取所有打印机名称
{
LogUtil.info("打印机_"+index+"_名称:" + sPrint);
index++;
}
} }
public static Asa.PrintLabel.PrinterStatus LastPrintStatus = Asa.PrintLabel.PrinterStatus.Unknown; public static Asa.PrintLabel.PrinterStatus LastPrintStatus = Asa.PrintLabel.PrinterStatus.Unknown;
private static void Print_PrintStatusChanged(Asa.PrintLabel.PrinterStatus sta) private static void Print_PrintStatusChanged(Asa.PrintLabel.PrinterStatus sta)
......
...@@ -17,8 +17,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -17,8 +17,8 @@ namespace OnlineStore.DeviceLibrary
//http://10.85.17.233/ReturnOne/WebServiceF.asmx?op=Return_Material //http://10.85.17.233/ReturnOne/WebServiceF.asmx?op=Return_Material
private static string Addr_VMICheckRLC = "/service/store/emptyPosForPutin"; private static string Addr_VMICheckRLC = "/ESMTCommonInterface/CommonService.asmx?op=VMICheckRLC";
private static string Addr_Return_Material = "/rest/api/qisda/device/getSize"; private static string Addr_Return_Material = "/ReturnOne/WebServiceF.asmx?op=Return_Material";
public static string Get_VMICheckRLC(string deviceName, string codeStr, out bool need) public static string Get_VMICheckRLC(string deviceName, string codeStr, out bool need)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!