void LinearSlide :: HomeHigh () { double MPosition = Motor -> GetPosition (); if ( Limit != NULL ) { switch ( Limit -> GetBounding () ) { case IMotionLimit :: kLimitBounding_High: case IMotionLimit :: kLimitBounding_HighLow: Motor -> SetPosition ( MPosition ); Targeter.Set ( MPosition ); Targeter.SetSpeed ( HomingSpeed ); break; default: break; } } else { TargetPosition ( MPosition ); SetLowLimit ( MPosition ); } State = kMode_HomeHigh; };
void CObjectEntry::Parse_XML_Document(XML_PARSER* pXmlParser) { if(pXmlParser) { //*Attributes* //Index if(pXmlParser->Is_Having_Attribute(_T("Index"))) { SetIndex(pXmlParser->Get_Attribute_Value()); } //SubIndex if(pXmlParser->Is_Having_Attribute(_T("SubIndex"))) { SetSubIndex(pXmlParser->Get_Attribute_Value()); } //ParameterName if(pXmlParser->Is_Having_Attribute(_T("ParameterName"))) { SetParameterName(pXmlParser->Get_Attribute_Value()); } //ObjectType if(pXmlParser->Is_Having_Attribute(_T("ObjectType"))) { SetObjectType(pXmlParser->Get_Attribute_Value()); } //DataType if(pXmlParser->Is_Having_Attribute(_T("DataType"))) { SetDataType(pXmlParser->Get_Attribute_Value()); } //AccessType if(pXmlParser->Is_Having_Attribute(_T("AccessType"))) { SetAccessType(pXmlParser->Get_Attribute_Value()); } //Default if(pXmlParser->Is_Having_Attribute(_T("DefaultValue"))) { SetDefaultValue(pXmlParser->Get_Attribute_Value()); } //LowLimit if(pXmlParser->Is_Having_Attribute(_T("LowLimit"))) { SetLowLimit(pXmlParser->Get_Attribute_Value()); } //HighLimit if(pXmlParser->Is_Having_Attribute(_T("HighLimit"))) { SetHighLimit(pXmlParser->Get_Attribute_Value()); } //PDOMapping if(pXmlParser->Is_Having_Attribute(_T("PDOMapping"))) { SetPDOMapping(pXmlParser->Get_Attribute_Value()); } //ObjFlags if(pXmlParser->Is_Having_Attribute(_T("ObjFlags"))) { SetObjFlags(pXmlParser->Get_Attribute_Value()); } } }