Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
ACSingleStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit dbda18bc
由
几米阳光
编写于
2019-01-03 11:33:26 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
波特率改为可配置
1 个父辈
a698bebd
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
11 行增加
和
3 行删除
source/ACSingleStore/App.config
source/ACSingleStore/记录.txt
source/Common/Setting_Init.cs
source/DeviceLibrary/PanasonicServo/ACServerManager.cs
source/ACSingleStore/App.config
查看文件 @
dbda18b
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<
add
key
=
"Config_Pwd"
value
=
"123456"
/>
<!--出库等待料盘拿走的时间,秒-->
<!--出库等待料盘拿走的时间,秒-->
<
add
key
=
"OutStoreWaitSeconds"
value
=
"600"
/>
<
add
key
=
"OutStoreWaitSeconds"
value
=
"600"
/>
<
add
key
=
"ACBaudRate"
value
=
"4800"
/>
</
appSettings
>
</
appSettings
>
<
log4net
>
<
log4net
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
<
appender
name
=
"RollingLogFileAppender"
type
=
"log4net.Appender.RollingFileAppender"
>
...
...
source/ACSingleStore/记录.txt
查看文件 @
dbda18b
...
@@ -39,8 +39,9 @@
...
@@ -39,8 +39,9 @@
伺服波特率改为可配置:
LDACSingleStore.exe.config增加配置:
<add key ="ACBaudRate" value ="4800"/>
...
...
source/Common/Setting_Init.cs
查看文件 @
dbda18b
...
@@ -75,5 +75,10 @@ namespace OnlineStore.Common
...
@@ -75,5 +75,10 @@ namespace OnlineStore.Common
/// 出库等待料盘拿走的时间,秒
/// 出库等待料盘拿走的时间,秒
/// </summary>
/// </summary>
public
static
string
OutStoreWaitSeconds
=
"OutStoreWaitSeconds"
;
public
static
string
OutStoreWaitSeconds
=
"OutStoreWaitSeconds"
;
/// <summary>
/// 伺服波特率
/// </summary>
public
static
string
ACBaudRate
=
"ACBaudRate"
;
}
}
}
}
source/DeviceLibrary/PanasonicServo/ACServerManager.cs
查看文件 @
dbda18b
...
@@ -77,7 +77,8 @@ namespace OnlineStore.DeviceLibrary
...
@@ -77,7 +77,8 @@ namespace OnlineStore.DeviceLibrary
{
{
return
true
;
return
true
;
}
}
AcSerialBean
bean
=
new
AcSerialBean
(
portName
,
9600
,
Parity
.
Even
,
8
,
StopBits
.
One
);
int
ACBaudRate
=
ConfigAppSettings
.
GetIntValue
(
Setting_Init
.
ACBaudRate
);
AcSerialBean
bean
=
new
AcSerialBean
(
portName
,
ACBaudRate
,
Parity
.
Even
,
8
,
StopBits
.
One
);
bool
result
=
bean
.
openPort
();
bool
result
=
bean
.
openPort
();
if
(!
result
)
if
(!
result
)
{
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论