Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
SO853-AutoCountMachine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 7e49d1e3
由
刘韬
编写于
2025-09-29 14:07:08 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1
1 个父辈
2fdcd07b
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
15 行增加
和
15 行删除
DeviceLibrary/AutoScan/MachineBase.cs
DeviceLibrary/AutoScan/RobotManage.cs
DeviceLibrary/DeviceLibrary.csproj
SO853-AutoCountMachine/Form1.cs
SO853-AutoCountMachine/Program.cs
SO853-AutoCountMachine/SO853-AutoCountMachine.csproj
SO853-AutoCountMachine/XrayControl.cs
DeviceLibrary/AutoScan/MachineBase.cs
查看文件 @
7e49d1e
...
@@ -280,10 +280,8 @@ namespace DeviceLibrary
...
@@ -280,10 +280,8 @@ namespace DeviceLibrary
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W008_BatchAxis
))
else
if
(
wait
.
WaitType
.
Equals
(
WaitEnum
.
W008_BatchAxis
))
{
{
AxisBean
axisBean
=
null
;
AxisBean
axisBean
=
null
;
//if (wait.AxisInfo.ProName == "Right_Batch_Axis")
// axisBean = Right_Batch_Axis;
axisBean
=
RobotManage
.
t1Machine
.
T_Batch_Axis
;
//else
// axisBean = Left_Batch_Axis;
//等待信号亮或者走到绝对位置才停止
//等待信号亮或者走到绝对位置才停止
if
(
IOValue
(
axisBean
.
TargetIoType
).
Equals
(
axisBean
.
TargetIoValue
))
if
(
IOValue
(
axisBean
.
TargetIoType
).
Equals
(
axisBean
.
TargetIoValue
))
...
...
DeviceLibrary/AutoScan/RobotManage.cs
查看文件 @
7e49d1e
...
@@ -21,7 +21,7 @@ namespace DeviceLibrary
...
@@ -21,7 +21,7 @@ namespace DeviceLibrary
public
static
LabelMachine
labelMachine
;
public
static
LabelMachine
labelMachine
;
public
static
FilterMachine
filterMachine
;
public
static
FilterMachine
filterMachine
;
public
static
T1Machine
t1Machine
;
public
static
T1Machine
t1Machine
;
public
static
XRay
XRay
=
new
XRay
(
"XRay"
);
public
static
XRay
XRay
=
new
XRay
(
"XRay"
,
XRayType
.
Spellman_RS232
);
public
static
XrayImage
xrayImage
=
new
Asa
.
XrayImage
(
"XrayImage"
,
XrayImage
.
DeviceType
.
HAOBO_V2
);
public
static
XrayImage
xrayImage
=
new
Asa
.
XrayImage
(
"XrayImage"
,
XrayImage
.
DeviceType
.
HAOBO_V2
);
public
static
Config_XRay
Config
;
public
static
Config_XRay
Config
;
public
static
bool
IsLoadOk
=
true
;
public
static
bool
IsLoadOk
=
true
;
...
...
DeviceLibrary/DeviceLibrary.csproj
查看文件 @
7e49d1e
...
@@ -82,8 +82,9 @@
...
@@ -82,8 +82,9 @@
<Reference Include="System.Data" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="System.Xml" />
<Reference Include="X-Ray">
<Reference Include="X-Ray, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\DLL\X-Ray.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\X-Ray\X-Ray\bin\Debug\X-Ray.dll</HintPath>
</Reference>
</Reference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
SO853-AutoCountMachine/Form1.cs
查看文件 @
7e49d1e
...
@@ -28,6 +28,7 @@ namespace AutoCountMachine
...
@@ -28,6 +28,7 @@ namespace AutoCountMachine
public
Form1
()
public
Form1
()
{
{
InitializeComponent
();
InitializeComponent
();
databaseProc
.
Current
.
LoadDISTINCTPn
();
//MsgEventHandler = new EventHandler<List<Msg>>(SetMsg);
//MsgEventHandler = new EventHandler<List<Msg>>(SetMsg);
t1
.
Interval
=
1000
;
t1
.
Interval
=
1000
;
t1
.
Tick
+=
T1_Tick
;
t1
.
Tick
+=
T1_Tick
;
...
...
SO853-AutoCountMachine/Program.cs
查看文件 @
7e49d1e
...
@@ -39,7 +39,9 @@ namespace AutoCountMachine
...
@@ -39,7 +39,9 @@ namespace AutoCountMachine
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
//x = IODebounce.Test("123", OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, OnlineStore.LoadCSVLibrary.IO_VALUE.LOW, 3);
Application
.
SetUnhandledExceptionMode
(
UnhandledExceptionMode
.
CatchException
);
Application
.
ThreadException
+=
Application_ThreadException
;
AppDomain
.
CurrentDomain
.
UnhandledException
+=
CurrentDomain_UnhandledException
;
_
=
new
Mutex
(
true
,
Application
.
ProductName
,
out
bool
ret
);
_
=
new
Mutex
(
true
,
Application
.
ProductName
,
out
bool
ret
);
...
@@ -52,13 +54,11 @@ namespace AutoCountMachine
...
@@ -52,13 +54,11 @@ namespace AutoCountMachine
return
;
return
;
}
}
Environment
.
CurrentDirectory
=
Application
.
StartupPath
;
Environment
.
CurrentDirectory
=
Application
.
StartupPath
;
CheckConfigFile
();
//
CheckConfigFile();
XmlConfigurator
.
Configure
();
XmlConfigurator
.
Configure
();
Application
.
SetUnhandledExceptionMode
(
UnhandledExceptionMode
.
CatchException
);
Application
.
ThreadException
+=
Application_ThreadException
;
//
AppDomain
.
CurrentDomain
.
UnhandledException
+=
CurrentDomain_UnhandledException
;
databaseProc
.
Current
.
LoadDISTINCTPn
();
Application
.
EnableVisualStyles
();
Application
.
EnableVisualStyles
();
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
SetCompatibleTextRenderingDefault
(
false
);
Application
.
Run
(
new
Form1
());
Application
.
Run
(
new
Form1
());
...
...
SO853-AutoCountMachine/SO853-AutoCountMachine.csproj
查看文件 @
7e49d1e
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<Reference Include="WindowsBase" />
<Reference Include="WindowsBase" />
<Reference Include="X-Ray, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="X-Ray, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\X-Ray\X-Ray\bin\Debug\X-Ray.dll</HintPath>
<HintPath>..\..\
..\
X-Ray\X-Ray\bin\Debug\X-Ray.dll</HintPath>
</Reference>
</Reference>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
SO853-AutoCountMachine/XrayControl.cs
查看文件 @
7e49d1e
...
@@ -361,7 +361,7 @@ namespace AutoCountMachine
...
@@ -361,7 +361,7 @@ namespace AutoCountMachine
RobotManage
.
xrayMachine
.
IOMove
(
IO_XRay_Type
.
Xray_Lock
,
IO_VALUE
.
HIGH
);
RobotManage
.
xrayMachine
.
IOMove
(
IO_XRay_Type
.
Xray_Lock
,
IO_VALUE
.
HIGH
);
Task
.
Delay
(
1000
).
Wait
();
Task
.
Delay
(
1000
).
Wait
();
RobotManage
.
XRay
.
Start
();
RobotManage
.
XRay
.
Start
();
Task
.
Delay
(
2
000
).
Wait
();
Task
.
Delay
(
5
000
).
Wait
();
var
b
=
RobotManage
.
xrayImage
.
GenerateTemplate
(
2
);
var
b
=
RobotManage
.
xrayImage
.
GenerateTemplate
(
2
);
b
.
Wait
();
b
.
Wait
();
if
(
b
.
Result
)
if
(
b
.
Result
)
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论