使用三菱CNC通信软件FCSB1224W000,通过EZSocke和机床M80通讯,其他获取参数的接口都正常,通过 IEZNcOperation 接口中的Operation_Search也能搜索到程序,但是在使用Operation_Run接口时, 返回值是正常, 但是机床启动不了, 需要按下机床上的循环启动按钮才能启动.哪里不对?
public bool StartProgram(string ncFileName)
{
try
{
ncFileName= CncPath.IdCardPath + ncFileName;
lResult = EZNcCom.Operation_Search( ncFileName, 0, 0);
ErrorCheck("搜索程序");
if (lResult == 0)
{
lResult= EZNcCom.Operation_Run();
ErrorCheck("开始运行程序");
}
}
catch (Exception ex)
{
_logger.LogError("开始运行出错:"+ex.ToString());
}
return true;
}