Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
李娜
/
SO827-AssemblyLine
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d6e1948b
由
LN
编写于
2021-03-17 12:58:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
bug修改
1 个父辈
1a36baf0
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
30 行增加
和
22 行删除
dll/AsaPL.AgvClient.dll
source/AssemblyLineClient/useControl/AxisMoveControl.cs
source/DeviceLibrary/LineConfig/Config_Line.csv
source/DeviceLibrary/agvClient/AgvClient.cs
source/DeviceLibrary/baan/ClampJawBean.cs
source/DeviceLibrary/deviceLibrary/IO/IOManager.cs
dll/AsaPL.AgvClient.dll
0 → 100644
查看文件 @
d6e1948
此文件类型无法预览
source/AssemblyLineClient/useControl/AxisMoveControl.cs
查看文件 @
d6e1948
...
...
@@ -299,6 +299,7 @@ namespace OnlineStore.AssemblyLine
lblAxEncVel
.
Text
=
HCBoardManager
.
GetAxisCurrVel
(
axisNo
).
ToString
();
lblAxEncAcc
.
Text
=
HCBoardManager
.
GetAxisCurrAcc
(
axisNo
).
ToString
();
//label65.Text = nTimerAxEncAcc[0].ToString();
txtAxisPosition
.
Text
=
lblAxEncPos
.
Text
;
short
value
=
HCBoardManager
.
GetHomeStatus
(
axisNo
);
string
homesstr
=
HCBoardManager
.
AxisHomeSts
(
value
);
...
...
source/DeviceLibrary/LineConfig/Config_Line.csv
查看文件 @
d6e1948
类型,分类编号,说明,名称,属性值,设备名称,电器定义,目标速度,加速度,减速度,出力,距离
CLAW,1,移栽D1_夹爪,CLAW_D1,0,COM1,,500,500,500,30,7
CLAW,2,移栽D2_夹爪,CLAW_D2,1,COM1,,500,500,500,30,7
CLAW,3,移栽D3_夹爪,CLAW_D3,2,COM1,,500,500,500,30,7
CLAW,4,移栽D4_夹爪,CLAW_D4,3,COM1,,500,500,500,30,7
CLAW,5,移栽D5_夹爪,CLAW_D5,0,COM2,,500,500,500,30,7
CLAW,6,移栽D6_夹爪,CLAW_D6,1,COM2,,500,500,500,30,7
CLAW,7,移栽D7_夹爪,CLAW_D7,2,COM2,,500,500,500,30,7
CLAW,101,上料模块T1夹爪,CLAW_T1,3,COM2,,500,500,500,30,7
CLAW,1,移栽D1_夹爪,CLAW_D1,0,COM1
3
,,500,500,500,30,7
CLAW,2,移栽D2_夹爪,CLAW_D2,1,COM1
3
,,500,500,500,30,7
CLAW,3,移栽D3_夹爪,CLAW_D3,2,COM1
3
,,500,500,500,30,7
CLAW,4,移栽D4_夹爪,CLAW_D4,3,COM1
3
,,500,500,500,30,7
CLAW,5,移栽D5_夹爪,CLAW_D5,0,COM
1
2,,500,500,500,30,7
CLAW,6,移栽D6_夹爪,CLAW_D6,1,COM
1
2,,500,500,500,30,7
CLAW,7,移栽D7_夹爪,CLAW_D7,2,COM
1
2,,500,500,500,30,7
CLAW,101,上料模块T1夹爪,CLAW_T1,3,COM
1
2,,500,500,500,30,7
,,,,,,,,,,,
,,,,,,,,,,,
,,,,,,,,,,,
...
...
source/DeviceLibrary/agvClient/AgvClient.cs
查看文件 @
d6e1948
...
...
@@ -12,7 +12,7 @@ namespace OnlineStore.DeviceLibrary
{
public
class
AgvClient
{
public
static
bool
CurrCancelState
=
fals
e
;
public
static
bool
CurrCancelState
=
tru
e
;
private
static
string
ServerIp
=
ConfigAppSettings
.
GetValue
(
Setting_Init
.
AgvServerIp
);
private
static
Asa
.
AgvClient
agvClient
;
public
static
Dictionary
<
string
,
Asa
.
ClientAction
>
actionMap
=
new
Dictionary
<
string
,
Asa
.
ClientAction
>();
...
...
source/DeviceLibrary/baan/ClampJawBean.cs
查看文件 @
d6e1948
...
...
@@ -35,7 +35,7 @@ namespace OnlineStore.DeviceLibrary
bool
result
=
rmaxis
.
OpenPort
(
config
.
PortName
,
config
.
AxisNo
);
if
(!
result
)
{
LogUtil
.
error
(
Name
+
" OpenPort 失败:"
);
LogUtil
.
error
(
Name
+
" OpenPort 失败:"
+
rmaxis
.
ErrorCode
);
}
}
return
rmaxis
.
IsPortOpen
;
...
...
source/DeviceLibrary/deviceLibrary/IO/IOManager.cs
查看文件 @
d6e1948
...
...
@@ -66,27 +66,34 @@ namespace OnlineStore.DeviceLibrary
return
IO_VALUE
.
None
;
}
IO_VALUE
ioValue
=
IO_VALUE
.
None
;
ConfigIO
configIo
=
GetDI
(
ioType
,
subType
);
if
(
configIo
==
null
)
try
{
configIo
=
GetDO
(
ioType
,
subType
);
}
if
(
configIo
!=
null
)
{
if
(
configIo
.
ProType
.
Equals
(
ConfigItemType
.
DI
))
ConfigIO
configIo
=
GetDI
(
ioType
,
subType
);
if
(
configIo
==
null
)
{
configIo
=
GetDO
(
ioType
,
subType
);
}
ioValue
=
instance
.
GetDIValue
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
());
if
(
configIo
!=
null
)
{
if
(
configIo
.
ProType
.
Equals
(
ConfigItemType
.
DI
))
{
ioValue
=
instance
.
GetDIValue
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
());
}
else
{
ioValue
=
instance
.
GetDOValue
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
());
}
}
else
{
ioValue
=
instance
.
GetDOValue
(
configIo
.
IO_IP
,
configIo
.
SlaveID
,
configIo
.
GetIOAddr
()
);
IOErrorLog
(
ioType
,
subType
,
"IO"
);
}
}
else
}
catch
(
Exception
ex
)
{
IOErrorLog
(
ioType
,
subType
,
"IO"
);
LogUtil
.
error
(
"IOValue Error: "
+
ex
.
ToString
()
);
}
return
ioValue
;
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论