Commit ac07ba06 LN

过板模式问题修改

1 个父辈 4195e73d
......@@ -309,6 +309,19 @@ namespace TSA_V.DeviceLibrary
}
}
public static void RemoveNode()
{
foreach (Dictionary<int, NodeInfo> map in RotateMap.Values)
{
foreach (NodeInfo nodeid in map.Values)
{
PUSICANControl.RemoveNode(nodeid.NodeId);
}
}
}
private static void XYHomeMove_3()
{
......@@ -415,6 +428,12 @@ namespace TSA_V.DeviceLibrary
if (WorkModeUtil.OnlyGuoBan)
{
if (!IOBase.NoLine)
{
PUSICANControl.InitRNodeConfig(LWidthManager.Line_NodeAddr, true);
Thread.Sleep(10);
}
if (lineOk)
{
ToRunning("当前为过板模式,转盘不需要复位,复位完成,进入运行状态");
......@@ -795,13 +814,19 @@ namespace TSA_V.DeviceLibrary
LogUtil.info("StopMove,停止所有运动");
BottomCylinderDown(false);
CylinderMove(IOManager.StopCylinder_Down, IOManager.StopCylinder_Up, false);
SideCyliderBack(false );
SideCyliderBack(false);
Work.StopWork();
LineStep.EndMove();
IOManager.IOMove(IOManager.Line_FStart, IO_VALUE.LOW);
LogUtil.info("StopMove,开始停止所有旋转轴");
if (WorkModeUtil.OnlyGuoBan)
{
LogUtil.info("StopMove,仅过板模式,不需要停止旋转轴");
}
else
{
foreach (Dictionary<int, NodeInfo> map in RotateMap.Values)
{
foreach (NodeInfo nodeid in map.Values)
......@@ -814,6 +839,7 @@ namespace TSA_V.DeviceLibrary
}
}
}
}
private static void CheckWorkWait()
{
try
......
using System;
using PUSICANLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
......@@ -64,7 +65,9 @@ namespace TSA_V.DeviceLibrary
if (result.Equals(DialogResult.OK))
{
OnlyGuoBan = true;
LogUtil.info(Name + " 选择过板模式,不需要复位料塔");
LogUtil.info(Name + " 选择过板模式,不需要复位料塔 ");
TSAVBean.RemoveNode();
}
else
{
......
......@@ -170,6 +170,7 @@ namespace PUSICANLibrary
int port = 4001;
Ip = ConfigAppSettings.GetValue(Setting_Init.PUSICAN_Ip);
port = ConfigAppSettings.GetIntValue(Setting_Init.PUSICAN_Port);
LogUtil.info("PUSICANControl Open");
return Open(adapterIndex, baudIndex, Ip, port);
}
......@@ -179,6 +180,7 @@ namespace PUSICANLibrary
{
if (ISOpen)
{
LogUtil.info("PUSICANControl Close");
PUSICO_Close();
ISOpen = false;
}
......@@ -269,6 +271,13 @@ namespace PUSICANLibrary
result = PUSICANControl.PUSICO_SetNodeState(nodeid, SLAVE_MANAGEMENT.SLAVE_START);
return SetOutStopType(nodeid);
}
public static bool RemoveNode(uint nodeid)
{
LogUtil.info("RemoveNode " + nodeid);
//删除节点
PUSIResult result = PUSICANControl.PUSICO_RemoveNode(Convert.ToUInt32(nodeid));
return true;
}
public static bool InitRNodeConfig(uint nodeId, bool isLineSlv = false)
{
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!