Commit 27d4a2b5 LN

移栽IO配置

1 个父辈 38d34e00
正在显示 34 个修改的文件 包含 1374 行增加958 行删除
......@@ -308,7 +308,7 @@ namespace OnlineStore.AssemblyLine
feedEquip.IsDebug = true;
feedEquip.Config.IsDebug = 1;
LineManager.SaveFeedingEquipConfig(feedEquip.Config);
feedEquip.ChangeDebug();
feedEquip.ChangeDebug(true);
LogUtil.info(feedEquip.Name+ "用户切换到调试状态 ");
}
}
......@@ -323,7 +323,7 @@ namespace OnlineStore.AssemblyLine
feedEquip.IsDebug = false;
feedEquip.Config.IsDebug = 0;
LineManager.SaveFeedingEquipConfig(feedEquip.Config);
feedEquip.ChangeDebug();
feedEquip.ChangeDebug(false);
LogUtil.info(feedEquip.Name + "用户切换到正常工作状态 ");
}
}
......
......@@ -326,7 +326,7 @@ namespace OnlineStore.AssemblyLine
moveEquip.IsDebug = true;
moveEquip.Config.IsDebug = 1;
LineManager.SaveMoveEquipConfig(moveEquip.Config);
moveEquip.ChangeDebug();
moveEquip.ChangeDebug(true);
LogUtil.info(moveEquip.Name+ "用户切换到调试状态 ");
}
}
......@@ -341,7 +341,7 @@ namespace OnlineStore.AssemblyLine
moveEquip.IsDebug = false;
moveEquip.Config.IsDebug = 0;
LineManager.SaveMoveEquipConfig(moveEquip.Config);
moveEquip.ChangeDebug();
moveEquip.ChangeDebug(false);
LogUtil.info(moveEquip.Name + "用户切换到正常工作状态 ");
}
}
......
......@@ -16,7 +16,7 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmMoveEquip));
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmProvidingEquip));
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
......@@ -50,7 +50,6 @@
this.btnStart = new System.Windows.Forms.Button();
this.btnStop = new System.Windows.Forms.Button();
this.btnReset = new System.Windows.Forms.Button();
this.btnInStore = new System.Windows.Forms.Button();
this.btnOutStore = new System.Windows.Forms.Button();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
......@@ -548,19 +547,6 @@
this.btnReset.UseVisualStyleBackColor = false;
this.btnReset.Click += new System.EventHandler(this.btnReset_Click);
//
// btnInStore
//
this.btnInStore.BackColor = System.Drawing.Color.White;
this.btnInStore.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnInStore.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnInStore.Location = new System.Drawing.Point(457, 14);
this.btnInStore.Name = "btnInStore";
this.btnInStore.Size = new System.Drawing.Size(110, 34);
this.btnInStore.TabIndex = 102;
this.btnInStore.Text = "入库测试";
this.btnInStore.UseVisualStyleBackColor = false;
this.btnInStore.Click += new System.EventHandler(this.btnInStore_Click);
//
// btnOutStore
//
this.btnOutStore.BackColor = System.Drawing.Color.White;
......@@ -570,7 +556,7 @@
this.btnOutStore.Name = "btnOutStore";
this.btnOutStore.Size = new System.Drawing.Size(110, 34);
this.btnOutStore.TabIndex = 101;
this.btnOutStore.Text = "出测试";
this.btnOutStore.Text = "出测试";
this.btnOutStore.UseVisualStyleBackColor = false;
this.btnOutStore.Click += new System.EventHandler(this.btnOutStore_Click);
//
......@@ -1330,7 +1316,6 @@
this.panel1.Controls.Add(this.lblStoreStatus);
this.panel1.Controls.Add(this.btnOutStore);
this.panel1.Controls.Add(this.btnStart);
this.panel1.Controls.Add(this.btnInStore);
this.panel1.Controls.Add(this.btnStop);
this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1);
......@@ -1338,7 +1323,7 @@
this.panel1.Size = new System.Drawing.Size(1295, 68);
this.panel1.TabIndex = 258;
//
// FrmMoveEquip
// FrmProvidingEquip
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
......@@ -1348,7 +1333,7 @@
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FrmMoveEquip";
this.Name = "FrmProvidingEquip";
this.Text = "移栽——";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmTest_FormClosing);
this.Load += new System.EventHandler(this.FrmStoreIOStatus_Load);
......@@ -1403,7 +1388,6 @@
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnStop;
private System.Windows.Forms.Button btnReset;
private System.Windows.Forms.Button btnInStore;
private System.Windows.Forms.Button btnOutStore;
private System.Windows.Forms.CheckBox chbDebug;
private System.Windows.Forms.Button btnStop2Up;
......
......@@ -87,10 +87,10 @@ namespace OnlineStore.AssemblyLine
lblStoreStatus.Text = KTK_Store.GetRunStr(providingEquip.lineStatus, providingEquip.runStatus)+"("+canOut+")";
lblThisSta.Text = providingEquip.WarnMsg;
string text = "";
List<InOutParam> ps = new List<InOutParam>(providingEquip.waitInStoreList);
List<InOutParam> ps = new List<InOutParam>(providingEquip.waitOutStoreList);
if (ps.Count > 0)
{
text = "等待入库列表:\r";
text = "等待出料列表:\r";
foreach (InOutParam param in ps)
{
text += param.ToStr() + "\r";
......@@ -265,7 +265,7 @@ namespace OnlineStore.AssemblyLine
btnStart.Enabled = !isStart;
btnStop.Enabled = true;
btnReset.Enabled = isStart;
btnInStore.Enabled = isStart;
//btnInStore.Enabled = isStart;
btnOutStore.Enabled = isStart;
}
......@@ -314,7 +314,7 @@ namespace OnlineStore.AssemblyLine
providingEquip.IsDebug = true;
providingEquip.Config.IsDebug = 1;
LineManager.SaveProvidingEquipConfig(providingEquip.Config);
providingEquip.ChangeDebug();
providingEquip.ChangeDebug(true);
LogUtil.info(providingEquip.Name+ "用户切换到调试状态 ");
}
}
......@@ -329,7 +329,7 @@ namespace OnlineStore.AssemblyLine
providingEquip.IsDebug = false;
providingEquip.Config.IsDebug = 0;
LineManager.SaveProvidingEquipConfig(providingEquip.Config);
providingEquip.ChangeDebug();
providingEquip.ChangeDebug(false);
LogUtil.info(providingEquip.Name + "用户切换到正常工作状态 ");
}
}
......@@ -348,17 +348,7 @@ namespace OnlineStore.AssemblyLine
}
}
private void btnInStore_Click(object sender, EventArgs e)
{
if (providingEquip.runStatus.Equals(LineRunStatus.Runing))
{
providingEquip.StartInStoreMove(new InOutParam());
}
else
{
MessageBox.Show("未启动或不在空闲中,无法入库测试!");
}
}
private void btnStop_Click(object sender, EventArgs e)
{
......
......@@ -78,7 +78,7 @@
<Compile Include="deviceLibrary\PanasonicServo\ACCMDManager.cs" />
<Compile Include="deviceLibrary\PanasonicServo\ACServerManager.cs" />
<Compile Include="deviceLibrary\PanasonicServo\ACServerManager_Partial.cs" />
<Compile Include="model\EquipBase.cs" />
<Compile Include="assemblyLine\EquipBase.cs" />
<Compile Include="model\LineAlarm.cs">
<SubType>Code</SubType>
</Compile>
......
......@@ -49,88 +49,88 @@ DO,0,故障状态(指示灯),Alarm_HddLed,2,192.168.201.61,0,故障状态(指示灯),Y03,D
DO,0,驱动电机正转,DriveMotor_Run,3,192.168.201.61,0,驱动电机正转,Y04,DO-04
DO,0,横移电机1.2驱动,SidesWay12_DriveMotor,4,192.168.201.61,0,横移电机1.2驱动,Y05,DO-05
DO,0,横移电机3.4驱动,SidesWay34_DriveMotor,5,192.168.201.61,0,横移电机3.4驱动,Y06,DO-06
DO,4,移载4升降轴刹车ON,UpDownAxis_BreakOn,6,192.168.201.61,0,移载4升降轴刹车ON,Y07,DO-07
DO,4,移载4升降轴伺服ON,UpDownAxis_ServoOn,7,192.168.201.61,0,移载4升降轴伺服ON,Y08,DO-08
,4,移载4升降轴刹车ON,UpDownAxis_BreakOn,6,192.168.201.61,0,移载4升降轴刹车ON,Y07,DO-07
,4,移载4升降轴伺服ON,UpDownAxis_ServoOn,7,192.168.201.61,0,移载4升降轴伺服ON,Y08,DO-08
,,,,,,,,,
DI,1,阻挡1-1夹具检测,TrayCheck,0,192.168.201.63,0,阻挡1-1夹具检测,X31,DI-31
DI,1,夹具检测1-1,Fixture_Check_1,1,192.168.201.63,0,夹具检测1-1,X32,DI-32
DI,1,夹具检测1-2,Fixture_Check_2,2,192.168.201.63,0,夹具检测1-2,X33,DI-33
DI,1,夹具检测1-3,Fixture_Check_3,3,192.168.201.63,0,夹具检测1-3,X34,DI-34
DI,1,夹具检测1-4,Fixture_Check_4,4,192.168.201.63,0,夹具检测1-4,X35,DI-35
DI,1,移载1顶升气缸1上升端,TopCylinder_UP,5,192.168.201.63,0,移载1顶升气缸1上升端,X36,DI-36
DI,1,移载1顶升气缸1下降端,TopCylinder_Down,6,192.168.201.63,0,移载1顶升气缸1下降端,X37,DI-37
DI,1,移载1前后气缸1前进端,BeforeAfterCylinder_Before,7,192.168.201.63,0,移载1前后气缸1前进端,X38,DI-38
DI,1,移载1前后气缸1后退端,BeforeAfterCylinder_After,8,192.168.201.63,0,移载1前后气缸1后退端,X39,DI-39
DI,1,移载1上下气缸1上升端,UpDownCylinder_Up,9,192.168.201.63,0,移载1上下气缸1上升端,X40,DI-40
DI,1,移载1上下气缸1下降端,UpDownCylinder_Down,10,192.168.201.63,0,移载1上下气缸1下降端,X41,DI-41
DI,1,移载1夹料气缸1夹紧端,ClampCylinder_Slack,11,192.168.201.63,0,移载1夹料气缸1夹紧端,X42,DI-42
DI,1,移载1夹料气缸1放松端,ClampCylinder_Tighten,12,192.168.201.63,0,移载1夹料气缸1放松端,X43,DI-43
,1,阻挡1-1夹具检测,TrayCheck,0,192.168.201.63,0,阻挡1-1夹具检测,X31,DI-31
,1,夹具检测1-1,Fixture_Check_1,1,192.168.201.63,0,夹具检测1-1,X32,DI-32
,1,夹具检测1-2,Fixture_Check_2,2,192.168.201.63,0,夹具检测1-2,X33,DI-33
,1,夹具检测1-3,Fixture_Check_3,3,192.168.201.63,0,夹具检测1-3,X34,DI-34
,1,夹具检测1-4,Fixture_Check_4,4,192.168.201.63,0,夹具检测1-4,X35,DI-35
,1,移载1顶升气缸1上升端,TopCylinder_UP,5,192.168.201.63,0,移载1顶升气缸1上升端,X36,DI-36
,1,移载1顶升气缸1下降端,TopCylinder_Down,6,192.168.201.63,0,移载1顶升气缸1下降端,X37,DI-37
,1,移载1前后气缸1前进端,BeforeAfterCylinder_Before,7,192.168.201.63,0,移载1前后气缸1前进端,X38,DI-38
,1,移载1前后气缸1后退端,BeforeAfterCylinder_After,8,192.168.201.63,0,移载1前后气缸1后退端,X39,DI-39
,1,移载1上下气缸1上升端,UpDownCylinder_Up,9,192.168.201.63,0,移载1上下气缸1上升端,X40,DI-40
,1,移载1上下气缸1下降端,UpDownCylinder_Down,10,192.168.201.63,0,移载1上下气缸1下降端,X41,DI-41
,1,移载1夹料气缸1夹紧端,ClampCylinder_Slack,11,192.168.201.63,0,移载1夹料气缸1夹紧端,X42,DI-42
,1,移载1夹料气缸1放松端,ClampCylinder_Tighten,12,192.168.201.63,0,移载1夹料气缸1放松端,X43,DI-43
,,,,13,192.168.201.63,0,,X44,DI-44
,,,,14,192.168.201.63,0,,X45,DI-45
,,,,15,192.168.201.63,0,,X46,DI-46
DO,0,阻挡气缸0-1下降SOL,StopCylinder_Down1,0,192.168.201.63,0,阻挡气缸0-1下降SOL,Y11,DO-11
DO,0,阻挡气缸0-2下降SOL,StopCylinder_Down2,1,192.168.201.63,0,阻挡气缸0-2下降SOL,Y12,DO-12
DO,0,横移轨道1阻挡下降SOL,SidesWay1_StopCylinderDown,2,192.168.201.63,0,横移轨道1阻挡下降SOL,Y13,DO-13
DO,1,移载1阻挡气缸1-1下降SOL,StopCylinder_Down1,3,192.168.201.63,0,移载1阻挡气缸1-1下降SOL,Y14,DO-14
DO,1,移载1阻挡气缸1-2下降SOL,StopCylinder_Down2,4,192.168.201.63,0,移载1阻挡气缸1-2下降SOL,Y15,DO-15
,1,移载1阻挡气缸1-1下降SOL,StopCylinder_Down1,3,192.168.201.63,0,移载1阻挡气缸1-1下降SOL,Y14,DO-14
,1,移载1阻挡气缸1-2下降SOL,StopCylinder_Down2,4,192.168.201.63,0,移载1阻挡气缸1-2下降SOL,Y15,DO-15
DO,0,上料工位顶升气缸上升SOL,InStore_TopCylinder_Up,5,192.168.201.63,0,上料工位顶升气缸上升SOL,Y16,DO-16
DO,0,上料工位顶升气缸下降SOL,InStore_TopCylinder_Down,6,192.168.201.63,0,上料工位顶升气缸下降SOL,Y17,DO-17
DO,1,移载1顶升气缸1上升SOL,TopCylinder_UP,7,192.168.201.63,0,移载1顶升气缸1上升SOL,Y18,DO-18
DO,1,移载1顶升气缸1下降SOL,TopCylinder_Down,8,192.168.201.63,0,移载1顶升气缸1下降SOL,Y19,DO-19
DO,1,移载1前后气缸1前进SOL,BeforeAfterCylinder_Before,9,192.168.201.63,0,移载1前后气缸1前进SOL,Y20,DO-20
DO,1,移载1前后气缸1后退SOL,BeforeAfterCylinder_After,10,192.168.201.63,0,移载1前后气缸1后退SOL,Y21,DO-21
DO,1,移载1上下气缸1上升SOL,UpDownCylinder_Up,11,192.168.201.63,0,移载1上下气缸1上升SOL,Y22,DO-22
DO,1,移载1上下气缸1下降SOL,UpDownCylinder_Down,12,192.168.201.63,0,移载1上下气缸1下降SOL,Y23,DO-23
DO,1,移载1夹料气缸1夹紧SOL,ClampCylinder_Slack,13,192.168.201.63,0,移载1夹料气缸1夹紧SOL,Y24,DO-24
DO,1,移载1夹料气缸1放松SOL,ClampCylinder_Tighten,14,192.168.201.63,0,移载1夹料气缸1放松SOL,Y25,DO-25
,1,移载1顶升气缸1上升SOL,TopCylinder_UP,7,192.168.201.63,0,移载1顶升气缸1上升SOL,Y18,DO-18
,1,移载1顶升气缸1下降SOL,TopCylinder_Down,8,192.168.201.63,0,移载1顶升气缸1下降SOL,Y19,DO-19
,1,移载1前后气缸1前进SOL,BeforeAfterCylinder_Before,9,192.168.201.63,0,移载1前后气缸1前进SOL,Y20,DO-20
,1,移载1前后气缸1后退SOL,BeforeAfterCylinder_After,10,192.168.201.63,0,移载1前后气缸1后退SOL,Y21,DO-21
,1,移载1上下气缸1上升SOL,UpDownCylinder_Up,11,192.168.201.63,0,移载1上下气缸1上升SOL,Y22,DO-22
,1,移载1上下气缸1下降SOL,UpDownCylinder_Down,12,192.168.201.63,0,移载1上下气缸1下降SOL,Y23,DO-23
,1,移载1夹料气缸1夹紧SOL,ClampCylinder_Slack,13,192.168.201.63,0,移载1夹料气缸1夹紧SOL,Y24,DO-24
,1,移载1夹料气缸1放松SOL,ClampCylinder_Tighten,14,192.168.201.63,0,移载1夹料气缸1放松SOL,Y25,DO-25
,,,,15,192.168.201.63,0,,Y26,DO-26
,,,,,,,,,
DI,2,阻挡2-1夹具检测,TrayCheck,0,192.168.201.64,0,阻挡2-1夹具检测,X51,DI-51
DI,2,夹具检测2-1,Fixture_Check_1,1,192.168.201.64,0,夹具检测2-1,X52,DI-52
DI,2,夹具检测2-2,Fixture_Check_2,2,192.168.201.64,0,夹具检测2-2,X53,DI-53
DI,2,夹具检测2-3,Fixture_Check_3,3,192.168.201.64,0,夹具检测2-3,X54,DI-54
DI,2,夹具检测2-4,Fixture_Check_4,4,192.168.201.64,0,夹具检测2-4,X55,DI-55
DI,2,移载2顶升气缸2上升端,TopCylinder_UP,5,192.168.201.64,0,移载2顶升气缸2上升端,X56,DI-56
DI,2,移载2顶升气缸2下降端,TopCylinder_Down,6,192.168.201.64,0,移载2顶升气缸2下降端,X57,DI-57
DI,2,移载2前后气缸2前进端,BeforeAfterCylinder_Before,7,192.168.201.64,0,移载2前后气缸2前进端,X58,DI-58
DI,2,移载2前后气缸2后退端,BeforeAfterCylinder_After,8,192.168.201.64,0,移载2前后气缸2后退端,X59,DI-59
DI,2,移载2上下气缸2上升端,UpDownCylinder_Up,9,192.168.201.64,0,移载2上下气缸2上升端,X60,DI-60
DI,2,移载2上下气缸2下降端,UpDownCylinder_Down,10,192.168.201.64,0,移载2上下气缸2下降端,X61,DI-61
DI,2,移载2夹料气缸2夹紧端,ClampCylinder_Slack,11,192.168.201.64,0,移载2夹料气缸2夹紧端,X62,DI-62
DI,2,移载2夹料气缸2放松端,ClampCylinder_Tighten,12,192.168.201.64,0,移载2夹料气缸2放松端,X63,DI-63
,2,阻挡2-1夹具检测,TrayCheck,0,192.168.201.64,0,阻挡2-1夹具检测,X51,DI-51
,2,夹具检测2-1,Fixture_Check_1,1,192.168.201.64,0,夹具检测2-1,X52,DI-52
,2,夹具检测2-2,Fixture_Check_2,2,192.168.201.64,0,夹具检测2-2,X53,DI-53
,2,夹具检测2-3,Fixture_Check_3,3,192.168.201.64,0,夹具检测2-3,X54,DI-54
,2,夹具检测2-4,Fixture_Check_4,4,192.168.201.64,0,夹具检测2-4,X55,DI-55
,2,移载2顶升气缸2上升端,TopCylinder_UP,5,192.168.201.64,0,移载2顶升气缸2上升端,X56,DI-56
,2,移载2顶升气缸2下降端,TopCylinder_Down,6,192.168.201.64,0,移载2顶升气缸2下降端,X57,DI-57
,2,移载2前后气缸2前进端,BeforeAfterCylinder_Before,7,192.168.201.64,0,移载2前后气缸2前进端,X58,DI-58
,2,移载2前后气缸2后退端,BeforeAfterCylinder_After,8,192.168.201.64,0,移载2前后气缸2后退端,X59,DI-59
,2,移载2上下气缸2上升端,UpDownCylinder_Up,9,192.168.201.64,0,移载2上下气缸2上升端,X60,DI-60
,2,移载2上下气缸2下降端,UpDownCylinder_Down,10,192.168.201.64,0,移载2上下气缸2下降端,X61,DI-61
,2,移载2夹料气缸2夹紧端,ClampCylinder_Slack,11,192.168.201.64,0,移载2夹料气缸2夹紧端,X62,DI-62
,2,移载2夹料气缸2放松端,ClampCylinder_Tighten,12,192.168.201.64,0,移载2夹料气缸2放松端,X63,DI-63
,,,,13,192.168.201.64,0,,X64,DI-64
,,,,14,192.168.201.64,0,,X65,DI-65
,,,,15,192.168.201.64,0,,X66,DI-66
DO,2,移载2阻挡气缸2-1下降SOL,StopCylinder_Down1,0,192.168.201.64,0,移载2阻挡气缸2-1下降SOL,Y31,DO-31
DO,2,移载2阻挡气缸2-2下降SOL,StopCylinder_Down2,1,192.168.201.64,0,移载2阻挡气缸2-2下降SOL,Y32,DO-32
,2,移载2阻挡气缸2-1下降SOL,StopCylinder_Down1,0,192.168.201.64,0,移载2阻挡气缸2-1下降SOL,Y31,DO-31
,2,移载2阻挡气缸2-2下降SOL,StopCylinder_Down2,1,192.168.201.64,0,移载2阻挡气缸2-2下降SOL,Y32,DO-32
DO,0,横移轨道3阻挡下降SOL,SidesWay3_StopCylinderDown,2,192.168.201.64,0,横移轨道3阻挡下降SOL,Y33,DO-33
DO,3,移载3阻挡气缸3-1下降SOL,StopCylinder_Down1,3,192.168.201.64,0,移载3阻挡气缸3-1下降SOL,Y34,DO-34
DO,3,移载3阻挡气缸3-2下降SOL,StopCylinder_Down2,4,192.168.201.64,0,移载3阻挡气缸3-2下降SOL,Y35,DO-35
DO,2,移载2顶升气缸2上升SOL,TopCylinder_UP,5,192.168.201.64,0,移载2顶升气缸2上升SOL,Y36,DO-36
DO,2,移载2顶升气缸2下降SOL,TopCylinder_Down,6,192.168.201.64,0,移载2顶升气缸2下降SOL,Y37,DO-37
DO,2,移载2前后气缸2前进SOL,BeforeAfterCylinder_Before,7,192.168.201.64,0,移载2前后气缸2前进SOL,Y38,DO-38
DO,2,移载2前后气缸2后退SOL,BeforeAfterCylinder_After,8,192.168.201.64,0,移载2前后气缸2后退SOL,Y39,DO-39
DO,2,移载2上下气缸2上升SOL,UpDownCylinder_Up,9,192.168.201.64,0,移载2上下气缸2上升SOL,Y40,DO-40
DO,2,移载2上下气缸2下降SOL,UpDownCylinder_Down,10,192.168.201.64,0,移载2上下气缸2下降SOL,Y41,DO-41
DO,2,移载2夹料气缸2夹紧SOL,ClampCylinder_Slack,11,192.168.201.64,0,移载2夹料气缸2夹紧SOL,Y42,DO-42
DO,2,移载2夹料气缸2放松SOL,ClampCylinder_Tighten,12,192.168.201.64,0,移载2夹料气缸2放松SOL,Y43,DO-43
,3,移载3阻挡气缸3-1下降SOL,StopCylinder_Down1,3,192.168.201.64,0,移载3阻挡气缸3-1下降SOL,Y34,DO-34
,3,移载3阻挡气缸3-2下降SOL,StopCylinder_Down2,4,192.168.201.64,0,移载3阻挡气缸3-2下降SOL,Y35,DO-35
,2,移载2顶升气缸2上升SOL,TopCylinder_UP,5,192.168.201.64,0,移载2顶升气缸2上升SOL,Y36,DO-36
,2,移载2顶升气缸2下降SOL,TopCylinder_Down,6,192.168.201.64,0,移载2顶升气缸2下降SOL,Y37,DO-37
,2,移载2前后气缸2前进SOL,BeforeAfterCylinder_Before,7,192.168.201.64,0,移载2前后气缸2前进SOL,Y38,DO-38
,2,移载2前后气缸2后退SOL,BeforeAfterCylinder_After,8,192.168.201.64,0,移载2前后气缸2后退SOL,Y39,DO-39
,2,移载2上下气缸2上升SOL,UpDownCylinder_Up,9,192.168.201.64,0,移载2上下气缸2上升SOL,Y40,DO-40
,2,移载2上下气缸2下降SOL,UpDownCylinder_Down,10,192.168.201.64,0,移载2上下气缸2下降SOL,Y41,DO-41
,2,移载2夹料气缸2夹紧SOL,ClampCylinder_Slack,11,192.168.201.64,0,移载2夹料气缸2夹紧SOL,Y42,DO-42
,2,移载2夹料气缸2放松SOL,ClampCylinder_Tighten,12,192.168.201.64,0,移载2夹料气缸2放松SOL,Y43,DO-43
DO,0,横移轨道3.4顶升气缸上升SOL,SidesWay34_TopCylinder_Up,13,192.168.201.64,0,横移轨道3.4顶升气缸上升SOL,Y44,DO-44
DO,0,横移轨道3.4顶升气缸下降SOL,SidesWay34_TopCylinder_Down,14,192.168.201.64,0,横移轨道3.4顶升气缸下降SOL,Y45,DO-45
,,,,15,192.168.201.64,0,,Y46,DO-46
,,,,,,,,,
DI,3,阻挡3-1夹具检测,TrayCheck,0,192.168.201.65,0,阻挡3-1夹具检测,X71,DI-71
DI,3,夹具检测3-1,Fixture_Check_1,1,192.168.201.65,0,夹具检测3-1,X72,DI-72
DI,3,夹具检测3-2,Fixture_Check_2,2,192.168.201.65,0,夹具检测3-2,X73,DI-73
DI,3,夹具检测3-3,Fixture_Check_3,3,192.168.201.65,0,夹具检测3-3,X74,DI-74
DI,3,夹具检测3-4,Fixture_Check_4,4,192.168.201.65,0,夹具检测3-4,X75,DI-75
DI,3,移载3顶升气缸3上升端,TopCylinder_UP,5,192.168.201.65,0,移载3顶升气缸3上升端,X76,DI-76
DI,3,移载3顶升气缸3下降端,TopCylinder_Down,6,192.168.201.65,0,移载3顶升气缸3下降端,X77,DI-77
DI,3,移载3前后气缸3前进端,BeforeAfterCylinder_Before,7,192.168.201.65,0,移载3前后气缸3前进端,X78,DI-78
DI,3,移载3前后气缸3后退端,BeforeAfterCylinder_After,8,192.168.201.65,0,移载3前后气缸3后退端,X79,DI-79
DI,3,移载3上下气缸3上升端,UpDownCylinder_Up,9,192.168.201.65,0,移载3上下气缸3上升端,X80,DI-80
DI,3,移载3上下气缸3下降端,UpDownCylinder_Down,10,192.168.201.65,0,移载3上下气缸3下降端,X81,DI-81
DI,3,移载3夹料气缸3夹紧端,ClampCylinder_Slack,11,192.168.201.65,0,移载3夹料气缸3夹紧端,X82,DI-82
DI,3,移载3夹料气缸3放松端,ClampCylinder_Tighten,12,192.168.201.65,0,移载3夹料气缸3放松端,X83,DI-83
,3,阻挡3-1夹具检测,TrayCheck,0,192.168.201.65,0,阻挡3-1夹具检测,X71,DI-71
,3,夹具检测3-1,Fixture_Check_1,1,192.168.201.65,0,夹具检测3-1,X72,DI-72
,3,夹具检测3-2,Fixture_Check_2,2,192.168.201.65,0,夹具检测3-2,X73,DI-73
,3,夹具检测3-3,Fixture_Check_3,3,192.168.201.65,0,夹具检测3-3,X74,DI-74
,3,夹具检测3-4,Fixture_Check_4,4,192.168.201.65,0,夹具检测3-4,X75,DI-75
,3,移载3顶升气缸3上升端,TopCylinder_UP,5,192.168.201.65,0,移载3顶升气缸3上升端,X76,DI-76
,3,移载3顶升气缸3下降端,TopCylinder_Down,6,192.168.201.65,0,移载3顶升气缸3下降端,X77,DI-77
,3,移载3前后气缸3前进端,BeforeAfterCylinder_Before,7,192.168.201.65,0,移载3前后气缸3前进端,X78,DI-78
,3,移载3前后气缸3后退端,BeforeAfterCylinder_After,8,192.168.201.65,0,移载3前后气缸3后退端,X79,DI-79
,3,移载3上下气缸3上升端,UpDownCylinder_Up,9,192.168.201.65,0,移载3上下气缸3上升端,X80,DI-80
,3,移载3上下气缸3下降端,UpDownCylinder_Down,10,192.168.201.65,0,移载3上下气缸3下降端,X81,DI-81
,3,移载3夹料气缸3夹紧端,ClampCylinder_Slack,11,192.168.201.65,0,移载3夹料气缸3夹紧端,X82,DI-82
,3,移载3夹料气缸3放松端,ClampCylinder_Tighten,12,192.168.201.65,0,移载3夹料气缸3放松端,X83,DI-83
DI,0,横移轨道3阻挡夹具检测,SidesWay3_StopFixtureCheck,13,192.168.201.65,0,横移轨道3阻挡夹具检测,X84,DI-84
DI,0,横移轨道3夹具检测,SidesWay3_FixtureCheck,14,192.168.201.65,0,横移轨道3夹具检测,X85,DI-85
DI,0,横移轨道3顶升气缸上升端,SidesWay3_TopCylinder_Up,15,192.168.201.65,0,横移轨道3顶升气缸上升端,X86,DI-86
......@@ -142,41 +142,41 @@ DI,0,横移轨道4顶升气缸下降端,SidesWay4_TopCylinder_Down,19,192.168.201.65,0,横移
,,,,21,192.168.201.65,0,,X92,DI-92
,,,,22,192.168.201.65,0,,X93,DI-93
,,,,23,192.168.201.65,0,,X94,DI-94
DO,3,移载3顶升气缸3上升SOL,TopCylinder_UP,0,192.168.201.65,0,移载3顶升气缸3上升SOL,Y51,DO-51
DO,3,移载3顶升气缸3下降SOL,TopCylinder_Down,1,192.168.201.65,0,移载3顶升气缸3下降SOL,Y52,DO-52
DO,3,移载3前后气缸3前进SOL,BeforeAfterCylinder_Before,2,192.168.201.65,0,移载3前后气缸3前进SOL,Y53,DO-53
DO,3,移载3前后气缸3后退SOL,BeforeAfterCylinder_After,3,192.168.201.65,0,移载3前后气缸3后退SOL,Y54,DO-54
DO,3,移载3上下气缸3上升SOL,UpDownCylinder_Up,4,192.168.201.65,0,移载3上下气缸3上升SOL,Y55,DO-55
DO,3,移载3上下气缸3下降SOL,UpDownCylinder_Down,5,192.168.201.65,0,移载3上下气缸3下降SOL,Y56,DO-56
DO,3,移载3夹料气缸3夹紧SOL,ClampCylinder_Slack,6,192.168.201.65,0,移载3夹料气缸3夹紧SOL,Y57,DO-57
DO,3,移载3夹料气缸2放松SOL,ClampCylinder_Tighten,7,192.168.201.65,0,移载3夹料气缸2放松SOL,Y58,DO-58
,3,移载3顶升气缸3上升SOL,TopCylinder_UP,0,192.168.201.65,0,移载3顶升气缸3上升SOL,Y51,DO-51
,3,移载3顶升气缸3下降SOL,TopCylinder_Down,1,192.168.201.65,0,移载3顶升气缸3下降SOL,Y52,DO-52
,3,移载3前后气缸3前进SOL,BeforeAfterCylinder_Before,2,192.168.201.65,0,移载3前后气缸3前进SOL,Y53,DO-53
,3,移载3前后气缸3后退SOL,BeforeAfterCylinder_After,3,192.168.201.65,0,移载3前后气缸3后退SOL,Y54,DO-54
,3,移载3上下气缸3上升SOL,UpDownCylinder_Up,4,192.168.201.65,0,移载3上下气缸3上升SOL,Y55,DO-55
,3,移载3上下气缸3下降SOL,UpDownCylinder_Down,5,192.168.201.65,0,移载3上下气缸3下降SOL,Y56,DO-56
,3,移载3夹料气缸3夹紧SOL,ClampCylinder_Slack,6,192.168.201.65,0,移载3夹料气缸3夹紧SOL,Y57,DO-57
,3,移载3夹料气缸2放松SOL,ClampCylinder_Tighten,7,192.168.201.65,0,移载3夹料气缸2放松SOL,Y58,DO-58
,,,,,,,,,
DI,4,阻挡4-1夹具检测,TrayCheck,0,192.168.201.66,0,阻挡4-1夹具检测,X91,DI-91
DI,4,夹具检测4-1,Fixture_Check_1,1,192.168.201.66,0,夹具检测4-1,X92,DI-92
DI,4,夹具检测4-2,Fixture_Check_2,2,192.168.201.66,0,夹具检测4-2,X93,DI-93
DI,4,夹具检测4-3,Fixture_Check_3,3,192.168.201.66,0,夹具检测4-3,X94,DI-94
DI,4,夹具检测4-4,Fixture_Check_4,4,192.168.201.66,0,夹具检测4-4,X95,DI-95
DI,4,移载4顶升气缸4上升端,TopCylinder_UP,5,192.168.201.66,0,移载4顶升气缸4上升端,X96,DI-96
DI,4,移载4顶升气缸4下降端,TopCylinder_Down,6,192.168.201.66,0,移载4顶升气缸4下降端,X97,DI-97
DI,4,移载4前后气缸4前进端,BeforeAfterCylinder_Before,7,192.168.201.66,0,移载4前后气缸4前进端,X98,DI-98
DI,4,移载4前后气缸4后退端,BeforeAfterCylinder_After,8,192.168.201.66,0,移载4前后气缸4后退端,X99,DI-99
DI,4,移载4夹料气缸4夹紧端,ClampCylinder_Slack,9,192.168.201.66,0,移载4夹料气缸4夹紧端,X100,DI-100
DI,4,移载4夹料气缸4放松端,ClampCylinder_Tighten,10,192.168.201.66,0,移载4夹料气缸4放松端,X101,DI-101
,4,阻挡4-1夹具检测,TrayCheck,0,192.168.201.66,0,阻挡4-1夹具检测,X91,DI-91
,4,夹具检测4-1,Fixture_Check_1,1,192.168.201.66,0,夹具检测4-1,X92,DI-92
,4,夹具检测4-2,Fixture_Check_2,2,192.168.201.66,0,夹具检测4-2,X93,DI-93
,4,夹具检测4-3,Fixture_Check_3,3,192.168.201.66,0,夹具检测4-3,X94,DI-94
,4,夹具检测4-4,Fixture_Check_4,4,192.168.201.66,0,夹具检测4-4,X95,DI-95
,4,移载4顶升气缸4上升端,TopCylinder_UP,5,192.168.201.66,0,移载4顶升气缸4上升端,X96,DI-96
,4,移载4顶升气缸4下降端,TopCylinder_Down,6,192.168.201.66,0,移载4顶升气缸4下降端,X97,DI-97
,4,移载4前后气缸4前进端,BeforeAfterCylinder_Before,7,192.168.201.66,0,移载4前后气缸4前进端,X98,DI-98
,4,移载4前后气缸4后退端,BeforeAfterCylinder_After,8,192.168.201.66,0,移载4前后气缸4后退端,X99,DI-99
,4,移载4夹料气缸4夹紧端,ClampCylinder_Slack,9,192.168.201.66,0,移载4夹料气缸4夹紧端,X100,DI-100
,4,移载4夹料气缸4放松端,ClampCylinder_Tighten,10,192.168.201.66,0,移载4夹料气缸4放松端,X101,DI-101
DI,0,出料工位夹具检测,OutStore_FixtureCheck,11,192.168.201.66,0,出料工位夹具检测,X102,DI-102
DI,0,出料工位料盘检测,OutStore_TrayCheck,12,192.168.201.66,0,出料工位料盘检测,X103,DI-103
,,,,13,192.168.201.66,0,,X104,DI-104
,,,,14,192.168.201.66,0,,X105,DI-105
,,,,15,192.168.201.66,0,,X106,DI-106
DO,4,移载4顶升气缸4上升SOL,TopCylinder_UP,0,192.168.201.66,0,移载4顶升气缸4上升SOL,Y61,DO-61
DO,4,移载4顶升气缸4下降SOL,TopCylinder_Down,1,192.168.201.66,0,移载4顶升气缸4下降SOL,Y62,DO-62
DO,4,移载4前后气缸4前进SOL,BeforeAfterCylinder_Before,2,192.168.201.66,0,移载4前后气缸4前进SOL,Y63,DO-63
DO,4,移载4前后气缸4后退SOL,BeforeAfterCylinder_After,3,192.168.201.66,0,移载4前后气缸4后退SOL,Y64,DO-64
DO,4,移载4夹料气缸4夹紧SOL,ClampCylinder_Slack,4,192.168.201.66,0,移载4夹料气缸4夹紧SOL,Y65,DO-65
DO,4,移载4夹料气缸4放松SOL,ClampCylinder_Tighten,5,192.168.201.66,0,移载4夹料气缸4放松SOL,Y66,DO-66
,4,移载4顶升气缸4上升SOL,TopCylinder_UP,0,192.168.201.66,0,移载4顶升气缸4上升SOL,Y61,DO-61
,4,移载4顶升气缸4下降SOL,TopCylinder_Down,1,192.168.201.66,0,移载4顶升气缸4下降SOL,Y62,DO-62
,4,移载4前后气缸4前进SOL,BeforeAfterCylinder_Before,2,192.168.201.66,0,移载4前后气缸4前进SOL,Y63,DO-63
,4,移载4前后气缸4后退SOL,BeforeAfterCylinder_After,3,192.168.201.66,0,移载4前后气缸4后退SOL,Y64,DO-64
,4,移载4夹料气缸4夹紧SOL,ClampCylinder_Slack,4,192.168.201.66,0,移载4夹料气缸4夹紧SOL,Y65,DO-65
,4,移载4夹料气缸4放松SOL,ClampCylinder_Tighten,5,192.168.201.66,0,移载4夹料气缸4放松SOL,Y66,DO-66
DO,0,横移轨道1.2顶升气缸上升SOL,SidesWay12_TopCylinder_Up,6,192.168.201.66,0,横移轨道1.2顶升气缸上升SOL,Y67,DO-67
DO,0,横移轨道1.2顶升气缸下降SOL,SidesWay12_TopCylinder_Down,7,192.168.201.66,0,横移轨道1.2顶升气缸下降SOL,Y68,DO-68
DO,4,移载4阻挡气缸4-1下降SOL,StopCylinder_Down1,8,192.168.201.66,0,移载4阻挡气缸4-1下降SOL,Y69,DO-69
DO,4,移载4阻挡气缸4-2下降SOL,StopCylinder_Down2,9,192.168.201.66,0,移载4阻挡气缸4-2下降SOL,Y70,DO-70
,4,移载4阻挡气缸4-1下降SOL,StopCylinder_Down1,8,192.168.201.66,0,移载4阻挡气缸4-1下降SOL,Y69,DO-69
,4,移载4阻挡气缸4-2下降SOL,StopCylinder_Down2,9,192.168.201.66,0,移载4阻挡气缸4-2下降SOL,Y70,DO-70
,,,,10,192.168.201.66,0,,Y71,DO-71
,,,,11,192.168.201.66,0,,Y72,DO-72
,,,,12,192.168.201.66,0,,Y73,DO-73
......
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,1,进仓01阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.29,0,进仓01阻挡1托盘检测,X261,X261
DI,1,进仓01阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.29,0,进仓01阻挡2托盘检测,X262,X262
DI,1,进仓01顶升上升端,TopCylinder_UP,2,192.168.200.29,0,进仓01顶升上升端,X263,X263
DI,1,进仓01顶升下降端,TopCylinder_Down,3,192.168.200.29,0,进仓01顶升下降端,X264,X264
DI,1,进仓01横移前进端,BeforeAfterCylinder_Before,4,192.168.200.29,0,进仓01横移前进端,X265,X265
DI,1,进仓01横移后退端,BeforeAfterCylinder_After,5,192.168.200.29,0,进仓01横移后退端,X266,X266
DI,1,进仓01夹料夹紧端,ClampCylinder_Slack,6,192.168.200.29,0,进仓01夹料夹紧端,X267,X267
DI,1,进仓01夹料放松端,ClampCylinder_Tighten,7,192.168.200.29,0,进仓01夹料放松端,X268,X268
DI,2,进仓02阻挡1托盘检测,StopCylinder_Check1,8,192.168.200.29,0,进仓02阻挡1托盘检测,X269,X269
DI,2,进仓02阻挡2托盘检测,StopCylinder_Check2,9,192.168.200.29,0,进仓02阻挡2托盘检测,X270,X270
DI,2,进仓02顶升上升端,TopCylinder_UP,10,192.168.200.29,0,进仓02顶升上升端,X271,X271
DI,2,进仓02顶升下降端,TopCylinder_Down,11,192.168.200.29,0,进仓02顶升下降端,X272,X272
DI,2,进仓02横移前进端,BeforeAfterCylinder_Before,12,192.168.200.29,0,进仓02横移前进端,X273,X273
DI,2,进仓02横移后退端,BeforeAfterCylinder_After,13,192.168.200.29,0,进仓02横移后退端,X274,X274
DI,2,进仓02夹料夹紧端,ClampCylinder_Slack,14,192.168.200.29,0,进仓02夹料夹紧端,X275,X275
DI,2,进仓02夹料放松端,ClampCylinder_Tighten,15,192.168.200.29,0,进仓02夹料放松端,X276,X276
,,,,,,,,,
DO,1,进仓01阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.29,0,进仓01阻挡1下降SOL,Y261,Y261
DO,1,进仓01阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.29,0,进仓01阻挡2下降SOL,Y262,Y262
DO,1,进仓01顶升上升SOL,TopCylinder_UP,2,192.168.200.29,0,进仓01顶升上升SOL,Y263,Y263
DO,1,进仓01顶升下降SOL,TopCylinder_Down,3,192.168.200.29,0,进仓01顶升下降SOL,Y264,Y264
DO,1,进仓01横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.29,0,进仓01横移前进SOL,Y265,Y265
DO,1,进仓01横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.29,0,进仓01横移后退SOL,Y266,Y266
DO,1,进仓01夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.29,0,进仓01夹料夹紧SOL,Y267,Y267
DO,1,进仓01夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.29,0,进仓01夹料放松SOL,Y268,Y268
DO,2,进仓02阻挡1下降SOL,StopCylinder_Down1,8,192.168.200.29,0,进仓02阻挡1下降SOL,Y269,Y269
DO,2,进仓02阻挡2下降SOL,StopCylinder_Down2,9,192.168.200.29,0,进仓02阻挡2下降SOL,Y270,Y270
DO,2,进仓02顶升上升SOL,TopCylinder_UP,10,192.168.200.29,0,进仓02顶升上升SOL,Y271,Y271
DO,2,进仓02顶升下降SOL,TopCylinder_Down,11,192.168.200.29,0,进仓02顶升下降SOL,Y272,Y272
DO,2,进仓02横移前进SOL,BeforeAfterCylinder_Before,12,192.168.200.29,0,进仓02横移前进SOL,Y273,Y273
DO,2,进仓02横移后退SOL,BeforeAfterCylinder_After,13,192.168.200.29,0,进仓02横移后退SOL,Y274,Y274
DO,2,进仓02夹料夹紧SOL,ClampCylinder_Slack,14,192.168.200.29,0,进仓02夹料夹紧SOL,Y275,Y275
DO,2,进仓02夹料放松SOL,ClampCylinder_Tighten,15,192.168.200.29,0,进仓02夹料放松SOL,Y276,Y276
,,,,,,,,,
DI,1,进仓01料盘检测,TrayCheck,0,192.168.200.30,0,进仓01料盘检测,X281,X281
DI,2,进仓02料盘检测,TrayCheck,1,192.168.200.30,0,进仓02料盘检测,X282,X282
,,,,2,192.168.200.30,0,,X283,X283
,,,,3,192.168.200.30,0,,X284,X284
,,,,4,192.168.200.30,0,,X285,X285
,,,,5,192.168.200.30,0,,X286,X286
,,,,6,192.168.200.30,0,,X287,X287
,,,,7,192.168.200.30,0,,X288,X288
,,,,,,,,,
DO,1,进仓01伺服刹车ON,UpDownAxis_BreakOn,0,192.168.200.30,0,进仓01伺服刹车ON,Y281,Y281
DO,2,进仓02伺服刹车ON,UpDownAxis_BreakOn,1,192.168.200.30,0,进仓02伺服刹车ON,Y282,Y282
DO,1,进仓01伺服运转ON,UpDownAxis_ServoOn,2,192.168.200.30,0,进仓01伺服运转ON,Y283,Y283
DO,2,进仓02伺服运转ON,UpDownAxis_ServoOn,3,192.168.200.30,0,进仓02伺服运转ON,Y284,Y284
,,,,4,192.168.200.30,0,,Y285,Y285
,,,,5,192.168.200.30,0,,Y286,Y286
,,,,6,192.168.200.30,0,,Y287,Y287
,,,,7,192.168.200.30,0,,Y288,Y288
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,3,进仓03阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.31,0,进仓03阻挡1托盘检测,X291,X291
DI,3,进仓03阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.31,0,进仓03阻挡2托盘检测,X292,X292
DI,3,进仓03顶升上升端,TopCylinder_UP,2,192.168.200.31,0,进仓03顶升上升端,X293,X293
DI,3,进仓03顶升下降端,TopCylinder_Down,3,192.168.200.31,0,进仓03顶升下降端,X294,X294
DI,3,进仓03横移前进端,BeforeAfterCylinder_Before,4,192.168.200.31,0,进仓03横移前进端,X295,X295
DI,3,进仓03横移后退端,BeforeAfterCylinder_After,5,192.168.200.31,0,进仓03横移后退端,X296,X296
DI,3,进仓03夹料夹紧端,ClampCylinder_Slack,6,192.168.200.31,0,进仓03夹料夹紧端,X297,X297
DI,3,进仓03夹料放松端,ClampCylinder_Tighten,7,192.168.200.31,0,进仓03夹料放松端,X298,X298
DI,4,进仓04阻挡1托盘检测,StopCylinder_Check1,8,192.168.200.31,0,进仓04阻挡1托盘检测,X299,X299
DI,4,进仓04阻挡2托盘检测,StopCylinder_Check2,9,192.168.200.31,0,进仓04阻挡2托盘检测,X300,X300
DI,4,进仓04顶升上升端,TopCylinder_UP,10,192.168.200.31,0,进仓04顶升上升端,X301,X301
DI,4,进仓04顶升下降端,TopCylinder_Down,11,192.168.200.31,0,进仓04顶升下降端,X302,X302
DI,4,进仓04横移前进端,BeforeAfterCylinder_Before,12,192.168.200.31,0,进仓04横移前进端,X303,X303
DI,4,进仓04横移后退端,BeforeAfterCylinder_After,13,192.168.200.31,0,进仓04横移后退端,X304,X304
DI,4,进仓04夹料夹紧端,ClampCylinder_Slack,14,192.168.200.31,0,进仓04夹料夹紧端,X305,X305
DI,4,进仓04夹料放松端,ClampCylinder_Tighten,15,192.168.200.31,0,进仓04夹料放松端,X306,X306
,,,,,,,,,
DO,3,进仓03阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.31,0,进仓03阻挡1下降SOL,Y291,Y291
DO,3,进仓03阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.31,0,进仓03阻挡2下降SOL,Y292,Y292
DO,3,进仓03顶升上升SOL,TopCylinder_UP,2,192.168.200.31,0,进仓03顶升上升SOL,Y293,Y293
DO,3,进仓03顶升下降SOL,TopCylinder_Down,3,192.168.200.31,0,进仓03顶升下降SOL,Y294,Y294
DO,3,进仓03横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.31,0,进仓03横移前进SOL,Y295,Y295
DO,3,进仓03横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.31,0,进仓03横移后退SOL,Y296,Y296
DO,3,进仓03夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.31,0,进仓03夹料夹紧SOL,Y297,Y297
DO,3,进仓03夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.31,0,进仓03夹料放松SOL,Y298,Y298
DO,4,进仓04阻挡1下降SOL,StopCylinder_Down1,8,192.168.200.31,0,进仓04阻挡1下降SOL,Y299,Y299
DO,4,进仓04阻挡2下降SOL,StopCylinder_Down2,9,192.168.200.31,0,进仓04阻挡2下降SOL,Y300,Y300
DO,4,进仓04顶升上升SOL,TopCylinder_UP,10,192.168.200.31,0,进仓04顶升上升SOL,Y301,Y301
DO,4,进仓04顶升下降SOL,TopCylinder_Down,11,192.168.200.31,0,进仓04顶升下降SOL,Y302,Y302
DO,4,进仓04横移前进SOL,BeforeAfterCylinder_Before,12,192.168.200.31,0,进仓04横移前进SOL,Y303,Y303
DO,4,进仓04横移后退SOL,BeforeAfterCylinder_After,13,192.168.200.31,0,进仓04横移后退SOL,Y304,Y304
DO,4,进仓04夹料夹紧SOL,ClampCylinder_Slack,14,192.168.200.31,0,进仓04夹料夹紧SOL,Y305,Y305
DO,4,进仓04夹料放松SOL,ClampCylinder_Tighten,15,192.168.200.31,0,进仓04夹料放松SOL,Y306,Y306
,,,,,,,,,
DI,3,进仓03料盘检测,TrayCheck,0,192.168.200.32,0,进仓03料盘检测,X311,X311
DI,4,进仓04料盘检测,TrayCheck,1,192.168.200.32,0,进仓04料盘检测,X312,X312
,,,,2,192.168.200.32,0,,X313,X313
,,,,3,192.168.200.32,0,,X314,X314
,,,,4,192.168.200.32,0,,X315,X315
,,,,5,192.168.200.32,0,,X316,X316
,,,,6,192.168.200.32,0,,X317,X317
,,,,7,192.168.200.32,0,,X318,X318
,,,,,,,,,
DO,3,进仓03伺服刹车ON,UpDownAxis_BreakOn,0,192.168.200.32,0,进仓03伺服刹车ON,Y311,Y311
DO,4,进仓04伺服刹车ON,UpDownAxis_BreakOn,1,192.168.200.32,0,进仓04伺服刹车ON,Y312,Y312
DO,3,进仓03伺服运转ON,UpDownAxis_ServoOn,2,192.168.200.32,0,进仓03伺服运转ON,Y313,Y313
DO,4,进仓04伺服运转ON,UpDownAxis_ServoOn,3,192.168.200.32,0,进仓04伺服运转ON,Y314,Y314
,,,,4,192.168.200.32,0,,Y315,Y315
,,,,5,192.168.200.32,0,,Y316,Y316
,,,,6,192.168.200.32,0,,Y317,Y317
,,,,7,192.168.200.32,0,,Y318,Y318
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,5,进仓05阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.33,0,进仓05阻挡1托盘检测,X321,X321
DI,5,进仓05阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.33,0,进仓05阻挡2托盘检测,X322,X322
DI,5,进仓05顶升上升端,TopCylinder_UP,2,192.168.200.33,0,进仓05顶升上升端,X323,X323
DI,5,进仓05顶升下降端,TopCylinder_Down,3,192.168.200.33,0,进仓05顶升下降端,X324,X324
DI,5,进仓05横移前进端,BeforeAfterCylinder_Before,4,192.168.200.33,0,进仓05横移前进端,X325,X325
DI,5,进仓05横移后退端,BeforeAfterCylinder_After,5,192.168.200.33,0,进仓05横移后退端,X326,X326
DI,5,进仓05夹料夹紧端,ClampCylinder_Slack,6,192.168.200.33,0,进仓05夹料夹紧端,X327,X327
DI,5,进仓05夹料放松端,ClampCylinder_Tighten,7,192.168.200.33,0,进仓05夹料放松端,X328,X328
DI,6,进仓06阻挡1托盘检测,StopCylinder_Check1,8,192.168.200.33,0,进仓06阻挡1托盘检测,X329,X329
DI,6,进仓06阻挡2托盘检测,StopCylinder_Check2,9,192.168.200.33,0,进仓06阻挡2托盘检测,X330,X330
DI,6,进仓06顶升上升端,TopCylinder_UP,10,192.168.200.33,0,进仓06顶升上升端,X331,X331
DI,6,进仓06顶升下降端,TopCylinder_Down,11,192.168.200.33,0,进仓06顶升下降端,X332,X332
DI,6,进仓06横移前进端,BeforeAfterCylinder_Before,12,192.168.200.33,0,进仓06横移前进端,X333,X333
DI,6,进仓06横移后退端,BeforeAfterCylinder_After,13,192.168.200.33,0,进仓06横移后退端,X334,X334
DI,6,进仓06夹料夹紧端,ClampCylinder_Slack,14,192.168.200.33,0,进仓06夹料夹紧端,X335,X335
DI,6,进仓06夹料放松端,ClampCylinder_Tighten,15,192.168.200.33,0,进仓06夹料放松端,X336,X336
,,,,,,,,,
DO,5,进仓05阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.33,0,进仓05阻挡1下降SOL,Y321,Y321
DO,5,进仓05阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.33,0,进仓05阻挡2下降SOL,Y322,Y322
DO,5,进仓05顶升上升SOL,TopCylinder_UP,2,192.168.200.33,0,进仓05顶升上升SOL,Y323,Y323
DO,5,进仓05顶升下降SOL,TopCylinder_Down,3,192.168.200.33,0,进仓05顶升下降SOL,Y324,Y324
DO,5,进仓05横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.33,0,进仓05横移前进SOL,Y325,Y325
DO,5,进仓05横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.33,0,进仓05横移后退SOL,Y326,Y326
DO,5,进仓05夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.33,0,进仓05夹料夹紧SOL,Y327,Y327
DO,5,进仓05夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.33,0,进仓05夹料放松SOL,Y328,Y328
DO,6,进仓06阻挡1下降SOL,StopCylinder_Down1,8,192.168.200.33,0,进仓06阻挡1下降SOL,Y329,Y329
DO,6,进仓06阻挡2下降SOL,StopCylinder_Down2,9,192.168.200.33,0,进仓06阻挡2下降SOL,Y330,Y330
DO,6,进仓06顶升上升SOL,TopCylinder_UP,10,192.168.200.33,0,进仓06顶升上升SOL,Y331,Y331
DO,6,进仓06顶升下降SOL,TopCylinder_Down,11,192.168.200.33,0,进仓06顶升下降SOL,Y332,Y332
DO,6,进仓06横移前进SOL,BeforeAfterCylinder_Before,12,192.168.200.33,0,进仓06横移前进SOL,Y333,Y333
DO,6,进仓06横移后退SOL,BeforeAfterCylinder_After,13,192.168.200.33,0,进仓06横移后退SOL,Y334,Y334
DO,6,进仓06夹料夹紧SOL,ClampCylinder_Slack,14,192.168.200.33,0,进仓06夹料夹紧SOL,Y335,Y335
DO,6,进仓06夹料放松SOL,ClampCylinder_Tighten,15,192.168.200.33,0,进仓06夹料放松SOL,Y336,Y336
,,,,,,,,,
DI,5,进仓05料盘检测,TrayCheck,0,192.168.200.34,0,进仓05料盘检测,X341,X341
DI,6,进仓06料盘检测,TrayCheck,1,192.168.200.34,0,进仓06料盘检测,X342,X342
,,,,2,192.168.200.34,0,,X343,X343
,,,,3,192.168.200.34,0,,X344,X344
,,,,4,192.168.200.34,0,,X345,X345
,,,,5,192.168.200.34,0,,X346,X346
,,,,6,192.168.200.34,0,,X347,X347
,,,,7,192.168.200.34,0,,X348,X348
,,,,,,,,,
DO,5,进仓05伺服刹车ON,UpDownAxis_BreakOn,0,192.168.200.34,0,进仓05伺服刹车ON,Y341,Y341
DO,6,进仓06伺服刹车ON,UpDownAxis_BreakOn,1,192.168.200.34,0,进仓06伺服刹车ON,Y342,Y342
DO,5,进仓05伺服运转ON,UpDownAxis_ServoOn,2,192.168.200.34,0,进仓05伺服运转ON,Y343,Y343
DO,6,进仓06伺服运转ON,UpDownAxis_ServoOn,3,192.168.200.34,0,进仓06伺服运转ON,Y344,Y344
,,,,4,192.168.200.34,0,,Y345,Y345
,,,,5,192.168.200.34,0,,Y346,Y346
,,,,6,192.168.200.34,0,,Y347,Y347
,,,,7,192.168.200.34,0,,Y348,Y348
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
\ No newline at end of file
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下移动料盘高度对应的上升位置,UpDownPositions,12=1000;16=1300;20=2000;24=2000;36=3000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,2,COM1,0,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,2000,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
PRO,0,移栽上下轴加速度,UpdownAxis_AddSpeed,400,,,,,
PRO,0,移栽上下轴减速度,UpdownAxis_DelSpeed,400,,,,,
PRO,0,移栽上下轴原点低速度,UpdownAxis_HomeLowSpeed,100,,,,,
PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,7,进仓07阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.35,0,进仓07阻挡1托盘检测,X351,X351
DI,7,进仓07阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.35,0,进仓07阻挡2托盘检测,X352,X352
DI,7,进仓07顶升上升端,TopCylinder_UP,2,192.168.200.35,0,进仓07顶升上升端,X353,X353
DI,7,进仓07顶升下降端,TopCylinder_Down,3,192.168.200.35,0,进仓07顶升下降端,X354,X354
DI,7,进仓07横移前进端,BeforeAfterCylinder_Before,4,192.168.200.35,0,进仓07横移前进端,X355,X355
DI,7,进仓07横移后退端,BeforeAfterCylinder_After,5,192.168.200.35,0,进仓07横移后退端,X356,X356
DI,7,进仓07夹料夹紧端,ClampCylinder_Slack,6,192.168.200.35,0,进仓07夹料夹紧端,X357,X357
DI,7,进仓07夹料放松端,ClampCylinder_Tighten,7,192.168.200.35,0,进仓07夹料放松端,X358,X358
DI,8,进仓08阻挡1托盘检测,StopCylinder_Check1,8,192.168.200.35,0,进仓08阻挡1托盘检测,X359,X359
DI,8,进仓08阻挡2托盘检测,StopCylinder_Check2,9,192.168.200.35,0,进仓08阻挡2托盘检测,X360,X360
DI,8,进仓08顶升上升端,TopCylinder_UP,10,192.168.200.35,0,进仓08顶升上升端,X361,X361
DI,8,进仓08顶升下降端,TopCylinder_Down,11,192.168.200.35,0,进仓08顶升下降端,X362,X362
DI,8,进仓08横移前进端,BeforeAfterCylinder_Before,12,192.168.200.35,0,进仓08横移前进端,X363,X363
DI,8,进仓08横移后退端,BeforeAfterCylinder_After,13,192.168.200.35,0,进仓08横移后退端,X364,X364
DI,8,进仓08夹料夹紧端,ClampCylinder_Slack,14,192.168.200.35,0,进仓08夹料夹紧端,X365,X365
DI,8,进仓08夹料放松端,ClampCylinder_Tighten,15,192.168.200.35,0,进仓08夹料放松端,X366,X366
,,,,,,,,,
DO,7,进仓07阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.35,0,进仓07阻挡1下降SOL,Y351,Y351
DO,7,进仓07阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.35,0,进仓07阻挡2下降SOL,Y352,Y352
DO,7,进仓07顶升上升SOL,TopCylinder_UP,2,192.168.200.35,0,进仓07顶升上升SOL,Y353,Y353
DO,7,进仓07顶升下降SOL,TopCylinder_Down,3,192.168.200.35,0,进仓07顶升下降SOL,Y354,Y354
DO,7,进仓07横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.35,0,进仓07横移前进SOL,Y355,Y355
DO,7,进仓07横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.35,0,进仓07横移后退SOL,Y356,Y356
DO,7,进仓07夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.35,0,进仓07夹料夹紧SOL,Y357,Y357
DO,7,进仓07夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.35,0,进仓07夹料放松SOL,Y358,Y358
DO,8,进仓08阻挡1下降SOL,StopCylinder_Down1,8,192.168.200.35,0,进仓08阻挡1下降SOL,Y359,Y359
DO,8,进仓08阻挡2下降SOL,StopCylinder_Down2,9,192.168.200.35,0,进仓08阻挡2下降SOL,Y360,Y360
DO,8,进仓08顶升上升SOL,TopCylinder_UP,10,192.168.200.35,0,进仓08顶升上升SOL,Y361,Y361
DO,8,进仓08顶升下降SOL,TopCylinder_Down,11,192.168.200.35,0,进仓08顶升下降SOL,Y362,Y362
DO,8,进仓08横移前进SOL,BeforeAfterCylinder_Before,12,192.168.200.35,0,进仓08横移前进SOL,Y363,Y363
DO,8,进仓08横移后退SOL,BeforeAfterCylinder_After,13,192.168.200.35,0,进仓08横移后退SOL,Y364,Y364
DO,8,进仓08夹料夹紧SOL,ClampCylinder_Slack,14,192.168.200.35,0,进仓08夹料夹紧SOL,Y365,Y365
DO,8,进仓08夹料放松SOL,ClampCylinder_Tighten,15,192.168.200.35,0,进仓08夹料放松SOL,Y366,Y366
,,,,,,,,,
DI,7,进仓07料盘检测,TrayCheck,0,192.168.200.36,0,进仓07料盘检测,X371,X371
DI,8,进仓08料盘检测,TrayCheck,1,192.168.200.36,0,进仓08料盘检测,X372,X372
,,,,2,192.168.200.36,0,,X373,X373
,,,,3,192.168.200.36,0,,X374,X374
,,,,4,192.168.200.36,0,,X375,X375
,,,,5,192.168.200.36,0,,X376,X376
,,,,6,192.168.200.36,0,,X377,X377
,,,,7,192.168.200.36,0,,X378,X378
,,,,,,,,,
DO,7,进仓07伺服刹车ON,UpDownAxis_BreakOn,0,192.168.200.36,0,进仓07伺服刹车ON,Y371,Y371
DO,8,进仓08伺服刹车ON,UpDownAxis_BreakOn,1,192.168.200.36,0,进仓08伺服刹车ON,Y372,Y372
DO,7,进仓07伺服运转ON,UpDownAxis_ServoOn,2,192.168.200.36,0,进仓07伺服运转ON,Y373,Y373
DO,8,进仓08伺服运转ON,UpDownAxis_ServoOn,3,192.168.200.36,0,进仓08伺服运转ON,Y374,Y374
,,,,4,192.168.200.36,0,,Y375,Y375
,,,,5,192.168.200.36,0,,Y376,Y376
,,,,6,192.168.200.36,0,,Y377,Y377
,,,,7,192.168.200.36,0,,Y378,Y378
......@@ -2,8 +2,8 @@
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
......@@ -14,3 +14,55 @@ PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,9,进仓09阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.37,0,进仓09阻挡1托盘检测,X381,X381
DI,9,进仓09阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.37,0,进仓09阻挡2托盘检测,X382,X382
DI,9,进仓09顶升上升端,TopCylinder_UP,2,192.168.200.37,0,进仓09顶升上升端,X383,X383
DI,9,进仓09顶升下降端,TopCylinder_Down,3,192.168.200.37,0,进仓09顶升下降端,X384,X384
DI,9,进仓09横移前进端,BeforeAfterCylinder_Before,4,192.168.200.37,0,进仓09横移前进端,X385,X385
DI,9,进仓09横移后退端,BeforeAfterCylinder_After,5,192.168.200.37,0,进仓09横移后退端,X386,X386
DI,9,进仓09夹料夹紧端,ClampCylinder_Slack,6,192.168.200.37,0,进仓09夹料夹紧端,X387,X387
DI,9,进仓09夹料放松端,ClampCylinder_Tighten,7,192.168.200.37,0,进仓09夹料放松端,X388,X388
DI,10,进仓10阻挡1托盘检测,StopCylinder_Check1,8,192.168.200.37,0,进仓10阻挡1托盘检测,X389,X389
DI,10,进仓10阻挡2托盘检测,StopCylinder_Check2,9,192.168.200.37,0,进仓10阻挡2托盘检测,X390,X390
DI,10,进仓10顶升上升端,TopCylinder_UP,10,192.168.200.37,0,进仓10顶升上升端,X391,X391
DI,10,进仓10顶升下降端,TopCylinder_Down,11,192.168.200.37,0,进仓10顶升下降端,X392,X392
DI,10,进仓10横移前进端,BeforeAfterCylinder_Before,12,192.168.200.37,0,进仓10横移前进端,X393,X393
DI,10,进仓10横移后退端,BeforeAfterCylinder_After,13,192.168.200.37,0,进仓10横移后退端,X394,X394
DI,10,进仓10夹料夹紧端,ClampCylinder_Slack,14,192.168.200.37,0,进仓10夹料夹紧端,X395,X395
DI,10,进仓10夹料放松端,ClampCylinder_Tighten,15,192.168.200.37,0,进仓10夹料放松端,X396,X396
,,,,,,,,,
DO,9,进仓09阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.37,0,进仓09阻挡1下降SOL,Y381,Y381
DO,9,进仓09阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.37,0,进仓09阻挡2下降SOL,Y382,Y382
DO,9,进仓09顶升上升SOL,TopCylinder_UP,2,192.168.200.37,0,进仓09顶升上升SOL,Y383,Y383
DO,9,进仓09顶升下降SOL,TopCylinder_Down,3,192.168.200.37,0,进仓09顶升下降SOL,Y384,Y384
DO,9,进仓09横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.37,0,进仓09横移前进SOL,Y385,Y385
DO,9,进仓09横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.37,0,进仓09横移后退SOL,Y386,Y386
DO,9,进仓09夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.37,0,进仓09夹料夹紧SOL,Y387,Y387
DO,9,进仓09夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.37,0,进仓09夹料放松SOL,Y388,Y388
DO,10,进仓10阻挡1下降SOL,StopCylinder_Down1,8,192.168.200.37,0,进仓10阻挡1下降SOL,Y389,Y389
DO,10,进仓10阻挡2下降SOL,StopCylinder_Down2,9,192.168.200.37,0,进仓10阻挡2下降SOL,Y390,Y390
DO,10,进仓10顶升上升SOL,TopCylinder_UP,10,192.168.200.37,0,进仓10顶升上升SOL,Y391,Y391
DO,10,进仓10顶升下降SOL,TopCylinder_Down,11,192.168.200.37,0,进仓10顶升下降SOL,Y392,Y392
DO,10,进仓10横移前进SOL,BeforeAfterCylinder_Before,12,192.168.200.37,0,进仓10横移前进SOL,Y393,Y393
DO,10,进仓10横移后退SOL,BeforeAfterCylinder_After,13,192.168.200.37,0,进仓10横移后退SOL,Y394,Y394
DO,10,进仓10夹料夹紧SOL,ClampCylinder_Slack,14,192.168.200.37,0,进仓10夹料夹紧SOL,Y395,Y395
DO,10,进仓10夹料放松SOL,ClampCylinder_Tighten,15,192.168.200.37,0,进仓10夹料放松SOL,Y396,Y396
,,,,,,,,,
DI,9,进仓09料盘检测,TrayCheck,0,192.168.200.38,0,进仓09料盘检测,X401,X401
DI,10,进仓10料盘检测,TrayCheck,1,192.168.200.38,0,进仓10料盘检测,X402,X402
,,环形线横移2阻挡检测,,2,192.168.200.38,0,环形线横移2阻挡检测,X403,X403
,,,,3,192.168.200.38,0,,X404,X404
,,,,4,192.168.200.38,0,,X405,X405
,,,,5,192.168.200.38,0,,X406,X406
,,,,6,192.168.200.38,0,,X407,X407
,,,,7,192.168.200.38,0,,X408,X408
,,,,,,,,,
DO,9,进仓09伺服刹车ON,UpDownAxis_BreakOn,0,192.168.200.38,0,进仓09伺服刹车ON,Y401,Y401
DO,10,进仓10伺服刹车ON,UpDownAxis_BreakOn,1,192.168.200.38,0,进仓10伺服刹车ON,Y402,Y402
DO,9,进仓09伺服运转ON,UpDownAxis_ServoOn,2,192.168.200.38,0,进仓09伺服运转ON,Y403,Y403
DO,10,进仓10伺服运转ON,UpDownAxis_ServoOn,3,192.168.200.38,0,进仓10伺服运转ON,Y404,Y404
,,环形线横移2阻挡下降SOL,,4,192.168.200.38,0,环形线横移2阻挡下降SOL,Y405,Y405
,,,,5,192.168.200.38,0,,Y406,Y406
,,,,6,192.168.200.38,0,,Y407,Y407
,,,,7,192.168.200.38,0,,Y408,Y408
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
......@@ -14,3 +14,71 @@ PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,11,进仓11阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.39,0,进仓11阻挡1托盘检测,X411,X411
DI,11,进仓11阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.39,0,进仓11阻挡2托盘检测,X412,X412
DI,11,进仓11顶升上升端,TopCylinder_UP,2,192.168.200.39,0,进仓11顶升上升端,X413,X413
DI,11,进仓11顶升下降端,TopCylinder_Down,3,192.168.200.39,0,进仓11顶升下降端,X414,X414
DI,11,进仓11横移前进端,BeforeAfterCylinder_Before,4,192.168.200.39,0,进仓11横移前进端,X415,X415
DI,11,进仓11横移后退端,BeforeAfterCylinder_After,5,192.168.200.39,0,进仓11横移后退端,X416,X416
DI,11,进仓11夹料夹紧端,ClampCylinder_Slack,6,192.168.200.39,0,进仓11夹料夹紧端,X417,X417
DI,11,进仓11夹料放松端,ClampCylinder_Tighten,7,192.168.200.39,0,进仓11夹料放松端,X418,X418
DI,11,进仓11升降上升端,UpDownCylinder_Up,8,192.168.200.39,0,进仓11升降上升端,X419,X419
DI,11,进仓11升降下降端,UpDownCylinder_Down,9,192.168.200.39,0,进仓11升降下降端,X420,X420
DI,12,进仓12阻挡1托盘检测,Fixture_Check_1,10,192.168.200.39,0,进仓12阻挡1托盘检测,X421,X421
DI,12,进仓12阻挡2托盘检测,Fixture_Check_2,11,192.168.200.39,0,进仓12阻挡2托盘检测,X422,X422
DI,12,进仓12顶升上升端,TopCylinder_UP,12,192.168.200.39,0,进仓12顶升上升端,X423,X423
DI,12,进仓12顶升下降端,TopCylinder_Down,13,192.168.200.39,0,进仓12顶升下降端,X424,X424
DI,12,进仓12横移前进端,BeforeAfterCylinder_Before,14,192.168.200.39,0,进仓12横移前进端,X425,X425
DI,12,进仓12横移后退端,BeforeAfterCylinder_After,15,192.168.200.39,0,进仓12横移后退端,X426,X426
,,,,,,,,,
DO,11,进仓11阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.39,0,进仓11阻挡1下降SOL,Y411,Y411
DO,11,进仓11阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.39,0,进仓11阻挡2下降SOL,Y412,Y412
DO,11,进仓11顶升上升SOL,TopCylinder_UP,2,192.168.200.39,0,进仓11顶升上升SOL,Y413,Y413
DO,11,进仓11顶升下降SOL,TopCylinder_Down,3,192.168.200.39,0,进仓11顶升下降SOL,Y414,Y414
DO,11,进仓11横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.39,0,进仓11横移前进SOL,Y415,Y415
DO,11,进仓11横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.39,0,进仓11横移后退SOL,Y416,Y416
DO,11,进仓11夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.39,0,进仓11夹料夹紧SOL,Y417,Y417
DO,11,进仓11夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.39,0,进仓11夹料放松SOL,Y418,Y418
DO,11,进仓11升降上升SOL,UpDownCylinder_Up,8,192.168.200.39,0,进仓11升降上升SOL,Y419,Y419
DO,11,进仓11升降下降SOL,UpDownCylinder_Down,9,192.168.200.39,0,进仓11升降下降SOL,Y420,Y420
DO,12,进仓12阻挡1下降SOL,StopCylinder_Down1,10,192.168.200.39,0,进仓12阻挡1下降SOL,Y421,Y421
DO,12,进仓12阻挡2下降SOL,StopCylinder_Down2,11,192.168.200.39,0,进仓12阻挡2下降SOL,Y422,Y422
DO,12,进仓12顶升上升SOL,TopCylinder_UP,12,192.168.200.39,0,进仓12顶升上升SOL,Y423,Y423
DO,12,进仓12顶升下降SOL,TopCylinder_Down,13,192.168.200.39,0,进仓12顶升下降SOL,Y424,Y424
DO,12,进仓12横移前进SOL,BeforeAfterCylinder_Before,14,192.168.200.39,0,进仓12横移前进SOL,Y425,Y425
DO,12,进仓12横移后退SOL,BeforeAfterCylinder_After,15,192.168.200.39,0,进仓12横移后退SOL,Y426,Y426
,,,,,,,,,
DI,12,进仓12夹料夹紧端,ClampCylinder_Slack,0,192.168.200.40,0,进仓12夹料夹紧端,X431,X431
DI,12,进仓12夹料放松端,ClampCylinder_Tighten,1,192.168.200.40,0,进仓12夹料放松端,X432,X432
DI,12,进仓12升降上升端,UpDownCylinder_Up,2,192.168.200.40,0,进仓12升降上升端,X433,X433
DI,12,进仓12升降下降端,UpDownCylinder_Down,3,192.168.200.40,0,进仓12升降下降端,X434,X434
DI,201,出料1阻挡1托盘检测,StopCylinder_Check1,4,192.168.200.40,0,出料1阻挡1托盘检测,X435,X435
DI,201,出料1阻挡2托盘检测,StopCylinder_Check2,5,192.168.200.40,0,出料1阻挡2托盘检测,X436,X436
DI,201,出料1料盘检测,TrayCheck,6,192.168.200.40,0,出料1料盘检测,X437,X437
DI,201,出料1顶升上升端,TopCylinder_UP,7,192.168.200.40,0,出料1顶升上升端,X438,X438
DI,201,出料1顶升下降端,TopCylinder_Down,8,192.168.200.40,,出料1顶升下降端,X439,X439
DI,201,出料1前后气缸前进端,BeforeAfterCylinder_Before,9,192.168.200.40,,出料1前后气缸前进端,X440,X440
DI,201,出料1前后气缸后退端,BeforeAfterCylinder_After,10,192.168.200.40,,出料1前后气缸后退端,X441,X441
DI,201,出料1夹料气缸夹紧端,ClampCylinder_Slack,11,192.168.200.40,,出料1夹料气缸夹紧端,X442,X442
DI,201,出料1夹料气缸放松端,ClampCylinder_Tighten,12,192.168.200.40,,出料1夹料气缸放松端,X443,X443
DI,201,出料1上下气缸上升端,UpDownCylinder_Up,13,192.168.200.40,,出料1上下气缸上升端,X444,X444
DI,201,出料1上下气缸下降端,UpDownCylinder_Down,14,192.168.200.40,,出料1上下气缸下降端,X445,X445
,,,,15,192.168.200.40,,,X446,X446
,,,,,,,,,
DO,12,进仓12夹料夹紧SOL,ClampCylinder_Slack,0,192.168.200.40,0,进仓12夹料夹紧SOL,Y431,Y431
DO,12,进仓12夹料放松SOL,ClampCylinder_Tighten,1,192.168.200.40,0,进仓12夹料放松SOL,Y432,Y432
DO,12,进仓12升降上升SOL,UpDownCylinder_Up,2,192.168.200.40,0,进仓12升降上升SOL,Y433,Y433
DO,12,进仓12升降下降SOL,UpDownCylinder_Down,3,192.168.200.40,0,进仓12升降下降SOL,Y434,Y434
DO,201,出料1阻挡1下降SOL,StopCylinder_Down1,4,192.168.200.40,0,出料1阻挡1下降SOL,Y435,Y435
DO,201,出料1阻挡2下降SOL,StopCylinder_Down2,5,192.168.200.40,0,出料1阻挡2下降SOL,Y436,Y436
DO,201,出料1顶升上升SOL,TopCylinder_UP,6,192.168.200.40,0,出料1顶升上升SOL,Y437,Y437
DO,201,出料1顶升下降SOL,TopCylinder_Down,7,192.168.200.40,0,出料1顶升下降SOL,Y438,Y438
DO,201,出料1前后气缸前进SOL,BeforeAfterCylinder_Before,8,192.168.200.40,,出料1前后气缸前进SOL,Y439,Y439
DO,201,出料1前后气缸后退SOL,BeforeAfterCylinder_After,9,192.168.200.40,,出料1前后气缸后退SOL,Y440,Y440
DO,201,出料1夹料气缸夹紧SOL,ClampCylinder_Slack,10,192.168.200.40,,出料1夹料气缸夹紧SOL,Y441,Y441
DO,201,出料1夹料气缸放松SOL,ClampCylinder_Tighten,11,192.168.200.40,,出料1夹料气缸放松SOL,Y442,Y442
DO,201,出料1上下气缸上升SOL,UpDownCylinder_Up,12,192.168.200.40,,出料1上下气缸上升SOL,Y443,Y443
DO,201,出料1上下气缸下降SOL,UpDownCylinder_Down,13,192.168.200.40,,出料1上下气缸下降SOL,Y444,Y444
,,,,14,192.168.200.40,,,Y445,Y445
,,,,15,192.168.200.40,,,Y446,Y446
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
......
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
......@@ -14,3 +14,71 @@ PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,13,进仓13阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.41,0,进仓13阻挡1托盘检测,X451,X451
DI,13,进仓13阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.41,0,进仓13阻挡2托盘检测,X452,X452
DI,13,进仓13顶升上升端,TopCylinder_UP,2,192.168.200.41,0,进仓13顶升上升端,X453,X453
DI,13,进仓13顶升下降端,TopCylinder_Down,3,192.168.200.41,0,进仓13顶升下降端,X454,X454
DI,13,进仓13横移前进端,BeforeAfterCylinder_Before,4,192.168.200.41,0,进仓13横移前进端,X455,X455
DI,13,进仓13横移后退端,BeforeAfterCylinder_After,5,192.168.200.41,0,进仓13横移后退端,X456,X456
DI,13,进仓13夹料夹紧端,ClampCylinder_Slack,6,192.168.200.41,0,进仓13夹料夹紧端,X457,X457
DI,13,进仓13夹料放松端,ClampCylinder_Tighten,7,192.168.200.41,0,进仓13夹料放松端,X458,X458
DI,13,进仓13升降上升端,UpDownCylinder_Up,8,192.168.200.41,0,进仓13升降上升端,X459,X459
DI,13,进仓13升降下降端,UpDownCylinder_Down,9,192.168.200.41,0,进仓13升降下降端,X460,X460
DI,14,进仓14阻挡1托盘检测,Fixture_Check_1,10,192.168.200.41,0,进仓14阻挡1托盘检测,X461,X461
DI,14,进仓14阻挡2托盘检测,Fixture_Check_2,11,192.168.200.41,0,进仓14阻挡2托盘检测,X462,X462
DI,14,进仓14顶升上升端,TopCylinder_UP,12,192.168.200.41,0,进仓14顶升上升端,X463,X463
DI,14,进仓14顶升下降端,TopCylinder_Down,13,192.168.200.41,0,进仓14顶升下降端,X464,X464
DI,14,进仓14横移前进端,BeforeAfterCylinder_Before,14,192.168.200.41,0,进仓14横移前进端,X465,X465
DI,14,进仓14横移后退端,BeforeAfterCylinder_After,15,192.168.200.41,0,进仓14横移后退端,X466,X466
,,,,,,,,,
DO,13,进仓13阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.41,0,进仓13阻挡1下降SOL,Y451,Y451
DO,13,进仓13阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.41,0,进仓13阻挡2下降SOL,Y452,Y452
DO,13,进仓13顶升上升SOL,TopCylinder_UP,2,192.168.200.41,0,进仓13顶升上升SOL,Y453,Y453
DO,13,进仓13顶升下降SOL,TopCylinder_Down,3,192.168.200.41,0,进仓13顶升下降SOL,Y454,Y454
DO,13,进仓13横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.41,0,进仓13横移前进SOL,Y455,Y455
DO,13,进仓13横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.41,0,进仓13横移后退SOL,Y456,Y456
DO,13,进仓13夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.41,0,进仓13夹料夹紧SOL,Y457,Y457
DO,13,进仓13夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.41,0,进仓13夹料放松SOL,Y458,Y458
DO,13,进仓13升降上升SOL,UpDownCylinder_Up,8,192.168.200.41,0,进仓13升降上升SOL,Y459,Y459
DO,13,进仓13升降下降SOL,UpDownCylinder_Down,9,192.168.200.41,0,进仓13升降下降SOL,Y460,Y460
DO,14,进仓14阻挡1下降SOL,StopCylinder_Down1,10,192.168.200.41,0,进仓14阻挡1下降SOL,Y461,Y461
DO,14,进仓14阻挡2下降SOL,StopCylinder_Down2,11,192.168.200.41,0,进仓14阻挡2下降SOL,Y462,Y462
DO,14,进仓14顶升上升SOL,TopCylinder_UP,12,192.168.200.41,0,进仓14顶升上升SOL,Y463,Y463
DO,14,进仓14顶升下降SOL,TopCylinder_Down,13,192.168.200.41,0,进仓14顶升下降SOL,Y464,Y464
DO,14,进仓14横移前进SOL,BeforeAfterCylinder_Before,14,192.168.200.41,0,进仓14横移前进SOL,Y465,Y465
DO,14,进仓14横移后退SOL,BeforeAfterCylinder_After,15,192.168.200.41,0,进仓14横移后退SOL,Y466,Y466
,,,,,,,,,
DI,14,进仓14夹料夹紧端,ClampCylinder_Slack,0,192.168.200.42,0,进仓14夹料夹紧端,X471,X471
DI,14,进仓14夹料放松端,ClampCylinder_Tighten,1,192.168.200.42,0,进仓14夹料放松端,X472,X472
DI,14,进仓14升降上升端,UpDownCylinder_Up,2,192.168.200.42,0,进仓14升降上升端,X473,X473
DI,14,进仓14升降下降端,UpDownCylinder_Down,3,192.168.200.42,0,进仓14升降下降端,X474,X474
DI,202,出料2阻挡1托盘检测,StopCylinder_Check1,4,192.168.200.42,0,出料2阻挡1托盘检测,X475,X475
DI,202,出料2阻挡2托盘检测,StopCylinder_Check2,5,192.168.200.42,0,出料2阻挡2托盘检测,X476,X476
DI,202,出料2料盘检测,TrayCheck,6,192.168.200.42,0,出料2料盘检测,X477,X477
DI,202,出料2顶升上升端,TopCylinder_UP,7,192.168.200.42,0,出料2顶升上升端,X478,X478
DI,202,出料2顶升下降端,TopCylinder_Down,8,192.168.200.42,,出料2顶升下降端,X479,X479
DI,202,出料2前后气缸前进端,BeforeAfterCylinder_Before,9,192.168.200.42,,出料2前后气缸前进端,X480,X480
DI,202,出料2前后气缸后退端,BeforeAfterCylinder_After,10,192.168.200.42,,出料2前后气缸后退端,X481,X481
DI,202,出料2夹料气缸夹紧端,ClampCylinder_Slack,11,192.168.200.42,,出料2夹料气缸夹紧端,X482,X482
DI,202,出料2夹料气缸放松端,ClampCylinder_Tighten,12,192.168.200.42,,出料2夹料气缸放松端,X483,X483
DI,202,出料2上下气缸上升端,UpDownCylinder_Up,13,192.168.200.42,,出料2上下气缸上升端,X484,X484
DI,202,出料2上下气缸下降端,UpDownCylinder_Down,14,192.168.200.42,,出料2上下气缸下降端,X485,X485
,,,,15,192.168.200.42,,,X486,X486
,,,,,,,,,
DO,14,进仓14夹料夹紧SOL,ClampCylinder_Slack,0,192.168.200.42,0,进仓14夹料夹紧SOL,Y471,Y471
DO,14,进仓14夹料放松SOL,ClampCylinder_Tighten,1,192.168.200.42,0,进仓14夹料放松SOL,Y472,Y472
DO,14,进仓14升降上升SOL,UpDownCylinder_Up,2,192.168.200.42,0,进仓14升降上升SOL,Y473,Y473
DO,14,进仓14升降下降SOL,UpDownCylinder_Down,3,192.168.200.42,0,进仓14升降下降SOL,Y474,Y474
DO,202,出料2阻挡1下降SOL,StopCylinder_Down1,4,192.168.200.42,0,出料2阻挡1下降SOL,Y475,Y475
DO,202,出料2阻挡2下降SOL,StopCylinder_Down2,5,192.168.200.42,0,出料2阻挡2下降SOL,Y476,Y476
DO,202,出料2顶升上升SOL,TopCylinder_UP,6,192.168.200.42,0,出料2顶升上升SOL,Y477,Y477
DO,202,出料2顶升下降SOL,TopCylinder_Down,7,192.168.200.42,0,出料2顶升下降SOL,Y478,Y478
DO,202,出料2前后气缸前进SOL,BeforeAfterCylinder_Before,8,192.168.200.42,,出料2前后气缸前进SOL,Y479,Y479
DO,202,出料2前后气缸后退SOL,BeforeAfterCylinder_After,9,192.168.200.42,,出料2前后气缸后退SOL,Y480,Y480
DO,202,出料2夹料气缸夹紧SOL,ClampCylinder_Slack,10,192.168.200.42,,出料2夹料气缸夹紧SOL,Y481,Y481
DO,202,出料2夹料气缸放松SOL,ClampCylinder_Tighten,11,192.168.200.42,,出料2夹料气缸放松SOL,Y482,Y482
DO,202,出料2上下气缸上升SOL,UpDownCylinder_Up,12,192.168.200.42,,出料2上下气缸上升SOL,Y483,Y483
DO,202,出料2上下气缸下降SOL,UpDownCylinder_Down,13,192.168.200.42,,出料2上下气缸下降SOL,Y484,Y484
,,,,14,192.168.200.42,,,Y485,Y485
,,,,15,192.168.200.42,,,Y486,Y486
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
......
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
......@@ -14,3 +14,71 @@ PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,15,进仓15阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.43,0,进仓15阻挡1托盘检测,X491,X491
DI,15,进仓15阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.43,0,进仓15阻挡2托盘检测,X492,X492
DI,15,进仓15顶升上升端,TopCylinder_UP,2,192.168.200.43,0,进仓15顶升上升端,X493,X493
DI,15,进仓15顶升下降端,TopCylinder_Down,3,192.168.200.43,0,进仓15顶升下降端,X494,X494
DI,15,进仓15横移前进端,BeforeAfterCylinder_Before,4,192.168.200.43,0,进仓15横移前进端,X495,X495
DI,15,进仓15横移后退端,BeforeAfterCylinder_After,5,192.168.200.43,0,进仓15横移后退端,X496,X496
DI,15,进仓15夹料夹紧端,ClampCylinder_Slack,6,192.168.200.43,0,进仓15夹料夹紧端,X497,X497
DI,15,进仓15夹料放松端,ClampCylinder_Tighten,7,192.168.200.43,0,进仓15夹料放松端,X498,X498
DI,15,进仓15升降上升端,UpDownCylinder_Up,8,192.168.200.43,0,进仓15升降上升端,X499,X499
DI,15,进仓15升降下降端,UpDownCylinder_Down,9,192.168.200.43,0,进仓15升降下降端,X500,X500
DI,16,进仓16阻挡1托盘检测,Fixture_Check_1,10,192.168.200.43,0,进仓16阻挡1托盘检测,X501,X501
DI,16,进仓16阻挡2托盘检测,Fixture_Check_2,11,192.168.200.43,0,进仓16阻挡2托盘检测,X502,X502
DI,16,进仓16顶升上升端,TopCylinder_UP,12,192.168.200.43,0,进仓16顶升上升端,X503,X503
DI,16,进仓16顶升下降端,TopCylinder_Down,13,192.168.200.43,0,进仓16顶升下降端,X504,X504
DI,16,进仓16横移前进端,BeforeAfterCylinder_Before,14,192.168.200.43,0,进仓16横移前进端,X505,X505
DI,16,进仓16横移后退端,BeforeAfterCylinder_After,15,192.168.200.43,0,进仓16横移后退端,X506,X506
,,,,,,,,,
DO,15,进仓15阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.43,0,进仓15阻挡1下降SOL,Y491,Y491
DO,15,进仓15阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.43,0,进仓15阻挡2下降SOL,Y492,Y492
DO,15,进仓15顶升上升SOL,TopCylinder_UP,2,192.168.200.43,0,进仓15顶升上升SOL,Y493,Y493
DO,15,进仓15顶升下降SOL,TopCylinder_Down,3,192.168.200.43,0,进仓15顶升下降SOL,Y494,Y494
DO,15,进仓15横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.43,0,进仓15横移前进SOL,Y495,Y495
DO,15,进仓15横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.43,0,进仓15横移后退SOL,Y496,Y496
DO,15,进仓15夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.43,0,进仓15夹料夹紧SOL,Y497,Y497
DO,15,进仓15夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.43,0,进仓15夹料放松SOL,Y498,Y498
DO,15,进仓15升降上升SOL,UpDownCylinder_Up,8,192.168.200.43,0,进仓15升降上升SOL,Y499,Y499
DO,15,进仓15升降下降SOL,UpDownCylinder_Down,9,192.168.200.43,0,进仓15升降下降SOL,Y500,Y500
DO,16,进仓16阻挡1下降SOL,StopCylinder_Down1,10,192.168.200.43,0,进仓16阻挡1下降SOL,Y501,Y501
DO,16,进仓16阻挡2下降SOL,StopCylinder_Down2,11,192.168.200.43,0,进仓16阻挡2下降SOL,Y502,Y502
DO,16,进仓16顶升上升SOL,TopCylinder_UP,12,192.168.200.43,0,进仓16顶升上升SOL,Y503,Y503
DO,16,进仓16顶升下降SOL,TopCylinder_Down,13,192.168.200.43,0,进仓16顶升下降SOL,Y504,Y504
DO,16,进仓16横移前进SOL,BeforeAfterCylinder_Before,14,192.168.200.43,0,进仓16横移前进SOL,Y505,Y505
DO,16,进仓16横移后退SOL,BeforeAfterCylinder_After,15,192.168.200.43,0,进仓16横移后退SOL,Y506,Y506
,,,,,,,,,
DI,16,进仓16夹料夹紧端,ClampCylinder_Slack,0,192.168.200.44,0,进仓16夹料夹紧端,X511,X511
DI,16,进仓16夹料放松端,ClampCylinder_Tighten,1,192.168.200.44,0,进仓16夹料放松端,X512,X512
DI,16,进仓16升降上升端,UpDownCylinder_Up,2,192.168.200.44,0,进仓16升降上升端,X513,X513
DI,16,进仓16升降下降端,UpDownCylinder_Down,3,192.168.200.44,0,进仓16升降下降端,X514,X514
DI,203,出料3阻挡1托盘检测,StopCylinder_Check1,4,192.168.200.44,0,出料3阻挡1托盘检测,X515,X515
DI,203,出料3阻挡2托盘检测,StopCylinder_Check2,5,192.168.200.44,0,出料3阻挡2托盘检测,X516,X516
DI,203,出料3料盘检测,TrayCheck,6,192.168.200.44,0,出料3料盘检测,X517,X517
DI,203,出料3顶升上升端,TopCylinder_UP,7,192.168.200.44,0,出料3顶升上升端,X518,X518
DI,203,出料3顶升下降端,TopCylinder_Down,8,192.168.200.44,,出料3顶升下降端,X519,X519
DI,203,出料3前后气缸前进端,BeforeAfterCylinder_Before,9,192.168.200.44,,出料3前后气缸前进端,X520,X520
DI,203,出料3前后气缸后退端,BeforeAfterCylinder_After,10,192.168.200.44,,出料3前后气缸后退端,X521,X521
DI,203,出料3夹料气缸夹紧端,ClampCylinder_Slack,11,192.168.200.44,,出料3夹料气缸夹紧端,X522,X522
DI,203,出料3夹料气缸放松端,ClampCylinder_Tighten,12,192.168.200.44,,出料3夹料气缸放松端,X523,X523
DI,203,出料3上下气缸上升端,UpDownCylinder_Up,13,192.168.200.44,,出料3上下气缸上升端,X524,X524
DI,203,出料3上下气缸下降端,UpDownCylinder_Down,14,192.168.200.44,,出料3上下气缸下降端,X525,X525
,,,,15,192.168.200.44,,,X526,X526
,,,,,,,,,
DO,16,进仓16夹料夹紧SOL,ClampCylinder_Slack,0,192.168.200.44,0,进仓16夹料夹紧SOL,Y511,Y511
DO,16,进仓16夹料放松SOL,ClampCylinder_Tighten,1,192.168.200.44,0,进仓16夹料放松SOL,Y512,Y512
DO,16,进仓16升降上升SOL,UpDownCylinder_Up,2,192.168.200.44,0,进仓16升降上升SOL,Y513,Y513
DO,16,进仓16升降下降SOL,UpDownCylinder_Down,3,192.168.200.44,0,进仓16升降下降SOL,Y514,Y514
DO,203,出料3阻挡1下降SOL,StopCylinder_Down1,4,192.168.200.44,0,出料3阻挡1下降SOL,Y515,Y515
DO,203,出料3阻挡2下降SOL,StopCylinder_Down2,5,192.168.200.44,0,出料3阻挡2下降SOL,Y516,Y516
DO,203,出料3顶升上升SOL,TopCylinder_UP,6,192.168.200.44,0,出料3顶升上升SOL,Y517,Y517
DO,203,出料3顶升下降SOL,TopCylinder_Down,7,192.168.200.44,0,出料3顶升下降SOL,Y518,Y518
DO,203,出料3前后气缸前进SOL,BeforeAfterCylinder_Before,8,192.168.200.44,,出料3前后气缸前进SOL,Y519,Y519
DO,203,出料3前后气缸后退SOL,BeforeAfterCylinder_After,9,192.168.200.44,,出料3前后气缸后退SOL,Y520,Y520
DO,203,出料3夹料气缸夹紧SOL,ClampCylinder_Slack,10,192.168.200.44,,出料3夹料气缸夹紧SOL,Y521,Y521
DO,203,出料3夹料气缸放松SOL,ClampCylinder_Tighten,11,192.168.200.44,,出料3夹料气缸放松SOL,Y522,Y522
DO,203,出料3上下气缸上升SOL,UpDownCylinder_Up,12,192.168.200.44,,出料3上下气缸上升SOL,Y523,Y523
DO,203,出料3上下气缸下降SOL,UpDownCylinder_Down,13,192.168.200.44,,出料3上下气缸下降SOL,Y524,Y524
,,,,14,192.168.200.44,,,Y525,Y525
,,,,15,192.168.200.44,,,Y526,Y526
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
......
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
PRO,0,移栽上下轴待机点 P1,UpDownAxisP1,20000,,,,,
PRO,0,移栽上下轴目标速度,UpdownAxis_TargetSpeed,150,,,,,
......@@ -14,3 +14,71 @@ PRO,0,移栽上下轴原点高速,UpdownAxis_HomeHighSpeed,200,,,,,
PRO,0,移栽上下轴原点加速度,UpdownAxis_HomeAddSpeed,200,,,,,
PRO,0,移栽上下轴下降速度,UpdownAxis_DownSpeed,500,,,,,
PRO,0,移栽上下轴走到待机点速度,UpdownAxis_P1Speed,400,,,,,
,,,,,,,,,
DI,17,进仓17阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.45,0,进仓17阻挡1托盘检测,X531,X531
DI,17,进仓17阻挡2托盘检测,StopCylinder_Check2,1,192.168.200.45,0,进仓17阻挡2托盘检测,X532,X532
DI,17,进仓17顶升上升端,TopCylinder_UP,2,192.168.200.45,0,进仓17顶升上升端,X533,X533
DI,17,进仓17顶升下降端,TopCylinder_Down,3,192.168.200.45,0,进仓17顶升下降端,X534,X534
DI,17,进仓17横移前进端,BeforeAfterCylinder_Before,4,192.168.200.45,0,进仓17横移前进端,X535,X535
DI,17,进仓17横移后退端,BeforeAfterCylinder_After,5,192.168.200.45,0,进仓17横移后退端,X536,X536
DI,17,进仓17夹料夹紧端,ClampCylinder_Slack,6,192.168.200.45,0,进仓17夹料夹紧端,X537,X537
DI,17,进仓17夹料放松端,ClampCylinder_Tighten,7,192.168.200.45,0,进仓17夹料放松端,X538,X538
DI,17,进仓17升降上升端,UpDownCylinder_Up,8,192.168.200.45,0,进仓17升降上升端,X539,X539
DI,17,进仓17升降下降端,UpDownCylinder_Down,9,192.168.200.45,0,进仓17升降下降端,X540,X540
DI,18,进仓18阻挡1托盘检测,Fixture_Check_1,10,192.168.200.45,0,进仓18阻挡1托盘检测,X541,X541
DI,18,进仓18阻挡2托盘检测,Fixture_Check_2,11,192.168.200.45,0,进仓18阻挡2托盘检测,X542,X542
DI,18,进仓18顶升上升端,TopCylinder_UP,12,192.168.200.45,0,进仓18顶升上升端,X543,X543
DI,18,进仓18顶升下降端,TopCylinder_Down,13,192.168.200.45,0,进仓18顶升下降端,X544,X544
DI,18,进仓18横移前进端,BeforeAfterCylinder_Before,14,192.168.200.45,0,进仓18横移前进端,X545,X545
DI,18,进仓18横移后退端,BeforeAfterCylinder_After,15,192.168.200.45,0,进仓18横移后退端,X546,X546
,,,,,,,,,
DO,17,进仓17阻挡1下降SOL,StopCylinder_Down1,0,192.168.200.45,0,进仓17阻挡1下降SOL,Y531,Y531
DO,17,进仓17阻挡2下降SOL,StopCylinder_Down2,1,192.168.200.45,0,进仓17阻挡2下降SOL,Y532,Y532
DO,17,进仓17顶升上升SOL,TopCylinder_UP,2,192.168.200.45,0,进仓17顶升上升SOL,Y533,Y533
DO,17,进仓17顶升下降SOL,TopCylinder_Down,3,192.168.200.45,0,进仓17顶升下降SOL,Y534,Y534
DO,17,进仓17横移前进SOL,BeforeAfterCylinder_Before,4,192.168.200.45,0,进仓17横移前进SOL,Y535,Y535
DO,17,进仓17横移后退SOL,BeforeAfterCylinder_After,5,192.168.200.45,0,进仓17横移后退SOL,Y536,Y536
DO,17,进仓17夹料夹紧SOL,ClampCylinder_Slack,6,192.168.200.45,0,进仓17夹料夹紧SOL,Y537,Y537
DO,17,进仓17夹料放松SOL,ClampCylinder_Tighten,7,192.168.200.45,0,进仓17夹料放松SOL,Y538,Y538
DO,17,进仓17升降上升SOL,UpDownCylinder_Up,8,192.168.200.45,0,进仓17升降上升SOL,Y539,Y539
DO,17,进仓17升降下降SOL,UpDownCylinder_Down,9,192.168.200.45,0,进仓17升降下降SOL,Y540,Y540
DO,18,进仓18阻挡1下降SOL,StopCylinder_Down1,10,192.168.200.45,0,进仓18阻挡1下降SOL,Y541,Y541
DO,18,进仓18阻挡2下降SOL,StopCylinder_Down2,11,192.168.200.45,0,进仓18阻挡2下降SOL,Y542,Y542
DO,18,进仓18顶升上升SOL,TopCylinder_UP,12,192.168.200.45,0,进仓18顶升上升SOL,Y543,Y543
DO,18,进仓18顶升下降SOL,TopCylinder_Down,13,192.168.200.45,0,进仓18顶升下降SOL,Y544,Y544
DO,18,进仓18横移前进SOL,BeforeAfterCylinder_Before,14,192.168.200.45,0,进仓18横移前进SOL,Y545,Y545
DO,18,进仓18横移后退SOL,BeforeAfterCylinder_After,15,192.168.200.45,0,进仓18横移后退SOL,Y546,Y546
,,,,,,,,,
DI,18,进仓18夹料夹紧端,ClampCylinder_Slack,0,192.168.200.46,0,进仓18夹料夹紧端,X551,X551
DI,18,进仓18夹料放松端,ClampCylinder_Tighten,1,192.168.200.46,0,进仓18夹料放松端,X552,X552
DI,18,进仓18升降上升端,UpDownCylinder_Up,2,192.168.200.46,0,进仓18升降上升端,X553,X553
DI,18,进仓18升降下降端,UpDownCylinder_Down,3,192.168.200.46,0,进仓18升降下降端,X554,X554
DI,204,出料4阻挡1托盘检测,StopCylinder_Check1,4,192.168.200.46,0,出料4阻挡1托盘检测,X555,X555
DI,204,环形线横移4托盘检测,StopCylinder_Check2,5,192.168.200.46,0,环形线横移4托盘检测,X556,X556
DI,204,环形线横移4顶升上升SOL,TrayCheck,6,192.168.200.46,0,环形线横移4顶升上升SOL,X557,X557
DI,204,环形线横移4顶升下降SOL,TopCylinder_UP,7,192.168.200.46,0,环形线横移4顶升下降SOL,X558,X558
DI,204,环形线横移4顶升下降端,TopCylinder_Down,8,192.168.200.46,,环形线横移4顶升下降端,X559,X559
DI,204,出料4前后气缸前进端,BeforeAfterCylinder_Before,9,192.168.200.46,,出料4前后气缸前进端,X560,X560
DI,204,出料4前后气缸后退端,BeforeAfterCylinder_After,10,192.168.200.46,,出料4前后气缸后退端,X561,X561
DI,204,出料4夹料气缸夹紧端,ClampCylinder_Slack,11,192.168.200.46,,出料4夹料气缸夹紧端,X562,X562
DI,204,出料4夹料气缸放松端,ClampCylinder_Tighten,12,192.168.200.46,,出料4夹料气缸放松端,X563,X563
DI,204,出料4上下气缸上升端,UpDownCylinder_Up,13,192.168.200.46,,出料4上下气缸上升端,X564,X564
DI,204,出料4上下气缸下降端,UpDownCylinder_Down,14,192.168.200.46,,出料4上下气缸下降端,X565,X565
,,,,15,192.168.200.46,,,X566,X566
,,,,,,,,,
DO,18,进仓18夹料夹紧SOL,ClampCylinder_Slack,0,192.168.200.46,0,进仓18夹料夹紧SOL,Y551,Y551
DO,18,进仓18夹料放松SOL,ClampCylinder_Tighten,1,192.168.200.46,0,进仓18夹料放松SOL,Y552,Y552
DO,18,进仓18升降上升SOL,UpDownCylinder_Up,2,192.168.200.46,0,进仓18升降上升SOL,Y553,Y553
DO,18,进仓18升降下降SOL,UpDownCylinder_Down,3,192.168.200.46,0,进仓18升降下降SOL,Y554,Y554
DO,204,出料4阻挡1下降SOL,StopCylinder_Down1,4,192.168.200.46,0,出料4阻挡1下降SOL,Y555,Y555
DO,204,出料4阻挡2下降SOL,StopCylinder_Down2,5,192.168.200.46,0,出料4阻挡2下降SOL,Y556,Y556
DO,204,出料4顶升上升SOL,TopCylinder_UP,6,192.168.200.46,0,出料4顶升上升SOL,Y557,Y557
DO,204,出料4顶升下降SOL,TopCylinder_Down,7,192.168.200.46,0,出料4顶升下降SOL,Y558,Y558
DO,204,出料4前后气缸前进SOL,BeforeAfterCylinder_Before,8,192.168.200.46,,出料4前后气缸前进SOL,Y559,Y559
DO,204,出料4前后气缸后退SOL,BeforeAfterCylinder_After,9,192.168.200.46,,出料4前后气缸后退SOL,Y560,Y560
DO,204,出料4夹料气缸夹紧SOL,ClampCylinder_Slack,10,192.168.200.46,,出料4夹料气缸夹紧SOL,Y561,Y561
DO,204,出料4夹料气缸放松SOL,ClampCylinder_Tighten,11,192.168.200.46,,出料4夹料气缸放松SOL,Y562,Y562
DO,204,出料4上下气缸上升SOL,UpDownCylinder_Up,12,192.168.200.46,,出料4上下气缸上升SOL,Y563,Y563
DO,204,出料4上下气缸下降SOL,UpDownCylinder_Down,13,192.168.200.46,,出料4上下气缸下降SOL,Y564,Y564
,,,,14,192.168.200.46,,,Y565,Y565
,,,,15,192.168.200.46,,,Y566,Y566
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,阻挡气缸控制信号(1-4分别对应夹具检测1-4),StopCylinderIOType,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,0,,,,,
PRO,0,移栽上下轴在移栽上下降的位置,UpDownPositions,0=180000;,,,,,,
PRO,0,移栽上下轴在料仓门口下降的位置,UpDownBoxPositions,0=116000;,,,,,,
AXIS,0,移栽上下轴,UpDown_Axis,1,COM1,1,,,
......
......@@ -51,6 +51,8 @@ namespace OnlineStore.DeviceLibrary
{
if (!isInit)
{
StoreConfig.SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>();
StoreConfig.SubDOList = new Dictionary<int, Dictionary<string, ConfigIO>>();
moveECMap = new Dictionary<int, MoveEquip_Config>();
feedingECMap = new Dictionary<int, FeedingEquip_Config>();
providingECMap = new Dictionary<int, ProvidingEquip_Config>();
......@@ -86,7 +88,7 @@ namespace OnlineStore.DeviceLibrary
string config = appPath + moveEquipConfig.Replace(".csv", "_" + nameStr + ".csv");
MoveEquip_Config moveConfig = CSVConfigReader.LoadMoveConfig(i, config);
int subType = i;
moveConfig.SetIO(Config, subType);
moveConfig.SetIO( subType);
moveECMap.Add(i, moveConfig);
}
int feedingEquipCount = ConfigAppSettings.GetIntValue(Setting_Init.Line_feedingEquip_count);
......@@ -97,7 +99,7 @@ namespace OnlineStore.DeviceLibrary
string config = appPath + feedingEquipConfig.Replace(".csv", "_" + i + ".csv");
FeedingEquip_Config moveConfig = CSVConfigReader.LoadFeedingConfig(subType, config);
moveConfig.SetIO(Config, subType);
moveConfig.SetIO( subType);
feedingECMap.Add(i, moveConfig);
}
......@@ -109,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
string config = appPath + providingEquipConfig.Replace(".csv", "_" + i + ".csv");
ProvidingEquip_Config moveConfig = CSVConfigReader.LoadProvidingConfig(subType, config);
moveConfig.SetIO(Config, subType);
moveConfig.SetIO( subType);
providingECMap.Add(i, moveConfig);
}
Line = new LineBean(Config, moveECMap,feedingECMap,providingECMap);
......
......@@ -13,9 +13,18 @@ namespace OnlineStore.DeviceLibrary
{
private bool IsIntSlvBlock = false;
public bool IsDebug = false;
public AxisAlarmInfo AxisAlarm = new AxisAlarmInfo();
public bool UseAxis = false;
public List<InOutParam> waitOutStoreList = new List<InOutParam>();
public List<InOutParam> waitInStoreList = new List<InOutParam>();
public object waitInListLock = "";
public object waitOutListLock = "";
/// <summary>
///移栽装置后面分为两条移动线
/// </summary>
public LineMoveInfo SecondMoveInfo = null;
#region 上下气缸伺服运动
protected string portName;
protected short slvAddr;
......@@ -356,7 +365,150 @@ namespace OnlineStore.DeviceLibrary
}
this.alarmType = alarmType;
}
/// <summary>
/// 运动处理
/// </summary>
protected override void BusyMoveProcess()
{
switch (MoveInfo.MoveType)
{
case LineMoveType.InStore:
InStoreProcess();
break;
case LineMoveType.OutStore:
OutStoreProcess();
break;
case LineMoveType.ReturnHome:
ReturnHomeProcess();
break;
case LineMoveType.Reset:
ResetProcess();
break;
//case StoreMoveType.StopMove:
// StopMoveProcess();
// break;
default: break;
}
if (MoveInfo.MoveType == LineMoveType.InStore || this.SecondMoveInfo.MoveType == LineMoveType.InStore)
{
InStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.OutStore || SecondMoveInfo.MoveType == LineMoveType.OutStore)
{
OutStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.ReturnHome)
{
ReturnHomeProcess();
}
else if (MoveInfo.MoveType == LineMoveType.Reset)
{
ResetProcess();
}
else if (MoveInfo.MoveType == LineMoveType.StopMove)
{
StopMoveProcess();
}
if (SecondMoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
CheckFixtureProcess();
}
}
protected override void mainTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
TimerProcess();
}
protected abstract void ReturnHomeProcess();
protected abstract void StopMoveProcess();
public abstract void TimerProcess();
protected abstract void CheckFixtureProcess();
protected DateTime preIoTimerOutTime = DateTime.Now;
protected void IOTimeOutProcess()
{
try
{
TimeSpan span = DateTime.Now - preIoTimerOutTime;
if (span.TotalSeconds > 1 && alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
preIoTimerOutTime = DateTime.Now;
if (runStatus < LineRunStatus.Runing || isInSuddenDown || isNoAirCheck)
{
return;
}
//若BOX和出料都没有在等待Io的过程中则此Io超时异常可能已经处理过
if (MoveInfo.IsInWait.Equals(false) && SecondMoveInfo.IsInWait.Equals(false))
{
LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
alarmType = LineAlarmType.None;
WarnMsg = "";
}
}
}
catch (Exception ex)
{
LogUtil.error("IOTimeOutProcess出错:" + ex.ToString());
}
}
public void ChangeDebug(bool isDebug)
{
if (isDebug)
{
IsDebug = true;
//两个阻挡气缸下降
lineStatus = LineStatus.Debugging;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
LogInfo("从正常状态切换到调试状态!");
}
else if (lineStatus.Equals(LineStatus.Debugging))
{
IsDebug = false;
lineStatus = LineStatus.StoreOnline;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
LogInfo("从调试状态切换到正常状态!");
}
}
/// <summary>
/// 下降所有阻挡气缸
/// </summary>
internal void OpenStopCylinder()
{
LogInfo("下降阻挡气缸,上下气缸上升,顶升气缸下降");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
//上下气缸上升
if (UseAxis.Equals(false))
{
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.HIGH);
}
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.HIGH);
}
internal void CloseCylinderStop()
{
LogInfo("上升阻挡气缸,关闭上下气缸,顶升气缸IO");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
//上下气缸上升
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
}
}
}
......@@ -14,34 +14,21 @@ namespace OnlineStore.DeviceLibrary
/// 流水线自动料仓-入料装置类
/// </summary>
public partial class FeedingEquip : EquipBase
{
{
public FeedingEquip_Config Config;
// public List<InOutParam> waitOutStoreList = new List<InOutParam>();
public List<InOutParam> waitInStoreList = new List<InOutParam>();
public object waitInListLock = "";
// public object waitOutListLock = "";
public FeedingEquip(string cid, FeedingEquip_Config config)
{
this.DeviceID = config.Id;
baseConfig = config;
this.Config = config;
IsDebug = config.IsDebug.Equals(1);
Name = (" " + "_入料_" + DeviceID%10 + " ").ToUpper();
//Name = (" " + cid + "_入料_" + DeviceID + " ").ToUpper();
Init();
//添加调试
if (config.IsDebug == 1)
{
IsDebug = true;
}
//this.Box = box;
MoveInfo = new LineMoveInfo(DeviceID,"入料-"+DeviceID+"-MoveInfo");
IsDebug = config.IsDebug.Equals(1);
UseAxis = config.UpDownUseAxis.Equals(1);
MoveInfo = new LineMoveInfo(DeviceID,"入料-"+DeviceID+"-MoveInfo");
UseAxis = true;
if (UseAxis)
{
Config.Batch_Axis.TargetSpeed = Config.BatchAxis_TargetSpeed;
......@@ -106,60 +93,9 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.ClampCylinder_Tighten, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait;
}
/// <summary>
/// 运动处理
/// </summary>
protected override void BusyMoveProcess()
{
switch (MoveInfo.MoveType)
{
case LineMoveType.InStore:
InStoreProcess();
break;
case LineMoveType.OutStore:
OutStoreProcess();
break;
case LineMoveType.ReturnHome:
ReturnHomeProcess();
break;
case LineMoveType.Reset:
ResetProcess();
break;
//case StoreMoveType.StopMove:
// StopMoveProcess();
// break;
default: break;
}
if (MoveInfo.MoveType == LineMoveType.InStore )
{
InStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.OutStore )
{
OutStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.ReturnHome)
{
ReturnHomeProcess();
}
else if (MoveInfo.MoveType == LineMoveType.Reset)
{
ResetProcess();
}
else if (MoveInfo.MoveType == LineMoveType.StopMove)
{
StopMoveProcess();
}
}
protected override void mainTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
TimerProcess();
}
public void TimerProcess()
public override void TimerProcess()
{
if (isInPro)
{
......@@ -195,35 +131,7 @@ namespace OnlineStore.DeviceLibrary
isInPro = false;
}
private DateTime preIoTimerOutTime = DateTime.Now;
private void IOTimeOutProcess()
{
try
{
TimeSpan span = DateTime.Now - preIoTimerOutTime;
if (span.TotalSeconds > 1&& alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
preIoTimerOutTime = DateTime.Now;
if (runStatus < LineRunStatus.Runing|| isInSuddenDown || isNoAirCheck)
{
return;
}
//若BOX和入料都没有在等待Io的过程中则此Io超时异常可能已经处理过
if (MoveInfo.IsInWait .Equals(false))
{
LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
alarmType = LineAlarmType.None;
WarnMsg = "";
}
}
}
catch (Exception ex)
{
LogUtil.error( "IOTimeOutProcess出错:" + ex.ToString());
}
}
/// <summary>
/// 入料装置原点返回
......@@ -265,9 +173,9 @@ namespace OnlineStore.DeviceLibrary
//如果正在出库中,需要减去托盘号
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
LogInfo("重置之前发现在出库执行中,减去托盘数;");
// LogInfo("重置之前发现在出库执行中,减去托盘数;");
//减去需要的盘数
TrayManager.DelNeedEmptyTrayNum();
// TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
if (!RunAxis(true,Config.Batch_Axis))
......@@ -346,7 +254,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 原点返回处理
/// </summary>
protected void ReturnHomeProcess()
protected override void ReturnHomeProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -391,7 +299,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private void StopMoveProcess()
protected override void StopMoveProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -439,9 +347,9 @@ namespace OnlineStore.DeviceLibrary
//如果正在出库中,需要减去托盘号
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
LogInfo( "停止运动时出库执行中,减去托盘数;");
// LogInfo( "停止运动时出库执行中,减去托盘数;");
//减去需要的盘数
TrayManager.DelNeedEmptyTrayNum();
// TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
runStatus = LineRunStatus.Busy;
......@@ -455,63 +363,7 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
}
public void ChangeDebug()
{
if (Config.IsDebug == 1)
{
IsDebug = true;
//两个阻挡气缸下降
lineStatus = LineStatus.Debugging;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
LogInfo("从正常状态切换到调试状态!");
}
else if (lineStatus.Equals(LineStatus.Debugging))
{
IsDebug = false;
lineStatus = LineStatus.StoreOnline;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
LogInfo("从调试状态切换到正常状态!");
}
}
/// <summary>
/// 下降所有阻挡气缸
/// </summary>
internal void OpenStopCylinder()
{
LogInfo( "下降阻挡气缸,上下气缸上升,顶升气缸下降");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
//上下气缸上升
if (UseAxis.Equals(false))
{
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.HIGH);
}
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.HIGH);
}
internal void CloseCylinderStop()
{
LogInfo( "上升阻挡气缸,关闭上下气缸,顶升气缸IO");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
//上下气缸上升
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
}
/// <summary>
/// 上下气缸移动到上升端
/// </summary>
......@@ -577,6 +429,9 @@ namespace OnlineStore.DeviceLibrary
throw new NotImplementedException();
}
protected override void CheckFixtureProcess()
{
throw new NotImplementedException();
}
}
}
......@@ -56,6 +56,7 @@ namespace OnlineStore.DeviceLibrary
}
Init();
InitTimer();
baseConfig = lineConfig;
this.Config = lineConfig;
this.DeviceID = lineConfig.Id;
SW12_MoveInfo = new LineMoveInfo(DeviceID,"横移轨道-12");
......
......@@ -499,14 +499,7 @@ namespace OnlineStore.DeviceLibrary
{
LogUtil.debug(Name + msg);
}
private void IOMove(string ioType, IO_VALUE value)
{
IOManager.IOMove(ioType, value, 0);
}
private IO_VALUE IOValue(string ioType)
{
return IOManager.IOValue(ioType, 0);
}
private bool IsDoValue(string ioType, IO_VALUE value)
{
if (IOManager.DOValue(ioType, 0).Equals(value))
......@@ -515,16 +508,7 @@ namespace OnlineStore.DeviceLibrary
}
return false;
}
public void CylinderMove(LineMoveInfo moveInfo, string IoLowType, string IoHighType)
{
IOMove(IoLowType, IO_VALUE.LOW);
IOMove(IoHighType, IO_VALUE.HIGH);
if (moveInfo != null)
{
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoLowType, IO_VALUE.LOW));
moveInfo.WaitList.Add(WaitResultInfo.WaitIO(IoHighType, IO_VALUE.HIGH));
}
}
#endregion
......
......@@ -14,40 +14,22 @@ namespace OnlineStore.DeviceLibrary
/// 流水线自动料仓-移栽装置类
/// </summary>
public partial class MoveEquip : EquipBase
{
private bool IsIntSlvBlock = false;
// public bool IsDebug = false;
// public bool UseAxis = false;
// public AxisAlarmInfo AxisAlarm = new AxisAlarmInfo();
{
public MoveEquip_Config Config;
/// <summary>
///移栽装置后面分为两条移动线
/// </summary>
public LineMoveInfo SecondMoveInfo = null;
public List<InOutParam> waitOutStoreList = new List<InOutParam>();
public List<InOutParam> waitInStoreList = new List<InOutParam>();
public object waitInListLock = "";
public object waitOutListLock = "";
public MoveEquip(string cid, MoveEquip_Config config)
{
this.DeviceID = config.Id;
this.Config = config;
baseConfig = config;
IsDebug = config.IsDebug.Equals(1);
Name = (" " + "_移栽_" + DeviceID + " ").ToUpper();
//Name = (" " + cid + "_移栽_" + DeviceID + " ").ToUpper();
Init();
//添加调试
if (config.IsDebug == 1)
{
IsDebug = true;
}
//this.Box = box;
MoveInfo = new LineMoveInfo(DeviceID, "移栽-" + DeviceID + "-MoveInfo");
SecondMoveInfo = new LineMoveInfo(DeviceID, "移栽-" + DeviceID + "-SecondMoveInfo");
IsDebug = config.IsDebug.Equals(1);
UseAxis = config.UpDownUseAxis.Equals(1);
if (UseAxis)
{
......@@ -56,8 +38,7 @@ namespace OnlineStore.DeviceLibrary
Config.UpDown_Axis.DelSpeed = Config.UpdownAxis_DelSpeed;
Config.UpDown_Axis.HomeAddSpeed = Config.UpdownAxis_HomeAddSpeed;
Config.UpDown_Axis.HomeHighSpeed = Config.UpdownAxis_HomeHighSpeed;
Config.UpDown_Axis.HomeLowSpeed = Config.UpdownAxis_HomeLowSpeed;
Config.UpDown_Axis.HomeLowSpeed = Config.UpdownAxis_HomeLowSpeed;
portName = Config.UpDown_Axis.DeviceName;
slvAddr = config.UpDown_Axis.GetAxisValue();
}
......@@ -121,65 +102,9 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.ClampCylinder_Tighten, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait;
}
/// <summary>
/// 运动处理
/// </summary>
protected override void BusyMoveProcess()
{
switch (MoveInfo.MoveType)
{
case LineMoveType.InStore:
InStoreProcess();
break;
case LineMoveType.OutStore:
OutStoreProcess();
break;
case LineMoveType.ReturnHome:
ReturnHomeProcess();
break;
case LineMoveType.Reset:
ResetProcess();
break;
//case StoreMoveType.StopMove:
// StopMoveProcess();
// break;
default: break;
}
if (MoveInfo.MoveType == LineMoveType.InStore || this.SecondMoveInfo.MoveType == LineMoveType.InStore)
{
InStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.OutStore || SecondMoveInfo.MoveType == LineMoveType.OutStore)
{
OutStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.ReturnHome)
{
ReturnHomeProcess();
}
else if (MoveInfo.MoveType == LineMoveType.Reset)
{
ResetProcess();
}
else if (MoveInfo.MoveType == LineMoveType.StopMove)
{
StopMoveProcess();
}
if (SecondMoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
CheckFixtureProcess();
}
}
protected override void mainTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
TimerProcess();
}
public void TimerProcess()
public override void TimerProcess()
{
if (isInPro)
{
......@@ -264,35 +189,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private DateTime preIoTimerOutTime = DateTime.Now;
private void IOTimeOutProcess()
{
try
{
TimeSpan span = DateTime.Now - preIoTimerOutTime;
if (span.TotalSeconds > 1 && alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
preIoTimerOutTime = DateTime.Now;
if (runStatus < LineRunStatus.Runing || isInSuddenDown || isNoAirCheck)
{
return;
}
//若BOX和移栽都没有在等待Io的过程中则此Io超时异常可能已经处理过
if (MoveInfo.IsInWait.Equals(false) && SecondMoveInfo.IsInWait.Equals(false))
{
LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
alarmType = LineAlarmType.None;
WarnMsg = "";
}
}
}
catch (Exception ex)
{
LogUtil.error("IOTimeOutProcess出错:" + ex.ToString());
}
}
/// <summary>
/// 移栽装置原点返回
......@@ -421,7 +318,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 原点返回处理
/// </summary>
protected void ReturnHomeProcess()
protected override void ReturnHomeProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -471,7 +368,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private void StopMoveProcess()
protected override void StopMoveProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -540,230 +437,8 @@ namespace OnlineStore.DeviceLibrary
}
public void ChangeDebug()
{
if (Config.IsDebug == 1)
{
IsDebug = true;
//两个阻挡气缸下降
lineStatus = LineStatus.Debugging;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
LogInfo("从正常状态切换到调试状态!");
}
else if (lineStatus.Equals(LineStatus.Debugging))
{
IsDebug = false;
lineStatus = LineStatus.StoreOnline;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
LogInfo("从调试状态切换到正常状态!");
}
}
/// <summary>
/// 下降所有阻挡气缸
/// </summary>
internal void OpenStopCylinder()
{
LogInfo("下降阻挡气缸,上下气缸上升,顶升气缸下降");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
//上下气缸上升
if (UseAxis.Equals(false))
{
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.HIGH);
}
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.HIGH);
}
internal void CloseCylinderStop()
{
LogInfo("上升阻挡气缸,关闭上下气缸,顶升气缸IO");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
//上下气缸上升
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
}
#region 上下气缸伺服运动
//private string portName;
//private short slvAddr;
//public bool RunAxis(bool isCheck)
//{
// if (!UseAxis)
// {
// return true;
// }
// IOMove(IO_Type.UpDownAxis_ServoOn, IO_VALUE.HIGH);
// Thread.Sleep(1000);
// //打开所有轴
// ACServerManager.OpenPort(portName);
// Thread.Sleep(50);
// //初始化
// if (!IsIntSlvBlock)
// {
// ACServerManager.InitSlvAddr(portName, slvAddr, Config.UpDown_Axis.TargetSpeed, Config.UpDown_Axis.AddSpeed, Config.UpDown_Axis.DelSpeed);
// Thread.Sleep(100);
// }
// ACServerManager.AlarmClear(portName, slvAddr);
// Thread.Sleep(50);
// ACServerManager.ServoOn(portName, slvAddr);
// Thread.Sleep(1000);
// //打开所有轴
// if (isCheck)
// {
// if (!OpenAxis())
// {
// return false;
// }
// }
// IsIntSlvBlock = true;
// IOMove(IO_Type.UpDownAxis_BreakOn, IO_VALUE.HIGH);
// return true;
//}
///// <summary>
///// 打开所有轴
///// </summary>
///// <returns></returns>
//private bool OpenAxis()
//{
// //判断轴是否正常
// if (ACServerManager.ServerOnStatus(portName, slvAddr))
// {
// LogUtil.info(Name + "成功打开轴:" + Config.UpDown_Axis.Explain);
// }
// else
// {
// //清理报警,再重新打开一次
// LogUtil.info(Name + "第一次打开轴" + Config.UpDown_Axis.Explain + "失败,先清理一下报警,再重新打开一次");
// ACServerManager.AlarmClear(portName, slvAddr);
// System.Threading.Thread.Sleep(1200);
// ACServerManager.ServoOn(portName, slvAddr);
// System.Threading.Thread.Sleep(100);
// if (ACServerManager.ServerOnStatus(portName, slvAddr))
// {
// LogUtil.info(Name + "清理报警后重新打卡轴成功:" + Config.UpDown_Axis.Explain);
// }
// else
// {
// ACServerManager.ServoOff(portName, slvAddr);
// WarnMsg = Name + "打开轴" + Config.UpDown_Axis.Explain + "失败 ";
// LogUtil.info(Name + WarnMsg);
// Alarm(LineAlarmType.AxisAlarm, 5.ToString(), WarnMsg, MoveInfo.MoveType);
// return false;
// }
// }
// return true;
//}
//public void CloseAxis()
//{
// LogUtil.info(Name + "关闭刹车,关闭伺服");
// IOMove(IO_Type.UpDownAxis_BreakOn, IO_VALUE.LOW);
// ACServerManager.ServoOff(portName, slvAddr);
// //关闭串口,等下次重新打开
// // ACServerManager.ColsePort(portName);
// Thread.Sleep(100);
// IOMove(IO_Type.UpDownAxis_ServoOn, IO_VALUE.LOW);
//}
//private void ACAxisHomeMove(ConfigMoveAxis moveAxis)
//{
// moveAxis.TargetPosition = 0;
// LogUtil.info(moveAxis.DisplayStr + "speed[" + moveAxis.TargetSpeed + "]开始原点返回");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitAxis(moveAxis, true));
// ACServerManager.HomeMove(moveAxis.DeviceName, (short)moveAxis.GetAxisValue(), moveAxis.HomeHighSpeed);
//}
///// <summary>
///// 松下伺服电机运动
///// </summary>
//private void ACAxisMove(ConfigMoveAxis moveAxis, int targetPosition, int targetSpeed)
//{
// MoveInfo.WaitList.Add(WaitResultInfo.WaitAxis(moveAxis, targetPosition, targetSpeed));
// moveAxis.TargetPosition = targetPosition;
// ACServerManager.AbsMove(moveAxis.DeviceName, moveAxis.GetAxisValue(), targetPosition, targetSpeed);
//}
///// <summary>
///// 判断AC伺服电机轴是否运动完成
///// </summary>
//private bool ACAxisMoveIsEnd(ConfigMoveAxis moveAxis, int targetPosition, int targetSpeed, out string msg)
//{
// msg = "";
// string deviceName = moveAxis.DeviceName;
// short axisNo = moveAxis.GetAxisValue();
// bool isOk = ACServerManager.GetBusyStatus(deviceName, axisNo).Equals(0);
// int outCount = ACServerManager.GetActualtPosition(deviceName, axisNo);
// int errorCount = Math.Abs(outCount - targetPosition);
// if (isOk)
// {
// if (errorCount <= moveAxis.CanErrorCountMax)
// {
// return true;
// }
// //判断是否需要重新运动
// if (MoveInfo.CanWhileCount > 0)
// {
// LogUtil.error(moveAxis.DisplayStr + "目标位置[" + targetPosition + "]当前位置[" + outCount +
// "],误差过大,重新开始运动,剩余[" + MoveInfo.CanWhileCount + "]次");
// ACServerManager.AbsMove(moveAxis.DeviceName, moveAxis.GetAxisValue(), targetPosition, targetSpeed);
// MoveInfo.CanWhileCount--;
// }
// else
// {
// msg = Name + " storeMoveStep=" + MoveInfo.MoveStep + moveAxis.DisplayStr + "目标位置[" + targetPosition + "]当前位置[" + outCount
// + "],误差过大,需要报警";
// LogUtil.error(msg);
// }
// }
// return false;
//}
//private bool ACHomeMoveIsEnd(ConfigMoveAxis moveAxis, out string msg)
//{
// msg = "";
// if (ACServerManager.IsHomeMoveEnd(moveAxis.DeviceName, moveAxis.GetAxisValue()))
// {
// //原点完成并且位置=0
// int outCount = ACServerManager.GetActualtPosition(moveAxis.DeviceName, moveAxis.GetAxisValue());
// int errorCount = Math.Abs(outCount);
// if (errorCount <= moveAxis.CanErrorCountMax)
// {
// return true;
// }
// //判断是否需要重新运动
// if (MoveInfo.CanWhileCount > 0)
// {
// LogUtil.error(moveAxis.DisplayStr + "收到原点完成信号,当前位置[" + outCount + "],重新回原点,剩余[" + MoveInfo.CanWhileCount + "]次");
// //LogUtil.error( StoreName + moveAxis.DisplayStr + "重新回原点");
// ACServerManager.HomeMove(moveAxis.DeviceName, moveAxis.GetAxisValue(), moveAxis.HomeHighSpeed);
// MoveInfo.CanWhileCount--;
// }
// else
// {
// msg = Name + " storeMoveStep=" + MoveInfo.MoveStep + moveAxis.DisplayStr + "收到原点完成信号,当前位置[" + outCount + "],误差过大,需要报警";
// LogUtil.error(msg);
// }
// }
// return false;
//}
/// <summary>
/// 上下气缸移动到上升端
/// </summary>
......
......@@ -422,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
private void StartCheckFixture()
{
int num = TrayManager.GetNum(DeviceID);
if (IOValue(IO_Type.Fixture_Check_4).Equals(IO_VALUE.HIGH))
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH))
{
//托盘在两个阻挡内
if (num > 0)
......@@ -439,7 +439,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error(Name + "检测到check4亮,但是为获取到托盘号,StartCheckFixture失败~");
}
}
else if (IOValue(IO_Type.TrayCheck).Equals(IO_VALUE.HIGH))
else if (IOValue(IO_Type.StopCylinder_Check1).Equals(IO_VALUE.HIGH))
{
//托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
......@@ -451,7 +451,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
}
}
private void CheckFixtureProcess()
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.isCanProcessLine())
{
......@@ -469,11 +469,11 @@ namespace OnlineStore.DeviceLibrary
#region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_StopCylinder1Down))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_02_FixtureCheck 阻挡气缸1-1上升,等待夹具检测4=1)");
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_02_FixtureCheck 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Fixture_Check_4, IO_VALUE.HIGH));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_02_FixtureCheck))
{
......@@ -636,9 +636,9 @@ namespace OnlineStore.DeviceLibrary
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_10_StopCylinder2_Down))
{
CheckLog("托盘放行 SecondStoreMove:(MO_11_Tray_Check , 夹具检测1-4=0), 延时2秒)");
CheckLog("托盘放行 SecondStoreMove:(MO_11_Tray_Check , 阻挡2托盘检测=0), 延时2秒)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_Tray_Check);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Fixture_Check_4, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_Tray_Check))
{
......@@ -674,12 +674,6 @@ namespace OnlineStore.DeviceLibrary
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
LogUtil.info(Name + "【" + posId + "】" + msg);
}
public void LogInfo(string logInfo)
{
LogUtil.info(Name + logInfo);
}
}
}
......@@ -17,48 +17,19 @@ namespace OnlineStore.DeviceLibrary
{
public ProvidingEquip_Config Config;
/// <summary>
///出料装置后面分为两条移动线
/// </summary>
public LineMoveInfo SecondMoveInfo = null;
// public List<InOutParam> waitOutStoreList = new List<InOutParam>();
public List<InOutParam> waitInStoreList = new List<InOutParam>();
public object waitInListLock = "";
// public object waitOutListLock = "";
public ProvidingEquip(string cid, ProvidingEquip_Config config)
{
baseConfig = config;
this.DeviceID = config.Id;
this.Config = config;
Name = (" " + "_出料_" + DeviceID % 10 + " ").ToUpper();
//Name = (" " + cid + "_出料_" + DeviceID + " ").ToUpper();
IsDebug = config.IsDebug.Equals(1);
baseConfig = config;
Name = (" " + "_出料_" + DeviceID % 10 + " ").ToUpper();
Init();
//添加调试
if (config.IsDebug == 1)
{
IsDebug = true;
}
//this.Box = box;
UseAxis = false;
MoveInfo = new LineMoveInfo(DeviceID, "出料-" + DeviceID + "-MoveInfo");
SecondMoveInfo = new LineMoveInfo(DeviceID, "出料-" + DeviceID + "-SecondMoveInfo");
IsDebug = config.IsDebug.Equals(1);
//UpdownUseAxis = config.UpDownUseAxis.Equals(1);
//if (UpdownUseAxis)
//{
// Config.UpDown_Axis.TargetSpeed = Config.UpdownAxis_TargetSpeed;
// Config.UpDown_Axis.AddSpeed = Config.UpdownAxis_AddSpeed;
// Config.UpDown_Axis.DelSpeed = Config.UpdownAxis_DelSpeed;
// Config.UpDown_Axis.HomeAddSpeed = Config.UpdownAxis_HomeAddSpeed;
// Config.UpDown_Axis.HomeHighSpeed = Config.UpdownAxis_HomeHighSpeed;
// Config.UpDown_Axis.HomeLowSpeed = Config.UpdownAxis_HomeLowSpeed;
// portName = Config.UpDown_Axis.DeviceName;
// slvAddr = config.UpDown_Axis.GetAxisValue();
//}
SecondMoveInfo = new LineMoveInfo(DeviceID, "出料-" + DeviceID + "-SecondMoveInfo");
}
/// <summary>
......@@ -119,65 +90,8 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.ClampCylinder_Tighten, IO_VALUE.LOW);
runStatus = LineRunStatus.Wait;
}
/// <summary>
/// 运动处理
/// </summary>
protected override void BusyMoveProcess()
{
switch (MoveInfo.MoveType)
{
case LineMoveType.InStore:
InStoreProcess();
break;
case LineMoveType.OutStore:
OutStoreProcess();
break;
case LineMoveType.ReturnHome:
ReturnHomeProcess();
break;
case LineMoveType.Reset:
ResetProcess();
break;
//case StoreMoveType.StopMove:
// StopMoveProcess();
// break;
default: break;
}
if (MoveInfo.MoveType == LineMoveType.InStore || this.SecondMoveInfo.MoveType == LineMoveType.InStore)
{
InStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.OutStore || SecondMoveInfo.MoveType == LineMoveType.OutStore)
{
OutStoreProcess();
}
else if (MoveInfo.MoveType == LineMoveType.ReturnHome)
{
ReturnHomeProcess();
}
else if (MoveInfo.MoveType == LineMoveType.Reset)
{
ResetProcess();
}
else if (MoveInfo.MoveType == LineMoveType.StopMove)
{
StopMoveProcess();
}
if (SecondMoveInfo.MoveType.Equals(LineMoveType.CheckFixture))
{
// CheckFixtureProcess();
}
}
protected override void mainTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
TimerProcess();
}
public void TimerProcess()
public override void TimerProcess()
{
if (isInPro)
{
......@@ -199,8 +113,7 @@ namespace OnlineStore.DeviceLibrary
LineBean lineBean = LineManager.Line;
if (lineBean.isCanProcessLine() && IOManager.IOValue(IO_Type.DriveMotor_Run, 0).Equals(IO_VALUE.HIGH) && lineBean.runStatus >= LineRunStatus.Runing && lineBean.IsSleep.Equals(false))
{
// LogUtil.info("StartCheckFixture");
// StartCheckFixture();
StartCheckFixture();
}
}
IOTimeOutProcess();
......@@ -213,35 +126,7 @@ namespace OnlineStore.DeviceLibrary
isInPro = false;
}
private DateTime preIoTimerOutTime = DateTime.Now;
private void IOTimeOutProcess()
{
try
{
TimeSpan span = DateTime.Now - preIoTimerOutTime;
if (span.TotalSeconds > 1 && alarmType.Equals(LineAlarmType.IoSingleTimeOut))
{
preIoTimerOutTime = DateTime.Now;
if (runStatus < LineRunStatus.Runing || isInSuddenDown || isNoAirCheck)
{
return;
}
//若BOX和出料都没有在等待Io的过程中则此Io超时异常可能已经处理过
if (MoveInfo.IsInWait.Equals(false) && SecondMoveInfo.IsInWait.Equals(false))
{
LogUtil.info(Name + "清理信号超时报警【" + WarnMsg + "】 ");
alarmType = LineAlarmType.None;
WarnMsg = "";
}
}
}
catch (Exception ex)
{
LogUtil.error("IOTimeOutProcess出错:" + ex.ToString());
}
}
/// <summary>
/// 出料装置原点返回
......@@ -249,18 +134,14 @@ namespace OnlineStore.DeviceLibrary
public bool ReturnHome()
{
mainTimer.Stop();
//if (!RunAxis(true))
//{
// return false;
//}
alarmType = LineAlarmType.None;
runStatus = LineRunStatus.HomeMoving;
LogInfo("开始原点返回: (上下气缸回原点,阻挡气缸输入=0 )开始");
MoveInfo.NewMove(LineMoveType.ReturnHome);
//移载装置原点状态:顶升气缸下降端,前后气缸后退端,上下气缸上升端,夹料气缸放松端,阻挡气缸输入=0
//UpdownHomeMove();
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
if (IsDebug)
{
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
......@@ -283,15 +164,12 @@ namespace OnlineStore.DeviceLibrary
//如果正在出库中,需要减去托盘号
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore))
{
LogInfo("重置之前发现在出库执行中,减去托盘数;");
//LogInfo("重置之前发现在出库执行中,减去托盘数;");
//减去需要的盘数
TrayManager.DelNeedEmptyTrayNum();
//TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
// if (!RunAxis(true))
//{
// return false;
// }
alarmType = LineAlarmType.None;
//重置时清理盘号,从头开始判断
// preTrayNum = 0;
......@@ -301,8 +179,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.EndMove();
MoveInfo.NewMove(LineMoveType.Reset);
// UpdownHomeMove();
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
if (IsDebug)
{
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
......@@ -370,7 +247,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 原点返回处理
/// </summary>
protected void ReturnHomeProcess()
protected override void ReturnHomeProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -420,7 +297,7 @@ namespace OnlineStore.DeviceLibrary
}
}
private void StopMoveProcess()
protected override void StopMoveProcess()
{
if (MoveInfo.IsInWait)
{
......@@ -447,14 +324,7 @@ namespace OnlineStore.DeviceLibrary
}
case LineMoveStep.MH_OtherCylinder_Back:
{
LogInfo("停止运行完成,停止伺服!");
// CloseAxis();
//if (UpdownUseAxis)
//{
// LogInfo("停止运动:停止伺服");
// ACServerManager.SuddenStop(Config.UpDown_Axis);
//}
LogInfo("停止运行完成!");
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
break;
......@@ -473,7 +343,7 @@ namespace OnlineStore.DeviceLibrary
{
LogInfo("停止运动时出库执行中,减去托盘数;");
//减去需要的盘数
TrayManager.DelNeedEmptyTrayNum();
// TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove();
}
runStatus = LineRunStatus.Busy;
......@@ -488,85 +358,16 @@ namespace OnlineStore.DeviceLibrary
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
}
public void ChangeDebug()
public override void StartInStoreMove(InOutParam param)
{
if (Config.IsDebug == 1)
{
IsDebug = true;
//两个阻挡气缸下降
lineStatus = LineStatus.Debugging;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
LogInfo("从正常状态切换到调试状态!");
}
else if (lineStatus.Equals(LineStatus.Debugging))
{
IsDebug = false;
lineStatus = LineStatus.StoreOnline;
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
LogInfo("从调试状态切换到正常状态!");
}
}
/// <summary>
/// 下降所有阻挡气缸
/// </summary>
internal void OpenStopCylinder()
{
LogInfo("下降阻挡气缸,上下气缸上升,顶升气缸下降");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
//上下气缸上升
// if (UpdownUseAxis.Equals(false))
{
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.HIGH);
}
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.HIGH);
}
internal void CloseCylinderStop()
{
LogInfo("上升阻挡气缸,关闭上下气缸,顶升气缸IO");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
//上下气缸上升
IOMove(IO_Type.UpDownCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.UpDownCylinder_Up, IO_VALUE.LOW);
//顶升气缸下降
IOMove(IO_Type.TopCylinder_UP, IO_VALUE.LOW);
IOMove(IO_Type.TopCylinder_Down, IO_VALUE.LOW);
}
public override void Alarm(LineAlarmType alarmType, string alarmDetial, string alarmMsg, LineMoveType storeMoveType)
{
throw new NotImplementedException();
}
public override bool StartOutStoreMove(InOutParam param)
{
throw new NotImplementedException();
}
protected override void OutStoreProcess()
{
throw new NotImplementedException();
}
public override void StartInStoreMove(InOutParam param)
{
throw new NotImplementedException();
}
protected override void InStoreProcess()
{
throw new NotImplementedException();
{
}
}
}
using System;
using OnlineStore.Common;
using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......@@ -8,5 +10,368 @@ namespace OnlineStore.DeviceLibrary
{
partial class ProvidingEquip
{
#region 托盘检测
private void StartCheckFixture()
{
int num = TrayManager.GetNum(DeviceID);
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH))
{
//托盘在两个阻挡内
if (num > 0)
{
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_03_StopCylinder2Down 阻挡气缸1-1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
// SecondMoveInfo.EndStepWait();
}
else
{
LogUtil.error(Name + "检测到check4亮,但是为获取到托盘号,StartCheckFixture失败~");
}
}
else if (IOValue(IO_Type.StopCylinder_Check1).Equals(IO_VALUE.HIGH))
{
//托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_01_StopCylinder1Down);
CheckLog(" 托盘检测:料盘检测 SecondStoreMove(MIO_01_StopCylinder1Down阻挡气缸1-1下降 ,最多等待1秒)");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.Fixture_Check_4, IO_VALUE.HIGH));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1500));
}
}
private bool CheckIsNeedOutStore()
{
//TODO 判断是否是需要移栽出料的料盘
return false;
}
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.isCanProcessLine())
{
return;
}
if (SecondMoveInfo.IsInWait)
{
CheckWait(SecondMoveInfo);
}
if (SecondMoveInfo.IsInWait)
{
return;
}
#region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_StopCylinder1Down))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_02_FixtureCheck 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_02_FixtureCheck))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_03_StopCylinder2Down 阻挡气缸1-1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
// SecondMoveInfo.EndStepWait();
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_StopCylinder2Down))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_04_Wait ,等待编码信号稳定)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(500));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_04_Wait))
{
try
{
//判断是否需要顶升
bool isNeed = false;
//此处先对托盘号进行验证
currMoveTrayNum = TrayManager.GetNum(DeviceID);
bool isFull = TrayManager.IsFixTureFull(currMoveTrayNum);
if (TrayManager.RightTrayCode(currMoveTrayNum, preTrayNum, false))
{
//出料中,需要拦盘
if (CheckIsNeedOutStore())
{
//preTrayNum = currMoveTrayNum;
SecondMoveInfo.MoveParam = new InOutParam(currMoveTrayNum);
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_05_CodeRember);
SecondMoveInfo.EndStepWait();
return;
}
}
else
{
string msg = Name + " 托盘顺序错乱,上个托盘号【" + preTrayNum + "】当前托盘号 【" + currMoveTrayNum + "】最大盘号【" + TrayManager.MaxTrayNum + "】";
TrayManager.UpdateTrayNumError(DeviceID, msg);
LogUtil.error(msg);
return;
}
if (isNeed)
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_05_WaitTime 等待一秒钟)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_05_WaitTime);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
}
else
{
LogInfo(SecondMoveInfo.MoveNum + "***************上个托盘号【" + preTrayNum + "】,当前" + (isFull ? "有料托盘" : "空托盘") + "【" + currMoveTrayNum + "】没有出出料任务,放盘通过~");
// preTrayNum = currMoveTrayNum;
if (TrayManager.ErrorStoreId.Equals(DeviceID))
{
TrayManager.UpdateTrayNumError(-1, "");
}
CheckLog("托盘放行 SecondStoreMove:(MO_07_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_07_WaitCanGo);
//if (DeviceID.Equals(2))
//{
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitSideWay());
// SecondMoveInfo.OneWaitCanEndStep = true;
//}
}
}
catch (Exception ex)
{
LogUtil.error("判断托盘是否需要顶升出错:" + ex.ToString());
}
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_05_WaitTime))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_06_TopCylinderUp 顶升气缸上 升 )");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP);
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopCylinderUp))
{
CheckLog("托盘检测(流水线阻挡)SecondStoreMove:(MIO_07_TopCylinderUpWait ,顶升气缸上升时等待1秒钟,再下降)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_07_TopCylinderUpWait);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_07_TopCylinderUpWait))
{
CheckLog("托盘检测(流水线阻挡)*************** 托盘号【" + currMoveTrayNum + "】");
//托盘号正确
//preTrayNum = num;
bool isNeedMove = false;
//判断盘是空盘,空盘并且编号正确才需要放料盘过去
if (CheckIsNeedOutStore())
{
SecondMoveInfo.MoveParam = new InOutParam(currMoveTrayNum);
isNeedMove = true;
LogInfo(SecondMoveInfo.MoveNum + "*************** 托盘号【" + currMoveTrayNum + "】可以放出料托盘,正在出料中,移栽料盘");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_05_CodeRember);
SecondMoveInfo.EndStepWait();
}
else
{
//preTrayNum = num;
if (TrayManager.ErrorStoreId.Equals(DeviceID))
{
TrayManager.UpdateTrayNumError(-1, "");
}
CheckLog("托盘检测 SecondStoreMove:(MO_09_TopCylinder_Down ,托盘号【" + currMoveTrayNum + "】,直接放盘通过,顶升气缸下降)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_06_TopCylinder_Down);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
}
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_08_WaitInStore) && MoveInfo.MoveType.Equals(LineMoveType.None))
{
CheckLog("托盘放行 SecondStoreMove:(MIO_09_WaitLetFixtureGo ,等待移栽完成后放开阻挡)");
StartOutStoreMove(SecondMoveInfo.MoveParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_09_WaitLetFixtureGo);
}
#endregion
#region 不需要出出料,直接放行
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_06_TopCylinder_Down))
{
CheckLog("托盘放行 SecondStoreMove:(MO_07_WaitCanGo ,移栽2,需要判断是否可以放盘通过,最多等待10000)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_07_WaitCanGo);
if (DeviceID.Equals(2))
{
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(10000));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitSideWay());
SecondMoveInfo.OneWaitCanEndStep = true;
}
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_07_WaitCanGo))
{
CheckLog("托盘放行 SecondStoreMove:(MO_10_StopCylinder2_Down ,阻挡气缸1-2下降)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_10_StopCylinder2_Down);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH));
// SecondMoveInfo.EndStepWait();
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_10_StopCylinder2_Down))
{
CheckLog("托盘放行 SecondStoreMove:(MO_11_Tray_Check , 阻挡2托盘检测=0), 延时2秒)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_Tray_Check);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_Tray_Check))
{
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_12_StopCylinder_Back);
CheckLog("托盘放行 SecondStoreMove:(MO_12_StopCylinder_Back , 阻挡气缸1-2上升 )");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.LOW));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(200));
}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_12_StopCylinder_Back))
{
preTrayNum = currMoveTrayNum;
CheckLog("托盘放行 SecondStoreMove:(托盘放行结束) ");
// IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
SecondMoveInfo.EndMove();
}
#endregion
}
#endregion
#region 料盘移栽处理
public override bool StartOutStoreMove(InOutParam param)
{
string posId = param != null ? param.PosId : "";
//调试模式移栽装置不需要有操作
if (IsDebug)
{
LogInfo("需要出料【" + posId + "】处于调试模式,暂时不再进行出出料操作");
return false;
}
if (runStatus.Equals(LineRunStatus.Runing))
{
runStatus = LineRunStatus.Busy;
lineStatus = LineStatus.OutStoreExecute;
MoveInfo.MoveParam = param;
MoveInfo.NewMove(LineMoveType.OutStore);
LogInfo("出料【" + posId + "】处理(移栽):(PO_01_UpDownCylinderDown,上下气缸1下降)");
MoveInfo.NextMoveStep(LineMoveStep.PO_01_UpDownCylinderDown);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
return true;
}
else
{
LogUtil.error(Name + " 启动出料【" + posId + "】 失败,当前 storeStatus=" + runStatus);
return false;
}
}
protected override void OutStoreProcess()
{
if (MoveInfo.IsInWait)
{
CheckWait(MoveInfo);
}
if (SecondMoveInfo.IsInWait)
{
CheckWait(SecondMoveInfo);
}
if (MoveInfo.IsInWait)
{
return;
}
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_01_UpDownCylinderDown))
{
InStoreLog("出料:(PO_02_UpDownCylinderDownWait, 编码与仓位一致,上下气缸1下降后等待0.3秒再夹紧,防止没有下降到位就夹紧");
MoveInfo.NextMoveStep(LineMoveStep.PO_02_UpDownCylinderDownWait);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
}
//只有当BOX可以进行出出料时,移栽物品,防止卡住
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_02_UpDownCylinderDownWait))
{
InStoreLog("出料:(PO_02_UpDownCylinderDownWait,夹料气缸夹紧)");
MoveInfo.NextMoveStep(LineMoveStep.PO_03_ClampCylinderSlack);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_03_ClampCylinderSlack))
{
InStoreLog("出料:(PO_04_UpDownCylinderUp,上下气缸上升)");
MoveInfo.NextMoveStep(LineMoveStep.PO_04_UpDownCylinderUp);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_04_UpDownCylinderUp))
{
int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.PO_05_WaitBox);
LogInfo("出料PO_05_WaitBox【" + posId + "】处理(等待可以移栽) 更新盘号【" + num + "】为空盘");
MoveInfo.WaitList.Add(WaitResultInfo.WaitBoxCanReviceTray());
TrayManager.UpdateFixtureValue(num, false, 0);
//阻挡气缸移动
InStoreLog("放托盘(放开阻挡):SecondStoreMove=MO_09_TopCylinder_Down 物品已移走,顶升气缸1下降)");
SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_06_TopCylinder_Down);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_05_WaitBox))
{
InStoreLog("出料:(PO_06_BeforeAfterCylinderBefore,前后气缸前进)");
MoveInfo.NextMoveStep(LineMoveStep.PO_06_BeforeAfterCylinderBefore);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_BeforeAfterCylinderBefore))
{
InStoreLog("出料:(PO_07_UpDownCylinderDown ,上下气缸下降)");
MoveInfo.NextMoveStep(LineMoveStep.PO_07_UpDownCylinderDown);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_07_UpDownCylinderDown))
{
InStoreLog("出料: (PO_08_ClampCylinderTighten,夹料气缸放松)");
MoveInfo.NextMoveStep(LineMoveStep.PO_08_ClampCylinderTighten);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_08_ClampCylinderTighten))
{
InStoreLog("出料:(PO_09_UpdownCylinderUp,上下气缸上升)");
MoveInfo.NextMoveStep(LineMoveStep.PO_09_UpdownCylinderUp);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_09_UpdownCylinderUp))
{
InStoreLog("出料:(PO_10_BeforeAfterCylinderAfter,前后气缸后退,等待4000 )");
MoveInfo.NextMoveStep(LineMoveStep.PO_10_BeforeAfterCylinderAfter);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(4000));
}
else if( MoveInfo.MoveStep.Equals(LineMoveStep.PO_10_BeforeAfterCylinderAfter))
{
LogInfo("出料【" + posId + "】处理完成!");
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveInfo.EndMove();
}
}
#endregion
private void CheckLog(string msg)
{
LogUtil.debug(Name + msg);
}
private void InStoreLog(string msg)
{
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
LogUtil.info(Name + "【" + posId + "】" + msg);
}
private void OutStoreLog(string msg)
{
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
LogUtil.info(Name + "【" + posId + "】" + msg);
}
}
}
......@@ -185,13 +185,15 @@ namespace OnlineStore.DeviceLibrary
}
public static int GetNum(int subType )
{
int check1 = (int)IOManager.IOValue(IO_Type.Fixture_Check_1,subType);
int check2 = (int)IOManager.IOValue(IO_Type.Fixture_Check_2,subType);
int check3 = (int)IOManager.IOValue(IO_Type.Fixture_Check_3,subType);
//int check1 = (int)IOManager.IOValue(IO_Type.Fixture_Check_1,subType);
//int check2 = (int)IOManager.IOValue(IO_Type.Fixture_Check_2,subType);
//int check3 = (int)IOManager.IOValue(IO_Type.Fixture_Check_3,subType);
string value = "" + check3 + check2 + check1 + "";
int panHao = Convert.ToInt16(value, 2);
return panHao;
//string value = "" + check3 + check2 + check1 + "";
//int panHao = Convert.ToInt16(value, 2);
//return panHao;
return subType;
}
}
......
......@@ -248,7 +248,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
MO_10_StopCylinder2_Down = 3110,
/// <summary>
/// 移载(流水线)装置出库处理, 夹具检测1-4=0,
/// 移载(流水线)装置出库处理, 阻挡2托盘检测=0,
/// </summary>
MO_11_Tray_Check = 3111,
/// <summary>
......@@ -377,7 +377,7 @@ namespace OnlineStore.DeviceLibrary
#endregion
#region 横移轨道处理
#region 横移轨道处理 5000 开始
SW00_Wait=5000,
/// <summary>
/// 阻挡气缸下降
......@@ -422,6 +422,56 @@ namespace OnlineStore.DeviceLibrary
#endregion
#region 出料装置移栽出料,20000开始
/// <summary>
/// 上下气缸下降
/// </summary>
PO_01_UpDownCylinderDown =20001,
/// <summary>
/// 等待0.3秒后再夹紧
/// </summary>
PO_02_UpDownCylinderDownWait = 20002,
/// <summary>
/// 夹料气缸夹紧
/// </summary>
PO_03_ClampCylinderSlack=20003,
/// <summary>
/// 上下气缸上升
/// </summary>
PO_04_UpDownCylinderUp = 20004,
/// <summary>
/// 等待可以移栽料盘到流水线
/// </summary>
PO_05_WaitBox = 20005,
/// <summary>
/// 前后气缸前进
/// </summary>
PO_06_BeforeAfterCylinderBefore = 20006,
/// <summary>
/// 上下气缸下降
/// </summary>
PO_07_UpDownCylinderDown = 20007,
/// <summary>
/// 夹料气缸放松
/// </summary>
PO_08_ClampCylinderTighten = 20008,
/// <summary>
/// 上下气缸上升
/// </summary>
PO_09_UpdownCylinderUp = 20009,
/// <summary>
/// 前后气缸后退,等待4000
/// </summary>
PO_10_BeforeAfterCylinderAfter = 20010,
#endregion
}
public enum LineAlarmType
......
......@@ -290,7 +290,16 @@ namespace OnlineStore.LoadCSVLibrary
public static string BatchAxis_BreakOn = "BatchAxis_BreakOn";
public static string BatchAxis_ServoOn = "BatchAxis_ServoOn";
/// <summary>
/// DI,1,进仓01阻挡1托盘检测,StopCylinder_Check1,0,192.168.200.29,0,进仓01阻挡1托盘检测,X261,X261
/// </summary>
public static string StopCylinder_Check1 = "StopCylinder_Check1";
/// <summary>
/// DI,1, 进仓01阻挡2托盘检测, StopCylinder_Check2,1,192.168.200.29,0, 进仓01阻挡2托盘检测, X262, X262
/// </summary>
public static string StopCylinder_Check2 = "StopCylinder_Check2";
}
public enum IO_VALUE
{
......
......@@ -9,6 +9,8 @@ namespace OnlineStore.LoadCSVLibrary
{
public class StoreConfig
{
public static Dictionary<int, Dictionary<string, ConfigIO>> SubDIList { get; set; }
public static Dictionary<int, Dictionary<string, ConfigIO>> SubDOList { get; set; }
public static readonly ILog LOGGER = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
/// <summary>
/// ID
......@@ -40,8 +42,6 @@ namespace OnlineStore.LoadCSVLibrary
public Dictionary<int,Dictionary<string,ConfigIO>> SubDIList { get; set; }
public Dictionary<int, Dictionary<string, ConfigIO>> SubDOList { get; set; }
/// <summary>
......@@ -83,8 +83,8 @@ namespace OnlineStore.LoadCSVLibrary
{
DIList = new Dictionary<string, ConfigIO>();
DOList = new Dictionary<string, ConfigIO>();
SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>();
SubDOList = new Dictionary<int, Dictionary<string, ConfigIO>>();
// SubDIList = new Dictionary<int, Dictionary<string, ConfigIO>>();
// SubDOList = new Dictionary<int, Dictionary<string, ConfigIO>>();
IOIPList = new List<string>();
//取得属性集合
PropertyInfo[] props = GetType().GetProperties();
......@@ -256,18 +256,18 @@ namespace OnlineStore.LoadCSVLibrary
}
}
public void SetIO(Line_Config Config, int subType)
public void SetIO( int subType)
{
Dictionary<string, ConfigIO> doList = new Dictionary<string, ConfigIO>();
Dictionary<string, ConfigIO> diList = new Dictionary<string, ConfigIO>();
if (Config.SubDIList.ContainsKey(subType))
if (StoreConfig.SubDIList.ContainsKey(subType))
{
diList = Config.SubDIList[subType];
diList = StoreConfig.SubDIList[subType];
}
if (Config.SubDOList.ContainsKey(subType))
if (StoreConfig.SubDOList.ContainsKey(subType))
{
doList = Config.SubDOList[subType];
doList = StoreConfig.SubDOList[subType];
}
foreach (string key in diList.Keys)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!