Commit 907df38e LN

中英文

1 个父辈 b117e876
此文件类型无法预览
FrmCodeDecode_Text,二维码识别,Qr code recognition
FrmCodeDecode_label4_Text,参数路径,Parameters of the path
FrmCodeDecode_chbUseParam_Text,使用参数,operation parameter
FrmCodeDecode_btnAn_Text,变暗,darken
FrmCodeDecode_btnLight_Text,提亮,brighten
FrmCodeDecode_btnCopyN_Text,复制名称,Copy Name
FrmCodeDecode_label3_Text,条码类型:,Bar code type:
FrmCodeDecode_label2_Text,相机列表:,Camera list:
FrmCodeDecode_btnExit_Text,退出,Exit
FrmCodeDecode_btnCameraImage_Text,相机获取图片,camera image
FrmCodeDecode_lblCount_Text,条码数量:,Barcode number:
FrmCodeDecode_btnClearLog_Text,清理日志,Clear log
FrmCodeDecode_btnDCode_Text,二维码识别,Qr code recognition
FrmCodeDecode_btnLearn_Text,学习,learn
FrmCodeDecode_btnbarCode_Text,一维码识别,One dimensional code recognition
FrmCodeDecode_btnGray_Text,图像转灰,Turning grey
FrmCodeDecode_btnErZhi_Text,二值化,binaryzation 
FrmCodeDecode_btnSelImage_Text,打开本地图片,Open local image
FrmCodeDecode_label1_Text,图片路径,Image path
FrmCodeLearn_Text,条码参数学习,Bar code parameter learning
FrmCodeLearn_chbHalcon_Text,Halcon获取图片,Halcon Get photo
FrmCodeLearn_label4_Text,图片路径,Image path
FrmCodeLearn_btnDelOld_Text,删除旧参数,Delete old parameter
FrmCodeLearn_chbUseCamera_Text,相机获取实时图片,camera image
FrmCodeLearn_btnSelImage_Text,打开本地图片,Open local image
FrmCodeLearn_chbTest_Text,学习结束自动识别测试,Automatic identification test
FrmCodeLearn_btnClearLog_Text,清理日志,Clear log
FrmCodeLearn_lblCount_Text,条码数量:,Barcode number:
FrmCodeLearn_label3_Text,参数路径,Parameters of the path
FrmCodeLearn_label2_Text,类型:,Type:
FrmCodeLearn_label1_Text,相机:,camera:
FrmCodeLearn_btnExit_Text,退出,Exit
FrmCodeLearn_btnStop_Text,结束学习,End of learning
FrmCodeLearn_btnOpen_Text,开始学习,start to learn
selCamera,请先选择相机,Please select camera
selImage,请先选择图片,Please select picture
title,提示,Notice
imageIsNull,获取二维码图片为空,Get the two-dimensional code picture is empty
sureDelete,确定删除文件:,Make sure to delete the file:
\ No newline at end of file \ No newline at end of file
...@@ -1330,4 +1330,7 @@ ...@@ -1330,4 +1330,7 @@
<data name="确定将[{0}]保存为单盘入库默认库位?" xml:space="preserve"> <data name="确定将[{0}]保存为单盘入库默认库位?" xml:space="preserve">
<value>Are you sure to save [{0}] as the default position of single storing ?</value> <value>Are you sure to save [{0}] as the default position of single storing ?</value>
</data> </data>
<data name="启动失败:设备未初始化完成" xml:space="preserve">
<value>Startup failure: device initialization is not complete</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -1329,4 +1329,7 @@ ...@@ -1329,4 +1329,7 @@
<data name="确定将[{0}]保存为单盘入库默认库位?" xml:space="preserve"> <data name="确定将[{0}]保存为单盘入库默认库位?" xml:space="preserve">
<value>确定将[{0}]保存为单盘入库默认库位?</value> <value>确定将[{0}]保存为单盘入库默认库位?</value>
</data> </data>
<data name="启动失败:设备未初始化完成" xml:space="preserve">
<value>启动失败:设备未初始化完成</value>
</data>
</root> </root>
\ No newline at end of file \ No newline at end of file
...@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -38,6 +38,7 @@ namespace OnlineStore.DeviceLibrary
private IO_VALUE preAirValue = IO_VALUE.HIGH; private IO_VALUE preAirValue = IO_VALUE.HIGH;
private bool IsHasCompress_Axis = true; private bool IsHasCompress_Axis = true;
private bool LoadOk = false;
public AC_SA_BoxBean(AUTO_SA_Config config) public AC_SA_BoxBean(AUTO_SA_Config config)
{ {
StoreName = ("AUTO_BOX_" + config.Id + " ").ToUpper(); StoreName = ("AUTO_BOX_" + config.Id + " ").ToUpper();
...@@ -78,17 +79,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -78,17 +79,18 @@ namespace OnlineStore.DeviceLibrary
if (ConfigAppSettings.GetIntValue(Setting_Init.CodeRun).Equals(1)) { } if (ConfigAppSettings.GetIntValue(Setting_Init.CodeRun).Equals(1)) { }
else else
{ {
IOManager.instance.ConnectionIOList(Config.DIODeviceNameList);
int isAuto = ConfigAppSettings.GetIntValue(Setting_Init.App_AutoRun);
mainTimer.Enabled = (isAuto == 1);
Task.Factory.StartNew(delegate Task.Factory.StartNew(delegate
{ {
IOManager.instance.ConnectionIOList(Config.DIODeviceNameList);
int isAuto = ConfigAppSettings.GetIntValue(Setting_Init.App_AutoRun);
Thread.Sleep(300); Thread.Sleep(300);
//默认三个灯都亮 //默认三个灯都亮
IOManager.IOMove(IO_Type.Alarm_HddLed, IO_VALUE.LOW); IOManager.IOMove(IO_Type.Alarm_HddLed, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.AutoRun_HddLed, IO_VALUE.LOW); IOManager.IOMove(IO_Type.AutoRun_HddLed, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.RunSign_HddLed, IO_VALUE.LOW); IOManager.IOMove(IO_Type.RunSign_HddLed, IO_VALUE.LOW);
IOManager.IOMove(IO_Type.Buzzer_Sign, IO_VALUE.LOW); IOManager.IOMove(IO_Type.Buzzer_Sign, IO_VALUE.LOW);
mainTimer.Enabled = (isAuto == 1);
LoadOk = true;
}); });
} }
} }
...@@ -204,6 +206,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -204,6 +206,11 @@ namespace OnlineStore.DeviceLibrary
{ {
try try
{ {
if (!LoadOk)
{
SetWarnMsg("启动失败:设备未初始化完成");
return false;
}
runTimeWatch.Restart(); runTimeWatch.Restart();
LogUtil.info(LOGGER, StoreName + "开始启动,启动时间:" + DateTime.Now.ToLongTimeString()); LogUtil.info(LOGGER, StoreName + "开始启动,启动时间:" + DateTime.Now.ToLongTimeString());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!