Commit ed18caa3 LN

1

1 个父辈 2fff9226
正在显示 27 个修改的文件 包含 188 行增加161 行删除
......@@ -393,7 +393,7 @@ namespace OnlineStore.AssemblyLine
}
private void btnToroid_TopCylinder_Click(object sender, EventArgs e)
{
BtnMove(btnToroid_TopCylinder, "环形线横移顶升上升", "环形线横移顶升下降", IO_Type.Toroid_TopCylinder_Down, IO_Type.Toroid_TopCylinder_Up);
BtnMove(btnSWTop, "环形线横移顶升上升", "环形线横移顶升下降", IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
}
private void btnFL_TopCylinder_Click(object sender, EventArgs e)
......@@ -402,7 +402,7 @@ namespace OnlineStore.AssemblyLine
}
private void Toroid_LocationCylinder_Click(object sender, EventArgs e)
{
BtnMove(Toroid_LocationCylinder, "SL升降盘定位气缸前进", "SL升降盘定位气缸后退", IO_Type.Toroid_LocationCylinder_Down, IO_Type.Toroid_LocationCylinder_Up);
BtnMove(btnSwLocationCylinder, "环形线横移定位上升", "环形线横移定位下降", IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
}
private void btnOpenAxis_Click(object sender, EventArgs e)
{
......
......@@ -233,7 +233,7 @@
this.groupBox4.Controls.Add(this.tableLayoutPanel2);
this.groupBox4.Location = new System.Drawing.Point(251, 6);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(240, 634);
this.groupBox4.Size = new System.Drawing.Size(240, 764);
this.groupBox4.TabIndex = 104;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "DO列表";
......@@ -250,7 +250,7 @@
this.tableLayoutPanel2.RowCount = 2;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 614);
this.tableLayoutPanel2.Size = new System.Drawing.Size(229, 744);
this.tableLayoutPanel2.TabIndex = 103;
//
// groupBox3
......@@ -260,7 +260,7 @@
this.groupBox3.Controls.Add(this.tableLayoutPanel1);
this.groupBox3.Location = new System.Drawing.Point(6, 6);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(240, 634);
this.groupBox3.Size = new System.Drawing.Size(240, 764);
this.groupBox3.TabIndex = 103;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "DI列表";
......@@ -277,7 +277,7 @@
this.tableLayoutPanel1.RowCount = 2;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 614);
this.tableLayoutPanel1.Size = new System.Drawing.Size(229, 744);
this.tableLayoutPanel1.TabIndex = 102;
//
// groupBox5
......@@ -293,7 +293,7 @@
this.groupBox5.Controls.Add(this.btnTopUp);
this.groupBox5.Location = new System.Drawing.Point(897, 6);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(382, 208);
this.groupBox5.Size = new System.Drawing.Size(459, 208);
this.groupBox5.TabIndex = 255;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "IO操作测试";
......@@ -488,7 +488,7 @@
this.tabControl1.Location = new System.Drawing.Point(5, 69);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(1296, 676);
this.tabControl1.Size = new System.Drawing.Size(1373, 806);
this.tabControl1.TabIndex = 257;
//
// tabPage1
......@@ -501,19 +501,22 @@
this.tabPage1.Location = new System.Drawing.Point(4, 26);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(1288, 646);
this.tabPage1.Size = new System.Drawing.Size(1365, 776);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = " IO列表 ";
this.tabPage1.UseVisualStyleBackColor = true;
//
// groupBox6
//
this.groupBox6.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox6.Controls.Add(this.lblTrayNum);
this.groupBox6.Controls.Add(this.lblInstoreList);
this.groupBox6.Controls.Add(this.lblThisSta);
this.groupBox6.Location = new System.Drawing.Point(498, 221);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(781, 419);
this.groupBox6.Size = new System.Drawing.Size(858, 543);
this.groupBox6.TabIndex = 278;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "消息";
......@@ -542,6 +545,8 @@
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.chbDebug);
this.panel1.Controls.Add(this.lblStoreStatus);
this.panel1.Controls.Add(this.btnOutStore);
......@@ -550,14 +555,14 @@
this.panel1.Controls.Add(this.btnReset);
this.panel1.Location = new System.Drawing.Point(2, 1);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1295, 68);
this.panel1.Size = new System.Drawing.Size(1372, 68);
this.panel1.TabIndex = 258;
//
// FrmProvidingEquip
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1307, 751);
this.ClientSize = new System.Drawing.Size(1384, 881);
this.Controls.Add(this.panel1);
this.Controls.Add(this.tabControl1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
......
......@@ -2,6 +2,7 @@
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,对应的横移模块,SidesWayNum,1,,,,,
,,,,,,,,,
AXIS,0,批量上料轴,Batch_Axis,2,COM1,0,,,
PRO,0,批量上料轴待机点 P1,BatchAxisP1,2000,,,,,
......@@ -52,19 +53,19 @@ DI,0,SL1上料横移气缸取料端,SL_FeedSideWayCylinder_Take,5,192.168.200.22,0,SL1上
DI,0,SL1上料横移气缸放料端,SL_FeedSideWayCylinder_Emptying,6,192.168.200.22,0,SL1上料横移气缸放料端,X127,X127
DI,0,SL1上料气缸放松端,SL_FeedCylinder_Slack,7,192.168.200.22,0,SL1上料气缸放松端,X128,X128
DI,0,SL1上料气缸夹紧端,SL_FeedCylinder_Tighten,8,192.168.200.22,0,SL1上料气缸夹紧端,X129,X129
DI,0,环形线横移1托盘检测,Toroid_SideWay_TrayCheck,9,192.168.200.22,0,环形线横移1托盘检测,X130,X130
DI,0,环形线横移1料盘检测1,Toroid_SideWay_ReelCheck,10,192.168.200.22,0,环形线横移1料盘检测1,X131,X131
DI,0,环形线横移1顶升上升端,Toroid_TopCylinder_Up,11,192.168.200.22,0,环形线横移1顶升上升端,X132,X132
DI,0,环形线横移1顶升下降端,Toroid_TopCylinder_Down,12,192.168.200.22,0,环形线横移1顶升下降端,X133,X133
DI,0,环形线横移1定位上升端,Toroid_LocationCylinder_Up,13,192.168.200.22,0,环形线横移1定位上升端,X134,X134
DI,0,环形线横移1定位下降端,Toroid_LocationCylinder_Down,14,192.168.200.22,0,环形线横移1定位下降端,X135,X135
DI,1000,环形线横移1托盘检测,SW1_SideWay_TrayCheck,9,192.168.200.22,0,环形线横移1托盘检测,X130,X130
DI,1000,环形线横移1料盘检测1,SW1_SideWay_ReelCheck,10,192.168.200.22,0,环形线横移1料盘检测1,X131,X131
DI,1000,环形线横移1顶升上升端,SW1_TopCylinder_Up,11,192.168.200.22,0,环形线横移1顶升上升端,X132,X132
DI,1000,环形线横移1顶升下降端,SW1_TopCylinder_Down,12,192.168.200.22,0,环形线横移1顶升下降端,X133,X133
DI,1000,环形线横移1定位上升端,SW1_LocationCylinder_Up,13,192.168.200.22,0,环形线横移1定位上升端,X134,X134
DI,1000,环形线横移1定位下降端,SW1_LocationCylinder_Down,14,192.168.200.22,0,环形线横移1定位下降端,X135,X135
DI,0,SL1线体出口横移检测,SL_SideWay_OutCheck,15,192.168.200.22,0,SL1线体出口横移检测,X136,X136
,,,,,,,,,
DO,0,SL1状态指示灯,SL_HddLed,0,192.168.200.21,0,SL1状态指示灯,Y101,Y101
DO,0,SL1进料线体运转,SL_Line_Run,1,192.168.200.21,0,SL1进料线体运转,Y102,Y102
DO,0,SL1线体定位横移电机运转,SL_LocationSideWay_Run,2,192.168.200.21,0,SL1线体定位横移电机运转,Y103,Y103
DO,0,SL1线体出口横移电机运转,SL_OutSideWay_Run,3,192.168.200.21,0,SL1线体出口横移电机运转,Y104,Y104
DO,0,环形线横移1电机运转,Toroid_Motor_Run,4,192.168.200.21,0,环形线横移1电机运转,Y105,Y105
DO,1000,环形线横移1电机运转,SW1_Motor_Run,4,192.168.200.21,0,环形线横移1电机运转,Y105,Y105
DO,0,SL1进料阻挡下降SOL,SL_Entry_StopDown,5,192.168.200.21,0,SL1进料阻挡下降SOL,Y106,Y106
DO,0,SL1缓冲阻挡,SL_Buffer_StopDown,6,192.168.200.21,0,SL1缓冲阻挡,Y107,Y107
DO,0,SL1出料阻挡下降SOL,SL_Out_StopDown,7,192.168.200.21,0,SL1出料阻挡下降SOL,Y108,Y108
......@@ -80,10 +81,10 @@ DO,0,SL1上料气缸放松SOL,SL_FeedCylinder_Slack,0,192.168.200.22,0,SL1上料气缸放松
DO,0,SL1上料气缸夹紧SOL,SL_FeedCylinder_Tighten,1,192.168.200.22,0,SL1上料气缸夹紧SOL,Y122,Y122
DO,0,SL1升降盘定位气缸1前进SOL,SL_TrayLocationCylinder_Before,2,192.168.200.22,0,SL1升降盘定位气缸1前进SOL,Y123,Y123
DO,0,SL1升降盘定位气缸1后退SOL,SL_TrayLocationCylinder_After,3,192.168.200.22,0,SL1升降盘定位气缸1后退SOL,Y124,Y124
DO,0,环形线横移1顶升上升SOL,Toroid_TopCylinder_Up,4,192.168.200.22,0,环形线横移1顶升上升SOL,Y125,Y125
DO,0,环形线横移1顶升下降SOL,Toroid_TopCylinder_Down,5,192.168.200.22,0,环形线横移1顶升下降SOL,Y126,Y126
DO,0,环形线横移1定位上升SOL,Toroid_LocationCylinder_Up,6,192.168.200.22,0,环形线横移1定位上升SOL,Y127,Y127
DO,0,环形线横移1定位下降SOL,Toroid_LocationCylinder_Down,7,192.168.200.22,0,环形线横移1定位下降SOL,Y128,Y128
DO,1000,环形线横移1顶升上升SOL,SW1_TopCylinder_Up,4,192.168.200.22,0,环形线横移1顶升上升SOL,Y125,Y125
DO,1000,环形线横移1顶升下降SOL,SW1_TopCylinder_Down,5,192.168.200.22,0,环形线横移1顶升下降SOL,Y126,Y126
DO,1000,环形线横移1定位上升SOL,SW1_LocationCylinder_Up,6,192.168.200.22,0,环形线横移1定位上升SOL,Y127,Y127
DO,1000,环形线横移1定位下降SOL,SW1_LocationCylinder_Down,7,192.168.200.22,0,环形线横移1定位下降SOL,Y128,Y128
DO,0,SL1提升伺服刹车ON,SL_UpAxis_BreakOn,8,192.168.200.22,0,SL1提升伺服刹车ON,Y129,Y129
DO,0,SL1移载1伺服刹车ON,SL_MoveAxis_BreakOn,9,192.168.200.22,0,SL1移载1伺服刹车ON,Y130,Y130
DO,0,SL1提升伺服运转ON,SL_UpAxis_ServoOn,10,192.168.200.22,0,SL1提升伺服运转ON,Y131,Y131
......
......@@ -2,6 +2,7 @@
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,对应的横移模块,SidesWayNum,0,,,,,
,,,,,,,,,
AXIS,0,批量上料轴,Batch_Axis,2,COM1,0,,,
PRO,0,批量上料轴待机点 P1,BatchAxisP1,2000,,,,,
......
......@@ -2,6 +2,7 @@
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,对应的横移模块,SidesWayNum,2,,,,,
,,,,,,,,,
AXIS,0,批量上料轴,Batch_Axis,2,COM1,0,,,
PRO,0,批量上料轴待机点 P1,BatchAxisP1,2000,,,,,
......@@ -52,19 +53,19 @@ DI,0,SL3上料横移气缸取料端,SL_FeedSideWayCylinder_Take,5,192.168.200.26,0,SL3上
DI,0,SL3上料横移气缸放料端,SL_FeedSideWayCylinder_Emptying,6,192.168.200.26,0,SL3上料横移气缸放料端,X207,X207
DI,0,SL3上料气缸放松端,SL_FeedCylinder_Slack,7,192.168.200.26,0,SL3上料气缸放松端,X208,X208
DI,0,SL3上料气缸夹紧端,SL_FeedCylinder_Tighten,8,192.168.200.26,0,SL3上料气缸夹紧端,X209,X209
DI,0,环形线横移2托盘检测,Toroid_SideWay_TrayCheck,9,192.168.200.26,0,环形线横移2托盘检测,X210,X210
DI,0,环形线横移2料盘检测1,Toroid_SideWay_ReelCheck,10,192.168.200.26,0,环形线横移2料盘检测1,X211,X211
DI,0,环形线横移2顶升上升端,Toroid_TopCylinder_Up,11,192.168.200.26,0,环形线横移2顶升上升端,X212,X212
DI,0,环形线横移2顶升下降端,Toroid_TopCylinder_Down,12,192.168.200.26,0,环形线横移2顶升下降端,X213,X213
DI,0,环形线横移2定位上升端,Toroid_LocationCylinder_Up,13,192.168.200.26,0,环形线横移2定位上升端,X214,X214
DI,0,环形线横移2定位下降端,Toroid_LocationCylinder_Down,14,192.168.200.26,0,环形线横移2定位下降端,X215,X215
DI,1000,环形线横移2托盘检测,SW2_TrayCheck,9,192.168.200.26,0,环形线横移2托盘检测,X210,X210
DI,1000,环形线横移2料盘检测1,SW2_ReelCheck,10,192.168.200.26,0,环形线横移2料盘检测1,X211,X211
DI,1000,环形线横移2顶升上升端,SW2_TopCylinder_Up,11,192.168.200.26,0,环形线横移2顶升上升端,X212,X212
DI,1000,环形线横移2顶升下降端,SW2_TopCylinder_Down,12,192.168.200.26,0,环形线横移2顶升下降端,X213,X213
DI,1000,环形线横移2定位上升端,SW2_LocationCylinder_Up,13,192.168.200.26,0,环形线横移2定位上升端,X214,X214
DI,1000,环形线横移2定位下降端,SW2_LocationCylinder_Down,14,192.168.200.26,0,环形线横移2定位下降端,X215,X215
DI,0,SL3线体出口横移检测,SL_SideWay_OutCheck,15,192.168.200.26,0,SL3线体出口横移检测,X216,X216
,,,,,,,,,
DO,0,SL3状态指示灯,SL_HddLed,0,192.168.200.25,0,SL3状态指示灯,Y181,Y181
DO,0,SL3进料线体运转,SL_Line_Run,1,192.168.200.25,0,SL3进料线体运转,Y182,Y182
DO,0,SL3线体定位横移电机运转,SL_LocationSideWay_Run,2,192.168.200.25,0,SL3线体定位横移电机运转,Y183,Y183
DO,0,SL3线体出口横移电机运转,SL_OutSideWay_Run,3,192.168.200.25,0,SL3线体出口横移电机运转,Y184,Y184
DO,0,环形线横移2电机运转,Toroid_Motor_Run,4,192.168.200.25,0,环形线横移2电机运转,Y185,Y185
DO,1000,环形线横移2电机运转,SW2_Motor_Run,4,192.168.200.25,0,环形线横移2电机运转,Y185,Y185
DO,0,SL3进料阻挡下降SOL,SL_Entry_StopDown,5,192.168.200.25,0,SL3进料阻挡下降SOL,Y186,Y186
DO,0,SL3缓冲阻挡,SL_Buffer_StopDown,6,192.168.200.25,0,SL3缓冲阻挡,Y187,Y187
DO,0,SL3出料阻挡下降SOL,SL_Out_StopDown,7,192.168.200.25,0,SL3出料阻挡下降SOL,Y188,Y188
......@@ -80,10 +81,10 @@ DO,0,SL3上料气缸放松SOL,SL_FeedCylinder_Slack,0,192.168.200.26,0,SL3上料气缸放松
DO,0,SL3上料气缸夹紧SOL,SL_FeedCylinder_Tighten,1,192.168.200.26,0,SL3上料气缸夹紧SOL,Y202,Y202
DO,0,SL3升降盘定位气缸1前进SOL,SL_TrayLocationCylinder_Before,2,192.168.200.26,0,SL3升降盘定位气缸1前进SOL,Y203,Y203
DO,0,SL3升降盘定位气缸1后退SOL,SL_TrayLocationCylinder_After,3,192.168.200.26,0,SL3升降盘定位气缸1后退SOL,Y204,Y204
DO,0,环形线横移2顶升上升SOL,Toroid_TopCylinder_Up,4,192.168.200.26,0,环形线横移2顶升上升SOL,Y205,Y205
DO,0,环形线横移2顶升下降SOL,Toroid_TopCylinder_Down,5,192.168.200.26,0,环形线横移2顶升下降SOL,Y206,Y206
DO,0,环形线横移2定位上升SOL,Toroid_LocationCylinder_Up,6,192.168.200.26,0,环形线横移2定位上升SOL,Y207,Y207
DO,0,环形线横移2定位下降SOL,Toroid_LocationCylinder_Down,7,192.168.200.26,0,环形线横移2定位下降SOL,Y208,Y208
DO,1000,环形线横移2顶升上升SOL,SW2_TopCylinder_Up,4,192.168.200.26,0,环形线横移2顶升上升SOL,Y205,Y205
DO,1000,环形线横移2顶升下降SOL,SW2_TopCylinder_Down,5,192.168.200.26,0,环形线横移2顶升下降SOL,Y206,Y206
DO,1000,环形线横移2定位上升SOL,SW2_LocationCylinder_Up,6,192.168.200.26,0,环形线横移2定位上升SOL,Y207,Y207
DO,1000,环形线横移2定位下降SOL,SW2_LocationCylinder_Down,7,192.168.200.26,0,环形线横移2定位下降SOL,Y208,Y208
DO,0,SL3提升伺服刹车ON,SL_UpAxis_BreakOn,8,192.168.200.26,0,SL3提升伺服刹车ON,Y209,Y209
DO,0,SL3移载3伺服刹车ON,SL_MoveAxis_BreakOn,9,192.168.200.26,0,SL3移载3伺服刹车ON,Y210,Y210
DO,0,SL3提升伺服运转ON,SL_UpAxis_ServoOn,10,192.168.200.26,0,SL3提升伺服运转ON,Y211,Y211
......
......@@ -2,6 +2,7 @@
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
PRO,0,扫码的相机名称(多个用#分隔),CameraNameList,Name1#Name1,,,,,
PRO,0,移栽上下运动是否使用伺服,UpDownUseAxis,1,,,,,
PRO,0,对应的横移模块,SidesWayNum,3,,,,,
,,,,,,,,,
AXIS,0,批量上料轴,Batch_Axis,2,COM1,0,,,
PRO,0,批量上料轴待机点 P1,BatchAxisP1,2000,,,,,
......@@ -52,19 +53,19 @@ DI,0,SL4上料横移气缸取料端,SL_FeedSideWayCylinder_Take,5,192.168.200.28,0,SL4上
DI,0,SL4上料横移气缸放料端,SL_FeedSideWayCylinder_Emptying,6,192.168.200.28,0,SL4上料横移气缸放料端,X247,X247
DI,0,SL4上料气缸放松端,SL_FeedCylinder_Slack,7,192.168.200.28,0,SL4上料气缸放松端,X248,X248
DI,0,SL4上料气缸夹紧端,SL_FeedCylinder_Tighten,8,192.168.200.28,0,SL4上料气缸夹紧端,X249,X249
DI,0,环形线横移3托盘检测,Toroid_SideWay_TrayCheck,9,192.168.200.28,0,环形线横移3托盘检测,X250,X250
DI,0,环形线横移3料盘检测1,Toroid_SideWay_ReelCheck,10,192.168.200.28,0,环形线横移3料盘检测1,X251,X251
DI,0,环形线横移3顶升上升端,Toroid_TopCylinder_Up,11,192.168.200.28,0,环形线横移3顶升上升端,X252,X252
DI,0,环形线横移3顶升下降端,Toroid_TopCylinder_Down,12,192.168.200.28,0,环形线横移3顶升下降端,X253,X253
DI,0,环形线横移3定位上升端,Toroid_LocationCylinder_Up,13,192.168.200.28,0,环形线横移3定位上升端,X254,X254
DI,0,环形线横移3定位下降端,Toroid_LocationCylinder_Down,14,192.168.200.28,0,环形线横移3定位下降端,X255,X255
DI,1000,环形线横移3托盘检测,SW3_TrayCheck,9,192.168.200.28,0,环形线横移3托盘检测,X250,X250
DI,1000,环形线横移3料盘检测1,SW3_ReelCheck,10,192.168.200.28,0,环形线横移3料盘检测1,X251,X251
DI,1000,环形线横移3顶升上升端,SW3_TopCylinder_Up,11,192.168.200.28,0,环形线横移3顶升上升端,X252,X252
DI,1000,环形线横移3顶升下降端,SW3_TopCylinder_Down,12,192.168.200.28,0,环形线横移3顶升下降端,X253,X253
DI,1000,环形线横移3定位上升端,SW3_LocationCylinder_Up,13,192.168.200.28,0,环形线横移3定位上升端,X254,X254
DI,1000,环形线横移3定位下降端,SW3_LocationCylinder_Down,14,192.168.200.28,0,环形线横移3定位下降端,X255,X255
DI,0,SL4线体出口横移检测,SL_SideWay_OutCheck,15,192.168.200.28,0,SL4线体出口横移检测,X256,X256
,,,,,,,,,
DO,0,SL4状态指示灯,SL_HddLed,0,192.168.200.27,0,SL4状态指示灯,Y221,Y221
DO,0,SL4进料线体运转,SL_Line_Run,1,192.168.200.27,0,SL4进料线体运转,Y222,Y222
DO,0,SL4线体定位横移电机运转,SL_LocationSideWay_Run,2,192.168.200.27,0,SL4线体定位横移电机运转,Y223,Y223
DO,0,SL4线体出口横移电机运转,SL_OutSideWay_Run,3,192.168.200.27,0,SL4线体出口横移电机运转,Y224,Y224
DO,0,横移4电机运转,Toroid_Motor_Run,4,192.168.200.27,0,横移4电机运转,Y225,Y225
DO,1000,环行线横移3电机运转,SW3_Motor_Run,4,192.168.200.27,0,环行线横移3电机运转,Y225,Y225
DO,0,SL4进料阻挡下降SOL,SL_Entry_StopDown,5,192.168.200.27,0,SL4进料阻挡下降SOL,Y226,Y226
DO,0,SL4缓冲阻挡,SL_Buffer_StopDown,6,192.168.200.27,0,SL4缓冲阻挡,Y227,Y227
DO,0,SL4出料阻挡下降SOL,SL_Out_StopDown,7,192.168.200.27,0,SL4出料阻挡下降SOL,Y228,Y228
......@@ -80,10 +81,10 @@ DO,0,SL4上料气缸放松SOL,SL_FeedCylinder_Slack,0,192.168.200.28,0,SL4上料气缸放松
DO,0,SL4上料气缸夹紧SOL,SL_FeedCylinder_Tighten,1,192.168.200.28,0,SL4上料气缸夹紧SOL,Y242,Y242
DO,0,SL4升降盘定位气缸1前进SOL,SL_TrayLocationCylinder_Before,2,192.168.200.28,0,SL4升降盘定位气缸1前进SOL,Y243,Y243
DO,0,SL4升降盘定位气缸1后退SOL,SL_TrayLocationCylinder_After,3,192.168.200.28,0,SL4升降盘定位气缸1后退SOL,Y244,Y244
DO,0,环形线横移3顶升上升SOL,Toroid_TopCylinder_Up,4,192.168.200.28,0,环形线横移3顶升上升SOL,Y245,Y245
DO,0,环形线横移3顶升下降SOL,Toroid_TopCylinder_Down,5,192.168.200.28,0,环形线横移3顶升下降SOL,Y246,Y246
DO,0,环形线横移3定位上升SOL,Toroid_LocationCylinder_Up,6,192.168.200.28,0,环形线横移3定位上升SOL,Y247,Y247
DO,0,环形线横移3定位下降SOL,Toroid_LocationCylinder_Down,7,192.168.200.28,0,环形线横移3定位下降SOL,Y248,Y248
DO,1000,环形线横移3顶升上升SOL,SW3_TopCylinder_Up,4,192.168.200.28,0,环形线横移3顶升上升SOL,Y245,Y245
DO,1000,环形线横移3顶升下降SOL,SW3_TopCylinder_Down,5,192.168.200.28,0,环形线横移3顶升下降SOL,Y246,Y246
DO,1000,环形线横移3定位上升SOL,SW3_LocationCylinder_Up,6,192.168.200.28,0,环形线横移3定位上升SOL,Y247,Y247
DO,1000,环形线横移3定位下降SOL,SW3_LocationCylinder_Down,7,192.168.200.28,0,环形线横移3定位下降SOL,Y248,Y248
DO,0,SL4提升伺服刹车ON,SL_UpAxis_BreakOn,8,192.168.200.28,0,SL4提升伺服刹车ON,Y249,Y249
DO,0,SL4移载4伺服刹车ON,SL_MoveAxis_BreakOn,9,192.168.200.28,0,SL4移载4伺服刹车ON,Y250,Y250
DO,0,SL4提升伺服运转ON,SL_UpAxis_ServoOn,10,192.168.200.28,0,SL4提升伺服运转ON,Y251,Y251
......
......@@ -23,8 +23,8 @@ DI,0,联动,Start_BTN,2,192.168.200.11,0,联动,X003,X003
DI,0,气压检测,Airpressure_Check,3,192.168.200.11,0,气压检测,X004,X004
DI,0,NG料盘推出气缸前进端,NGCylinder_Before,4,192.168.200.11,0,NG料盘推出气缸前进端,X005,X005
DI,0,NG料盘推出气缸后退端,NGCylinder_After,5,192.168.200.11,0,NG料盘推出气缸后退端,X006,X006
DI,0,环形线横移4定位上升端,TopCylinder_UP,6,192.168.200.11,0,环形线横移4定位上升端,X007,X007
DI,0,环形线横移4定位下降端,TopCylinder_Down,7,192.168.200.11,0,环形线横移4定位下降端,X008,X008
DI,0,环形线横移4定位上升端,SW4_LocationCylinder_Up,6,192.168.200.11,0,环形线横移4定位上升端,X007,X007
DI,0,环形线横移4定位下降端,SW4_LocationCylinder_Down,7,192.168.200.11,0,环形线横移4定位下降端,X008,X008
,0,,,8,192.168.200.11,0,,X009,X009
,0,,,9,192.168.200.11,0,,X010,X010
,0,,,10,192.168.200.11,0,,X011,X011
......@@ -38,15 +38,15 @@ DO,0,待机状态(指示灯),AutoRun_HddLed,0,192.168.200.11,0,待机状态(指示灯),Y00
DO,0,运行状态(指示灯),RunSign_HddLed,1,192.168.200.11,0,运行状态(指示灯),Y002,Y002
DO,0,故障状态(指示灯),Alarm_HddLed,2,192.168.200.11,0,故障状态(指示灯),Y003,Y003
DO,0,故障状态(蜂鸣器),Alarm_Buzzer,3,192.168.200.11,0,故障状态(蜂鸣器),Y004,Y004
DO,0,驱动电机1正转,DriveMotor_1,4,192.168.200.11,0,驱动电机1正转,Y005,Y005
DO,0,驱动电机2正转,DriveMotor_2,5,192.168.200.11,0,驱动电机2正转,Y006,Y006
DO,0,驱动电机3正转,DriveMotor_3,6,192.168.200.11,0,驱动电机3正转,Y007,Y007
DO,0,驱动电机4正转,DriveMotor_4,7,192.168.200.11,0,驱动电机4正转,Y008,Y008
DO,0,环形线横移4电机运转,DriveMotor_Run,8,192.168.200.11,0,环形线横移4电机运转,Y009,Y009
DO,0,驱动电机1正转,DriveMotor_Run1,4,192.168.200.11,0,驱动电机1正转,Y005,Y005
DO,0,驱动电机2正转,DriveMotor_Run2,5,192.168.200.11,0,驱动电机2正转,Y006,Y006
DO,0,驱动电机3正转,DriveMotor_Run3,6,192.168.200.11,0,驱动电机3正转,Y007,Y007
DO,0,驱动电机4正转,DriveMotor_Run4,7,192.168.200.11,0,驱动电机4正转,Y008,Y008
DO,0,环形线横移4电机运转,SW4_MotorRun,8,192.168.200.11,0,环形线横移4电机运转,Y009,Y009
DO,0,NG料盘推出气缸前进SOL,NGCylinder_Before,9,192.168.200.11,0,NG料盘推出气缸前进SOL,Y010,Y010
DO,0,NG料盘推出气缸后退SOL,NGCylinder_After,10,192.168.200.11,0,NG料盘推出气缸后退SOL,Y011,Y011
DO,0,环形线横移4定位上升SOL,TopCylinder_UP,11,192.168.200.11,0,环形线横移4定位上升SOL,Y012,Y012
DO,0,环形线横移4定位下降SOL,TopCylinder_Down,12,192.168.200.11,0,环形线横移4定位下降SOL,Y013,Y013
DO,0,环形线横移4定位上升SOL,SW4_LocationCylinder_Up,11,192.168.200.11,0,环形线横移4定位上升SOL,Y012,Y012
DO,0,环形线横移4定位下降SOL,SW4_LocationCylinder_Down,12,192.168.200.11,0,环形线横移4定位下降SOL,Y013,Y013
,0,,,13,192.168.200.11,0,,Y014,Y014
,0,,,14,192.168.200.11,0,,Y015,Y015
,0,,,15,192.168.200.11,0,,Y016,Y016
......
类型,分类编号,说明,名称,属性值,设备名称,默认值,描述,电器定义,代码定义
PRO,0,设备是否处于调试状态(1=调试,0=正常),IsDebug,1,,,,,
\ No newline at end of file
PRO,0,对应的横移模块,SidesWayNum,4,,,,,
......@@ -36,17 +36,17 @@ DI,18,进仓18夹料放松端,ClampCylinder_Tighten,1,192.168.200.46,0,进仓18夹料放松端
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
DI,1000,环形线横移4托盘检测,SW4_SideWay_TrayCheck,5,192.168.200.46,0,环形线横移4托盘检测,X556,X556
DI,1000,环形线横移4料盘检测1,SW4_SideWay_ReelCheck,6,192.168.200.46,0,环形线横移4料盘检测1,X557,X557
DI,1000,环形线横移4顶升上升端,SW4_TopCylinder_Up,7,192.168.200.46,0,环形线横移4顶升上升端,X558,X558
DI,1000,环形线横移4顶升下降端,SW4_TopCylinder_Down,8,192.168.200.46,0,环形线横移4顶升下降端,X559,X559
DI,204,出料4前后气缸前进端,BeforeAfterCylinder_Before,9,192.168.200.46,0,出料4前后气缸前进端,X560,X560
DI,204,出料4前后气缸后退端,BeforeAfterCylinder_After,10,192.168.200.46,0,出料4前后气缸后退端,X561,X561
DI,204,出料4夹料气缸夹紧端,ClampCylinder_Slack,11,192.168.200.46,0,出料4夹料气缸夹紧端,X562,X562
DI,204,出料4夹料气缸放松端,ClampCylinder_Tighten,12,192.168.200.46,0,出料4夹料气缸放松端,X563,X563
DI,204,出料4上下气缸上升端,UpDownCylinder_Up,13,192.168.200.46,0,出料4上下气缸上升端,X564,X564
DI,204,出料4上下气缸下降端,UpDownCylinder_Down,14,192.168.200.46,0,出料4上下气缸下降端,X565,X565
,,,,15,192.168.200.46,0,,X566,X566
,,,,,,,,,
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
......@@ -70,8 +70,8 @@ DO,18,进仓18升降上升SOL,UpDownCylinder_Up,2,192.168.200.46,0,进仓18升降上升SOL,Y
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,1000,环形线横移4顶升上升SOL,SW4_TopCylinder_Up,6,192.168.200.46,0,环形线横移4顶升上升SOL,Y557,Y557
DO,1000,环形线横移4顶升下降SOL,SW4_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
......@@ -80,3 +80,4 @@ DO,204,出料4上下气缸上升SOL,UpDownCylinder_Up,12,192.168.200.46,,出料4上下气缸上
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
,,,,,,,,,
\ No newline at end of file
......@@ -137,7 +137,7 @@ namespace OnlineStore.DeviceLibrary
disChargeLineMap.Add(subType, moveConfig);
allConfigMap.Add(subType, moveConfig);
}
Config.SetIO(1000);
Line = new LineBean(Config, moveECMap, feedingECMap, providingECMap, disChargeLineMap);
LogUtil.info(LOGGER, "加载 完成!");
return true;
......@@ -157,31 +157,7 @@ namespace OnlineStore.DeviceLibrary
return false;
}
/// <summary>
/// 获取阻挡气缸检测类型
/// </summary>
/// <returns></returns>
public static string GetStopIoType(int stopCylinderIOType)
{
string type = IO_Type.Fixture_Check_1;
switch (stopCylinderIOType)
{
case 1:
type = IO_Type.Fixture_Check_1;
break;
case 2:
type = IO_Type.Fixture_Check_2;
break;
case 3:
type = IO_Type.Fixture_Check_3;
break;
case 4:
type = IO_Type.Fixture_Check_4;
break;
}
return type;
}
public static void SaveMoveEquipConfig(MoveEquip_Config config)
{
try
......
......@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary
}
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.isCanProcessLine())
if (!LineManager.Line.LineCanRun())
{
return;
}
......
......@@ -81,9 +81,8 @@ namespace OnlineStore.DeviceLibrary
BusyMoveProcess();
//判断流水线打开了才可以运行
if (MoveInfo.MoveType.Equals(LineMoveType.None))
{
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))
{
if (LineManager.Line.CanProcessLine())
{
// LogUtil.info("StartCheckFixture");
// StartCheckFixture();
......
......@@ -239,13 +239,13 @@ namespace OnlineStore.DeviceLibrary
}
TrayManager.ErrorStoreId = -1;
IOMove(IO_Type.DriveMotor_Run, IO_VALUE.LOW);
//上料气缸下降
CylinderMove(null, IO_Type.InStore_TopCylinder_Up, IO_Type.InStore_TopCylinder_Down);
WriteDrivetMotorRun( IO_VALUE.LOW);
//NG气缸后退
CylinderMove(null, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After);
//阻挡都上升
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
////阻挡都上升
//IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
//IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
//横移轨道下降
SideWayReset();
}
......@@ -323,13 +323,13 @@ namespace OnlineStore.DeviceLibrary
LogUtil.info( Name + ",停止运行,总运行时间:" + span.ToString());
}
public override void Alarm(LineAlarmType alarmType, string alarmDetial, string alarmMsg, LineMoveType storeMoveType)
public override void Alarm(LineAlarmType alarmType )
{
if (this.alarmType.Equals(alarmType))
{
return;
}
SaveAlarmInfo(alarmType, alarmDetial, alarmMsg, storeMoveType);
// SaveAlarmInfo(alarmType, alarmDetial, alarmMsg, storeMoveType);
this.alarmType = alarmType;
if (alarmType == LineAlarmType.SuddenStop)
{
......@@ -366,11 +366,11 @@ namespace OnlineStore.DeviceLibrary
{
return true;
}
//判断是否有操作
if (IOValue(IO_Type.InStore_TrayCheck1).Equals(IO_VALUE.HIGH) || IOValue(IO_Type.InStore_TrayCheck2).Equals(IO_VALUE.HIGH))
{
return true;
}
////判断是否有操作
//if (IOValue(IO_Type.InStore_TrayCheck1).Equals(IO_VALUE.HIGH) || IOValue(IO_Type.InStore_TrayCheck2).Equals(IO_VALUE.HIGH))
//{
// return true;
//}
if (MoveInfo.MoveType.Equals(LineMoveType.None).Equals(false))
{
return true;
......@@ -393,19 +393,27 @@ namespace OnlineStore.DeviceLibrary
return false;
}
private void WriteDrivetMotorRun(IO_VALUE value)
{
IOMove(IO_Type.DriveMotor_Run1, value);
IOMove(IO_Type.DriveMotor_Run2, value);
IOMove(IO_Type.DriveMotor_Run3, value);
IOMove(IO_Type.DriveMotor_Run4, value);
}
private void UpdateSleep(bool isS)
{
if (isS != IsSleep)
{
if (isS)
{
LogUtil.info( Name + "***********更新为休眠状态");
IOMove(IO_Type.DriveMotor_Run, IO_VALUE.LOW);
LogUtil.info(Name + "***********更新为休眠状态");
WriteDrivetMotorRun(IO_VALUE.LOW);
}
else
{
LogUtil.info( Name + "***********更新为工作状态");
IOMove(IO_Type.DriveMotor_Run, IO_VALUE.HIGH);
LogUtil.info(Name + "***********更新为工作状态");
WriteDrivetMotorRun(IO_VALUE.HIGH);
}
}
IsSleep = isS;
......@@ -572,7 +580,7 @@ namespace OnlineStore.DeviceLibrary
//急停按钮和气压检测按钮需要一起使用
if (suddenBtn .Equals( IO_VALUE.LOW))
{
Alarm(LineAlarmType.SuddenStop, "1", WarnMsg, LineMoveType.None);
Alarm(LineAlarmType.SuddenStop );
}
if (fuweiValue.Equals(IO_VALUE.HIGH) && (!fuweiValue.Equals(lastFuwei)))
{
......@@ -618,21 +626,21 @@ namespace OnlineStore.DeviceLibrary
}
Thread.Sleep(1);
}
public string GetINVMsg()
{
if (IOValue(IO_Type.DriveMotor_Run).Equals(IO_VALUE.HIGH))
{
if (IOValue(IO_Type.DriveMotor_INV1).Equals(IO_VALUE.LOW))
{
return " 驱动电机INV1状态异常";
}
else if (IOValue(IO_Type.DriveMotor_INV2).Equals(IO_VALUE.LOW))
{
return " 驱动电机INV2状态异常";
}
}
return "";
}
//public string GetINVMsg()
//{
// if (IOValue(IO_Type.DriveMotor_Run).Equals(IO_VALUE.HIGH))
// {
// if (IOValue(IO_Type.DriveMotor_INV1).Equals(IO_VALUE.LOW))
// {
// return " 驱动电机INV1状态异常";
// }
// else if (IOValue(IO_Type.DriveMotor_INV2).Equals(IO_VALUE.LOW))
// {
// return " 驱动电机INV2状态异常";
// }
// }
// return "";
//}
/// <summary>
/// 定时处理,监听信号,监听IO
/// </summary>
......@@ -724,7 +732,7 @@ namespace OnlineStore.DeviceLibrary
SetWarnMsg("持续"+Config.AirCheckSeconds+"秒未检测到气压信号");
//SendAlarmCode(0, LineAlarm.NoAirCheck);
airValue = IO_VALUE.LOW;
Alarm(LineAlarmType.NoAirCheck, "2", WarnMsg, LineMoveType.None);
Alarm(LineAlarmType.NoAirCheck );
}
}
else
......@@ -954,9 +962,14 @@ namespace OnlineStore.DeviceLibrary
}
MoveInfo.EndMove();
IOMove(IO_Type.DriveMotor_Run, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
WriteDrivetMotorRun( IO_VALUE.LOW);
IOMove(IO_Type.NGCylinder_After, IO_VALUE.LOW);
IOMove(IO_Type.NGCylinder_Before, IO_VALUE.LOW);
IOMove(IO_Type.SW4_MotorRun, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Down, IO_VALUE.LOW);
IOMove(IO_Type.SW4_TopCylinder_Up, IO_VALUE.LOW);
//IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
//IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.LOW);
SideWayStop();
}
......@@ -989,7 +1002,7 @@ namespace OnlineStore.DeviceLibrary
{
PreIsHasProcess = false;
//打开流水线
IOMove(IO_Type.DriveMotor_Run, IO_VALUE.HIGH);
WriteDrivetMotorRun( IO_VALUE.HIGH);
//所有原点重置完成
runStatus = LineRunStatus.Runing;
LogUtil.info( Name + "所有设备重置完成,打开流水线,开始运转!");
......@@ -998,16 +1011,11 @@ namespace OnlineStore.DeviceLibrary
private bool ResetSingleISOk()
{
//气缸需要到位
if (IOValue(IO_Type.SidesWay1_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SidesWay2_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SidesWay3_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SidesWay4_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SidesWay4_TopCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SidesWay4_TopCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SidesWay4_TopCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.SidesWay4_TopCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.InStore_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.InStore_TopCylinder_Up).Equals(IO_VALUE.LOW))
if (IOValue(IO_Type.SW4_TopCylinder_Down).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.NGCylinder_After).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW4_TopCylinder_Up).Equals(IO_VALUE.LOW) &&
IOValue(IO_Type.NGCylinder_Before).Equals(IO_VALUE.LOW)
)
{
return true;
}
......
......@@ -88,9 +88,8 @@ namespace OnlineStore.DeviceLibrary
BusyMoveProcess();
//判断流水线打开了才可以运行
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None))
{
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))
{
if (LineManager.Line.CanProcessLine())
{
// LogUtil.info("StartCheckFixture");
StartCheckFixture();
......
......@@ -453,7 +453,7 @@ namespace OnlineStore.DeviceLibrary
}
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.isCanProcessLine())
if (!LineManager.Line.LineCanRun())
{
return;
}
......
......@@ -79,7 +79,7 @@ namespace OnlineStore.DeviceLibrary
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None))
{
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))
if (LineManager.Line.CanProcessLine())
{
StartCheckFixture();
}
......
......@@ -48,7 +48,7 @@ namespace OnlineStore.DeviceLibrary
}
protected override void CheckFixtureProcess()
{
if (!LineManager.Line.isCanProcessLine())
if (!LineManager.Line.LineCanRun())
{
return;
}
......
......@@ -26,7 +26,13 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
[ConfigProAttribute("IsDebug")]
public int IsDebug { get; set; }
/// <summary>
/// PRO,0,对应的横移模块,SidesWayNum,3,,,,,
/// </summary>
[ConfigProAttribute("SidesWayNum",false)]
public int SidesWayNum { get; set; }
/// <summary>
/// PRO 0 移栽上下运动是否使用伺服 UpDownUseAxis 1
......
......@@ -225,11 +225,11 @@ namespace OnlineStore.LoadCSVLibrary
MustHaveDOList.Add(IO_Type.RunSign_HddLed);
MustHaveDOList.Add(IO_Type.Alarm_HddLed);
MustHaveDOList.Add(IO_Type.Alarm_Buzzer);
MustHaveDOList.Add(IO_Type.DriveMotor_1);
MustHaveDOList.Add(IO_Type.DriveMotor_2);
MustHaveDOList.Add(IO_Type.DriveMotor_3);
MustHaveDOList.Add(IO_Type.DriveMotor_4);
MustHaveDOList.Add(IO_Type.DriveMotor_Run);
MustHaveDOList.Add(IO_Type.DriveMotor_Run1);
MustHaveDOList.Add(IO_Type.DriveMotor_Run2);
MustHaveDOList.Add(IO_Type.DriveMotor_Run3);
MustHaveDOList.Add(IO_Type.DriveMotor_Run4);
MustHaveDOList.Add(IO_Type.SW4_MotorRun);
MustHaveDOList.Add(IO_Type.NGCylinder_Before);
MustHaveDOList.Add(IO_Type.NGCylinder_After);
MustHaveDOList.Add(IO_Type.TopCylinder_UP);
......
......@@ -26,7 +26,12 @@ namespace OnlineStore.LoadCSVLibrary
/// </summary>
[ConfigProAttribute("IsDebug")]
public int IsDebug { get; set; }
/// <summary>
/// PRO,0,对应的横移模块,SidesWayNum,3,,,,,
/// </summary>
[ConfigProAttribute("SidesWayNum", false)]
public int SidesWayNum { get; set; }
}
}
......@@ -78,7 +78,7 @@ namespace OnlineStore.LoadCSVLibrary
this.DType = type;
this.ConfigFilePath = filepath;
}
private int LineSubType = 1000;
public virtual void LoadConfig(List<ConfigBase> configList)
{
DIList = new Dictionary<string, ConfigIO>();
......@@ -131,6 +131,18 @@ namespace OnlineStore.LoadCSVLibrary
}
if (io.SubType > 0)
{
if (io.SubType.Equals(LineSubType))
{
string newType = io.ProName.Replace("SW1_", "SW_").Replace("SW2_", "SW_").Replace("SW3_", "SW_").Replace("SW4_", "SW_");
if (DIList.ContainsKey(newType))
{
LOGGER.Error("配置DI:[" + io.ToString() + "] ProName重复 ");
}
else
{
this.DIList.Add(newType, io);
}
}
if (!SubDIList.ContainsKey(io.SubType))
{
SubDIList.Add(io.SubType, new Dictionary<string, ConfigIO>());
......@@ -171,6 +183,18 @@ namespace OnlineStore.LoadCSVLibrary
}
if (io.SubType > 0)
{
if (io.SubType.Equals(LineSubType))
{
string newType = io.ProName.Replace("SW1_", "SW_").Replace("SW2_", "SW_").Replace("SW3_", "SW_").Replace("SW4_", "SW_");
if (DOList.ContainsKey(newType))
{
LOGGER.Error("配置DO:[" + io.ToString() + "] ProName重复 ");
}
else
{
this.DOList.Add(newType, io);
}
}
if (!SubDOList.ContainsKey(io.SubType))
{
SubDOList.Add(io.SubType, new Dictionary<string, ConfigIO>());
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!