change - 条码绑定添加数据采集服务

main
wenjy 10 months ago
parent 7951d622ae
commit 6793c09184

@ -78,6 +78,7 @@
<ItemGroup>
<ProjectReference Include="..\Admin.Core.Extensions\Admin.Core.Extensions.csproj" />
<ProjectReference Include="..\Aucma.Core.BoxFoam\Aucma.Core.BoxFoam.csproj" />
<ProjectReference Include="..\Aucma.Core.DataCollector\Aucma.Core.DataCollector.csproj" />
</ItemGroup>
<ItemGroup>

@ -8,6 +8,7 @@ using Admin.Core.Repository;
using Admin.Core.Service;
using Admin.Core.Socket;
using Admin.Core.Tasks;
using Aucma.Core.DataCollector;
using Aucma.Core.RunPlc;
using Aucma.Core.Scanner;
using Aucma.Core.ScannerGun;
@ -114,6 +115,8 @@ namespace Aucma.Core.CodeBinding
app.UsePlcMildd(runPlcService);
// Socket连接扫码器
app.UseTouchSocketMildd(socket);
app.UseDataCollectorExtensions();
}
#region 注册服务

@ -212,6 +212,9 @@
"Name": "sn扫码器"
}
],
"StationInfo": {
"StationCode": "1010"
},
"PLCServer": [
{
"Id": 1,
@ -220,8 +223,56 @@
"Enabled": true,
//"IP": "127.0.0.1",
// "Port": 6000
"IP": "10.10.92.70",
"IP": "10.10.92.72",
"Port": 2014
},
{
"Id": 2,
"EquipName": "ShellStore",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.22",
"Port": 2015
},
{
"Id": 3,
"EquipName": "LinerStore",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.29",
"Port": 2015
},
{
"Id": 4,
"EquipName": "ShellPreassemble",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.10",
"Port": 2015
},
{
"Id": 5,
"EquipName": "LinerPreassemble",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.1",
"Port": 2015
},
{
"Id": 6,
"EquipName": "FoamBack",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.49",
"Port": 2015
},
{
"Id": 7,
"EquipName": "Palletiz",
"PlcType": "Melsec",
"Enabled": true,
"IP": "10.10.92.80", //10.10.92.80
"Port": 2015
}
],

@ -25,7 +25,7 @@ namespace Aucma.Core.DataCollector
public readonly IRecordDeviceElectricityServices _deviceElectricityServices;
public int AlarmReadTimer = (1000 * 5);
public int EleReadTimer = (1000 * 20);
public int EleReadTimer = (1000 * 5);
public DataCollectorFactory(IBaseDeviceParamServices deviceParamServices, IRecordDeviceAlarmInfoServices deviceAlarmInfoServices, IRecordDeviceElectricityServices deviceElectricityServices)
{

Loading…
Cancel
Save