Ejemplo n.º 1
0
void FanucAdapter::reconnect()
{
  if (mConnected)
  {
    cnc_freelibhndl(mFlibhndl);  
    mConnected = false;

    connect();
  }
}
Ejemplo n.º 2
0
void FanucAdapter::disconnect()
{
  if (mConnected)
  {
    printf("Machine has disconnected. Releasing Resources\n");
    cnc_freelibhndl(mFlibhndl);  
    mConnected = false;
    unavailable();
  }
}
void CiSeries::disconnect()
{
	LOGONCE GLogger.Status(StdStringFormat("iSeries::disconnect Using Protocol=%s\n", Globals.FanucProtocol.c_str()));
	_adapter->SetMTCTagValue("Sload","OFF");
	if (_adapter->mConnected)
	{
		//_adapter->mPower.setValue(PowerState::eOFF);
		if(_adapter->mFlibhndl)
			cnc_freelibhndl(_adapter->mFlibhndl);  
		_adapter->mConnected = false;
		_adapter->mFlibhndl=NULL;
	}
}