This commit is contained in:
@@ -106,33 +106,7 @@ namespace CMS_CORE.Osai
|
||||
|
||||
//Find if the NC is in Phase 4
|
||||
if (CNCPhase == 4)
|
||||
{
|
||||
Connected = true;
|
||||
ushort hidden, user;
|
||||
string name,path;
|
||||
CmsError err;
|
||||
uint finder;
|
||||
FILEFINDDATA F;
|
||||
string filePath = OSAI_PlcMessagesPath + @"QVIDEO\\Messaggi_italian.txt";
|
||||
List< string> messages = File.ReadAllLines(filePath).ToList();
|
||||
|
||||
String towrite = "";
|
||||
foreach (string entry in messages)
|
||||
{
|
||||
towrite = towrite + entry + Environment.NewLine;
|
||||
}
|
||||
nReturn = OpenNC.LogFSGetNumDrive(out hidden, out user, out errorClass, out errorNum);
|
||||
nReturn = OpenNC.LogFSGetDriveList(1, out name, out errorClass, out errorNum);
|
||||
//nReturn = OpenNC.LogFSGetDrivePath(name, SECURITYLEVEL.SECURITYLEVELUSERADMIN,out path, out errorClass, out errorNum);
|
||||
//nReturn = OpenNC.LogFSFindFirst(name+"\\OEM\\CMS\\SYS\\TT\\testfile.csv",out F,out finder, out errorClass, out errorNum);
|
||||
this.FILES_WProgram("Test\\OEM\\CMS\\SYS\\TT\\testfile.csv", towrite);
|
||||
|
||||
|
||||
//If there's an error
|
||||
if (errorClass != 0 || errorNum != 0 || nReturn == 0)
|
||||
err= GetNCError(errorClass, errorNum);
|
||||
|
||||
}
|
||||
else
|
||||
Connected = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user