Commit 2ab07c86 几米阳光

回原点反向都是负方向,料格都是7*8的

1 个父辈 542e90dd
......@@ -131,6 +131,7 @@ namespace ACServoDriveTest
}
private void Form1_Load(object sender, EventArgs e)
{
ACServerManager.IsShowMsg = true;
LogUtil.logBox = this.richTextBox1;
//ACServerManager.richeBox = this.richTextBox1;
formStatus(false);
......
......@@ -20,7 +20,7 @@
<add key="Store_Position_Config" value="\StoreConfig\AC\linePositions.csv" />
<add key="Store_ConfigPath" value="\StoreConfig\AC\StoreConfig.csv" />
<add key="Store_Type" value="RC_AC_SA" />
<add key="Store_CID" value="bjac1" />
<add key="Store_CID" value="ldac1" />
<!--end one store config-->
<!--摄像机名称列表配置,用#分割-->
......
......@@ -485,10 +485,10 @@
//
this.txtHeight.Enabled = false;
this.txtHeight.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtHeight.Location = new System.Drawing.Point(84, 116);
this.txtHeight.Location = new System.Drawing.Point(113, 116);
this.txtHeight.MaxLength = 10;
this.txtHeight.Name = "txtHeight";
this.txtHeight.Size = new System.Drawing.Size(240, 23);
this.txtHeight.Size = new System.Drawing.Size(211, 23);
this.txtHeight.TabIndex = 254;
this.txtHeight.Text = "0";
//
......@@ -499,9 +499,9 @@
this.label9.ImageAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label9.Location = new System.Drawing.Point(15, 119);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(68, 17);
this.label9.Size = new System.Drawing.Size(92, 17);
this.label9.TabIndex = 253;
this.label9.Text = "实时高度:";
this.label9.Text = "实时料盘高度:";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// label8
......
......@@ -13,7 +13,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
public partial class ACServerManager
{
private static bool IsShowMsg = false ;
public static bool IsShowMsg = false ;
private static int SleepMSendons = 100;
private static Dictionary<string, Dictionary<string, int>> ComAddrValue = new Dictionary<string, Dictionary<string, int>>();
......@@ -298,21 +298,21 @@ namespace OnlineStore.DeviceLibrary
//byte[] data = ACCMDManager.GetWriteData(slvAddr, ACCMDManager.CMD_WriteRegisters, ACCMDManager.BlockNo, ACCMDManager.Block_HomeMove1, 2);
//SendData(portName, data);
//旋转轴回正方向,其他轴回负方向
if (portName.Equals(ACStoreManager.store.Config.Middle_Axis.DeviceName))
{
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
LogUtil.info("旋转轴原点返回方向:正方向");
}
else if (portName.Equals(ACStoreManager.store.Config.InOut_Axis.DeviceName))
{
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
LogUtil.info("进出轴原点返回方向:正方向");
}
else
{
//if (portName.Equals(ACStoreManager.store.Config.Middle_Axis.DeviceName))
//{
// UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
// LogUtil.info("旋转轴原点返回方向:正方向");
//}
//else if (portName.Equals(ACStoreManager.store.Config.InOut_Axis.DeviceName))
//{
// UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove0);
// LogUtil.info("进出轴原点返回方向:正方向");
//}
//else
//{
UpdateBlock(portName, slvAddr, ACCMDManager.Block_HomeMove1);
LogUtil.info("升降轴原点返回方向:反方向");
}
LogUtil.info("回原点:反方向");
//}
Thread.Sleep(SleepMSendons);
OpenAndCloseSTB(portName, slvAddr);
}
......
......@@ -119,6 +119,6 @@ PRO,硕科步进电机轴地址(压紧轴),CompressAxis_Slv,1,,,,,,,
,,,,,,,,, ,
PRO,模拟量IO模块的IP地址,AIDevice_IP,192.168.200.11,,,,,,,
PRO,模拟信号1默认高度,AIDI1_DefaultPosition,2500,,,,,,,
PRO,模拟信号2默认高度,AIDI2_DefaultPosition,2500,,,,,,,
PRO,模拟信号3默认高度,AIDI3_DefaultPosition,2500,,,,,,,
PRO,模拟信号2默认高度,AIDI2_DefaultPosition,2510,,,,,,,
PRO,模拟信号3默认高度,AIDI3_DefaultPosition,2520,,,,,,,
,,,,,,,,, ,
位置,优先级,高度,宽度,料仓ID,中轴位置P2,升降轴库位出料前点P5,升降轴库位出料缓冲点P6,升降轴库位入料前点P3,升降轴库位入料缓冲点P4,进出轴库位点取料点P3,压紧轴压紧点P2,压紧轴压紧前点P3,进出轴进料口取料点P2
1#AC1_1_1_1,,120,350,1,-200400,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_1_1_2,,120,350,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_3,,120,350,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_4,,190,350,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_5,,190,350,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
,,,350,,,,,,,,0,0,-109000
1#AC1_2_1_1,,120,350,1,-135095,52800,72800,72800,52800,-106050,0,0,-109000
1#AC1_2_1_2,,120,350,1,-135095,100800,120800,120800,100800,-106050,0,0,-109000
1#AC1_2_1_3,,120,350,1,-135095,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_2_1_4,,120,350,1,-135095,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_2_1_5,,120,350,1,-135095,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_2_2_1,,120,350,1,-135095,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_2_2_2,,120,350,1,-135095,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_2_2_3,,120,350,1,-135095,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_2_2_4,,120,350,1,-135095,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_2_2_5,,120,350,1,-135095,553200,541600,547400,524200,-106050,0,0,-109000
1#AC1_2_3_1,,190,350,1,-135095,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_2_3_2,,120,350,1,-135095,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_2_3_3,,120,350,1,-135095,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_2_3_4,,120,350,1,-135095,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_2_3_5,,120,350,,-135095,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_2_3_6,,120,350,1,-135095,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_2_3_7,,120,350,1,-135095,3600,16400,16400,3600,-106050,0,0,-109000
,,,350,,,,,,,-106050,0,0,-109000
1#AC1_3_1_1,,120,350,1,-69790,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_3_1_2,,120,350,1,-69790,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_3_1_3,,120,350,1,-69790,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_3_1_4,,120,350,1,-69790,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_3_1_5,,120,350,1,-69790,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_3_2_1,,120,350,1,-69790,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_3_2_2,,120,350,1,-69790,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_3_2_3,,120,350,1,-69790,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_3_2_4,,120,350,1,-69790,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_3_2_5,,120,350,1,-69790,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_3_3_1,,190,350,1,-69790,628800,648800,648800,628800,-106050,0,0,-109000
1#AC1_3_3_2,,120,350,1,-69790,676800,696800,696800,676800,-106050,0,0,-109000
1#AC1_3_3_3,,120,350,1,-69790,724800,744800,744800,724800,-106050,0,0,-109000
1#AC1_3_3_4,,120,350,,-69790,,,,,-106050,0,0,-109000
1#AC1_3_3_5,,120,350,1,-69790,52800,72800,72800,52800,-106050,0,0,-109000
1#AC1_3_3_6,,120,350,,-69790,,,,,-106050,0,0,-109000
1#AC1_3_3_7,,120,350,1,-69790,100800,120800,120800,100800,-106050,0,0,-109000
,,,350,,,,,,,-106050,0,0,-109000
1#AC1_4_1_1,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_2,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_3,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_4,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_5,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_1,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_2,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_3,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_4,,120,350,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_5,19,120,350,1,-4485,553200,541600,547400,524200,-106050,0,0,-109000
1#AC1_4_3_1,20,190,350,1,-4485,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_4_3_2,21,120,350,1,-4485,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_4_3_3,22,120,350,1,-4485,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_4_3_4,23,120,350,1,-4485,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_4_3_5,24,120,350,1,-4485,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_4_3_6,25,120,350,1,-4485,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_4_3_7,26,120,350,1,-4485,3600,16400,16400,3600,-106050,0,0,-109000
,,,350,,,,,,,-106050,0,0,-109000
1#AC1_5_1_1,,120,350,1,-331010,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_5_1_2,,120,350,1,-331010,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_5_1_3,,120,350,1,-331010,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_5_1_4,,120,350,1,-331010,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_5_1_5,,120,350,1,-331010,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_5_2_1,,120,350,1,-331010,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_5_2_2,,120,350,1,-331010,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_5_2_3,,120,350,1,-331010,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_5_2_4,,120,350,1,-331010,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_5_2_5,,120,350,1,-331010,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_5_3_1,,190,350,1,-331010,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_5_3_2,,120,350,1,-331010,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_5_3_3,,120,350,1,-331010,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_5_3_4,,120,350,,-331010,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_5_3_5,,120,350,1,-331010,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_5_3_6,,120,350,1,-331010,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_5_3_7,,120,350,1,-331010,3600,16400,16400,3600,-106050,0,0,-109000
,,,350,,,,,,,-106050,0,0,-109000
1#AC1_6_1_1,,120,350,1,-265705,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_6_1_2,,120,350,1,-265705,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_6_1_3,,120,350,1,-265705,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_6_1_4,,120,350,1,-265705,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_6_1_5,,120,350,1,-265705,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_6_2_1,,120,350,1,-265705,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_6_2_2,,120,350,1,-265705,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_6_2_3,,120,350,1,-265705,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_6_2_4,,120,350,1,-265705,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_6_2_5,,120,350,1,-265705,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_6_3_1,,190,350,1,-265705,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_6_3_2,,120,350,1,-265705,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_6_3_3,,120,350,1,-265705,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_6_3_4,,120,350,,-265705,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_6_3_5,,120,350,1,-265705,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_6_3_6,,120,350,1,-265705,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_6_3_7,,120,350,1,-265705,3600,16400,16400,3600,-106050,0,0,-109000
1#AC1_1_1_1,,8,7,1,-200400,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_1_1_2,,8,7,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_3,,8,7,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_4,,8,7,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
1#AC1_1_1_5,,8,7,1,-200400,570000,600000,600000,570000,-106050,0,0,-109000
,,8,7,,,,,,,,0,0,-109000
1#AC1_2_1_1,,8,7,1,-135095,52800,72800,72800,52800,-106050,0,0,-109000
1#AC1_2_1_2,,8,7,1,-135095,100800,120800,120800,100800,-106050,0,0,-109000
1#AC1_2_1_3,,8,7,1,-135095,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_2_1_4,,8,7,1,-135095,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_2_1_5,,8,7,1,-135095,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_2_2_1,,8,7,1,-135095,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_2_2_2,,8,7,1,-135095,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_2_2_3,,8,7,1,-135095,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_2_2_4,,8,7,1,-135095,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_2_2_5,,8,7,1,-135095,553200,541600,547400,524200,-106050,0,0,-109000
1#AC1_2_3_1,,8,7,1,-135095,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_2_3_2,,8,7,1,-135095,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_2_3_3,,8,7,1,-135095,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_2_3_4,,8,7,1,-135095,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_2_3_5,,8,7,,-135095,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_2_3_6,,8,7,1,-135095,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_2_3_7,,8,7,1,-135095,3600,16400,16400,3600,-106050,0,0,-109000
,,8,7,,,,,,,-106050,0,0,-109000
1#AC1_3_1_1,,8,7,1,-69790,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_3_1_2,,8,7,1,-69790,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_3_1_3,,8,7,1,-69790,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_3_1_4,,8,7,1,-69790,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_3_1_5,,8,7,1,-69790,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_3_2_1,,8,7,1,-69790,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_3_2_2,,8,7,1,-69790,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_3_2_3,,8,7,1,-69790,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_3_2_4,,8,7,1,-69790,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_3_2_5,,8,7,1,-69790,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_3_3_1,,8,7,1,-69790,628800,648800,648800,628800,-106050,0,0,-109000
1#AC1_3_3_2,,8,7,1,-69790,676800,696800,696800,676800,-106050,0,0,-109000
1#AC1_3_3_3,,8,7,1,-69790,724800,744800,744800,724800,-106050,0,0,-109000
1#AC1_3_3_4,,8,7,,-69790,,,,,-106050,0,0,-109000
1#AC1_3_3_5,,8,7,1,-69790,52800,72800,72800,52800,-106050,0,0,-109000
1#AC1_3_3_6,,8,7,,-69790,,,,,-106050,0,0,-109000
1#AC1_3_3_7,,8,7,1,-69790,100800,120800,120800,100800,-106050,0,0,-109000
,,,,,,,,,,-106050,0,0,-109000
1#AC1_4_1_1,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_2,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_3,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_4,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_1_5,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_1,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_2,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_3,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_4,,8,7,1,-4485,,,,,-106050,0,0,-109000
1#AC1_4_2_5,19,8,7,1,-4485,553200,541600,547400,524200,-106050,0,0,-109000
1#AC1_4_3_1,20,8,7,1,-4485,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_4_3_2,21,8,7,1,-4485,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_4_3_3,22,8,7,1,-4485,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_4_3_4,23,8,7,1,-4485,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_4_3_5,24,8,7,1,-4485,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_4_3_6,25,8,7,1,-4485,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_4_3_7,26,8,7,1,-4485,3600,16400,16400,3600,-106050,0,0,-109000
,,8,7,,,,,,,-106050,0,0,-109000
1#AC1_5_1_1,,8,7,1,-331010,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_5_1_2,,8,7,1,-331010,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_5_1_3,,8,7,1,-331010,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_5_1_4,,8,7,1,-331010,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_5_1_5,,8,7,1,-331010,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_5_2_1,,8,7,1,-331010,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_5_2_2,,8,7,1,-331010,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_5_2_3,,8,7,1,-331010,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_5_2_4,,8,7,1,-331010,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_5_2_5,,8,7,1,-331010,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_5_3_1,,8,7,1,-331010,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_5_3_2,,8,7,1,-331010,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_5_3_3,,8,7,1,-331010,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_5_3_4,,8,7,,-331010,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_5_3_5,,8,7,1,-331010,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_5_3_6,,8,7,1,-331010,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_5_3_7,,8,7,1,-331010,3600,16400,16400,3600,-106050,0,0,-109000
,,8,7,,,,,,,-106050,0,0,-109000
1#AC1_6_1_1,,8,7,1,-265705,148800,168800,168800,148800,-106050,0,0,-109000
1#AC1_6_1_2,,8,7,1,-265705,196800,216800,216800,196800,-106050,0,0,-109000
1#AC1_6_1_3,,8,7,1,-265705,244800,264800,264800,244800,-106050,0,0,-109000
1#AC1_6_1_4,,8,7,1,-265705,292800,312800,312800,292800,-106050,0,0,-109000
1#AC1_6_1_5,,8,7,1,-265705,340800,360800,360800,340800,-106050,0,0,-109000
1#AC1_6_2_1,,8,7,1,-265705,388800,408800,408800,388800,-106050,0,0,-109000
1#AC1_6_2_2,,8,7,1,-265705,436800,456800,456800,436800,-106050,0,0,-109000
1#AC1_6_2_3,,8,7,1,-265705,484800,504800,504800,484800,-106050,0,0,-109000
1#AC1_6_2_4,,8,7,1,-265705,532800,552800,552800,532800,-106050,0,0,-109000
1#AC1_6_2_5,,8,7,1,-265705,580800,600800,600800,580800,-106050,0,0,-109000
1#AC1_6_3_1,,8,7,1,-265705,423600,436400,436400,423600,-106050,0,0,-109000
1#AC1_6_3_2,,8,7,1,-265705,353600,366400,366400,353600,-106050,0,0,-109000
1#AC1_6_3_3,,8,7,1,-265705,283600,296400,296400,283600,-106050,0,0,-109000
1#AC1_6_3_4,,8,7,,-265705,213600,226400,226400,213600,-106050,0,0,-109000
1#AC1_6_3_5,,8,7,1,-265705,143600,156400,156400,143600,-106050,0,0,-109000
1#AC1_6_3_6,,8,7,1,-265705,73600,86400,86400,73600,-106050,0,0,-109000
1#AC1_6_3_7,,8,7,1,-265705,3600,16400,16400,3600,-106050,0,0,-109000
......@@ -418,7 +418,7 @@ namespace OnlineStore.DeviceLibrary
LogUtil.info(LOGGER, StoreName + "到待机状态,压紧轴回原点,关闭舱门");
if (IsHasCompress_Axis)
{
ShuoKeControls.HomeMove(Config.CompressAxis_Slv, 1);
ShuoKeControls.HomeMove(Config.CompressAxis_Slv, 0);
StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, 1, true));
}
//关闭舱门
......@@ -1316,19 +1316,24 @@ namespace OnlineStore.DeviceLibrary
private string spiltStr = "##";
private void scanTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
int height = GetHeight();
DateTime date = DateTime.Now;
scanTimer.Enabled = false;
KNDIOMove(IO_Type.CameraLight_Power, IO_VALUE.HIGH);
string message = "";
List<string> codeList = HDevelopExport.CameraScan();
//= 1 + 123.4x100.5 - 7x12 = CODE
foreach (string str in codeList)
{
string code = HDevelopExport.SubStrCode(str);
code = "=7X"+height+" =" + code;
message = message + code + spiltStr;
}
KNDIOMove(IO_Type.CameraLight_Power, IO_VALUE.LOW);
double height = GetHeight();
onCodeReceived(message);
}
......@@ -1351,15 +1356,42 @@ namespace OnlineStore.DeviceLibrary
#endregion
#region 高度传感器处理
public double GetHeight()
public int GetHeight()
{
double result = 0;
int result = 0;
double ai1Value = KNDAIManager.ConvertAI(KNDAIManager.GetAIValue(Config.AIDevice_IP,1), Config.AIDI1_DefaultPosition);
double ai1Value = KNDAIManager.ConvertAI(KNDAIManager.GetAIValue(Config.AIDevice_IP, 1), Config.AIDI1_DefaultPosition);
double ai2Value = KNDAIManager.ConvertAI(KNDAIManager.GetAIValue(Config.AIDevice_IP, 2), Config.AIDI2_DefaultPosition);
double ai3Value = KNDAIManager.ConvertAI(KNDAIManager.GetAIValue(Config.AIDevice_IP, 3), Config.AIDI3_DefaultPosition);
result =Math.Round( (ai1Value + ai2Value + ai3Value) / 3,1);
double Value = Math.Round((ai1Value + ai2Value + ai3Value) / 3, 1);
//int radValue =(int) ( Value / 4);
//double mValue = (Value % 4);
//if (mValue > 1)
//{
// result = radValue * 4 + 4;
//}
//else
//{
// result = radValue * 4;
//}
if (Value > 14)
{
result = 16;
}
else if (Value >= 10)
{
result = 12;
}
else if (Value >= 4)
{
result = 8;
}
else
{
result = 0;
}
return result;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!