void _CYCLIC run() { int counter; counter = 0; UsrHP1.in1=RunHP1.in1; RunHP1.in1.Con1_Fr = Fset_2; //питатель RunHP1.in1.Con2_Fr = Fset_0; //тихоходный вал дробилки(адрес 2) RunHP1.in1.Con3_Fr = Fset_1; // быстроходный вал дробилки(адрес 3) RunHP1.in1.Con4_Fr = Fset_5; //мельница RunHP1.in1.Con5_Fr = Fset_4; // фулерный насос RunHP1.in1.Con6_Fr = Fset_3; // аспирация if (step<=6) { counter++; if (counter<=1) { Write_Fr(); } else if (counter <= 3) { Read_R(); } else { counter =0; step++; } } else step=1; }
char* CIni::GetLPCSTR(CString strEntry, LPCSTR strSection, LPCSTR strDefault) { // evtl Section neu setzen if (strSection != NULL) m_strSection = strSection; CString temp; if(!m_bFromRegistry) { if (strDefault == NULL) temp = Read(m_strFileName,m_strSection,strEntry,CString()); else temp = Read(m_strFileName,m_strSection,strEntry,strDefault); } else { if (strDefault == NULL) temp = Read_R(m_strAppName,m_strSection,strEntry,CString()); else temp = Read_R(m_strAppName,m_strSection,strEntry,strDefault); } return (char*)memcpy(m_chBuffer,(LPCTSTR)temp,temp.GetLength()+1);// '+1' damit die Null am Ende mit kopiert wird }