MitLib v6.0.0.3 (VS10)

REL_6 v6.0.0.3
Jenkins 7 years ago
parent 18d39afb49
commit 4b23dd3fdd

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -107,8 +107,8 @@ VS_VERSION_INFO$(VERSION_CONTROL) VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO
#endif
FILEVERSION 6,0,0,2
PRODUCTVERSION 6,0,0,2
FILEVERSION 6,0,0,3
PRODUCTVERSION 6,0,0,3
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x21L
@ -126,15 +126,15 @@ BEGIN
VALUE "Comments", "1. Reduce opening and closing of MitLanguage.mdb"
VALUE "CompanyName", "MIT "
VALUE "FileDescription", "Utility"
VALUE "FileVersion", "6.0.0.2\0"
VALUE "FileVersion", "6.0.0.3\0"
VALUE "InternalName", "Utility"
VALUE "LegalCopyright", "Copyright © 2016"
VALUE "LegalTrademarks", " "
VALUE "OriginalFilename", "Utility.dll"
VALUE "PrivateBuild", " "
VALUE "ProductName", "MIT Utility"
VALUE "ProductVersion", "6.0.0.2\0"
VALUE "SpecialBuild", "mitlib-release-6-2\0"
VALUE "ProductVersion", "6.0.0.3\0"
VALUE "SpecialBuild", "mitlib-release-6-3\0"
END
END
BLOCK "VarFileInfo"

@ -0,0 +1,49 @@
#pragma once
#include <string>
#include <vector>
#ifdef BUILD_MCCTRDLL
#define MCCTRDLLCLASS __declspec(dllexport)
#else
#define MCCTRDLLCLASS __declspec(dllimport)
#endif
#define MC_MESSAGE_SIZE_MAX 512
typedef struct _MC_MSG_GRP
{
int msgType;
int msgSize;
char byteMsg[MC_MESSAGE_SIZE_MAX];
} MC_MSG_GRP;
typedef struct _MSG_DATA
{
int msgType;
std::string strByteMsg;
} MC_DATA;
class MCCTRDLLCLASS CMsgDecode
{
public:
CMsgDecode(void);
~CMsgDecode(void);
bool getMsg(MC_DATA &msg);
void appendPacket(const char *chStream, int size);
void appendPacket(const std::string &strStream);
void appendByte(char chByte) ;
void resetBuf();
std::string createMsg(int nType, const std::string &strMsg);
int ReadInt32(const std::string &strBuf);
std::string WriteInt32(int nData);
private:
void discardPacket(size_t Len);
std::string m_strBuf;
};

@ -71,8 +71,8 @@ VS_VERSION_INFO$(VERSION_CONTROL) VERSIONINFO
#else
VS_VERSION_INFO VERSIONINFO
#endif
FILEVERSION 6,0,0,2
PRODUCTVERSION 6,0,0,2
FILEVERSION 6,0,0,3
PRODUCTVERSION 6,0,0,3
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@ -90,15 +90,15 @@ BEGIN
VALUE "Comments", "1. Decouple GUI"
VALUE "CompanyName", "MIT "
VALUE "FileDescription", "mcctrdll"
VALUE "FileVersion", "6.0.0.2\0"
VALUE "FileVersion", "6.0.0.3\0"
VALUE "InternalName", "mcctrdll"
VALUE "LegalCopyright", "Copyright © 2016"
VALUE "LegalTrademarks", " "
VALUE "OriginalFilename", "mcctrdll.dll"
VALUE "PrivateBuild", " "
VALUE "ProductName", "MIT mcctrdll"
VALUE "ProductVersion", "6.0.0.2\0"
VALUE "SpecialBuild", "mitlib-release-6-2\0"
VALUE "ProductVersion", "6.0.0.3\0"
VALUE "SpecialBuild", "mitlib-release-6-3\0"
END
END
BLOCK "VarFileInfo"

@ -103,7 +103,10 @@ public:
bool IsTaskMode();
bool IsAutoMode();
int GetMode();
virtual void OnStopComplete();
// virtual function to allow application to handle some operation upon Reset()
virtual void OnResetComplete();
//
virtual void OnMcStopped();
//

@ -23,6 +23,9 @@
#include "ConcurrentQueue.h"
#include <vector>
#include "MsgDecode.h"
#include <winsock2.h>
#include <ws2tcpip.h>
@ -42,13 +45,10 @@
#define STRING_MSG_OUTPUT_TRIGGER_LENGTH 13 // (strlen(("OUTPUTTRIGGER"))
#define STRING_MSG_WAFERUPDATE ("WAFERUPDATE")
#define STRING_MSG_WAFERUPDATE_LENGTH 11 // (strlen(("WAFERUPDATE"))
#define STRING_MSG_WAFERSETUP_DIEMOV ("WAFERDIEMOVE")
#define STRING_MSG_WAFERSETUP_DIEMOV_LENGTH 12 // (strlen((("WAFERDIEMOVE"))
#define STRING_REPLY_MAINTENANCEMODE_JOBDONE ("MAINTENANCEMODE_JOBDONE,") // add comma (reply)
#define STRING_REPLY_MAINTENANCEMODE_JOBDONE_LENGTH 24 // (strlen((("MAINTENANCEMODE_JOBDONE,"))
#define MOTOR_CMD_LEN 6 // strlen("MOTOR") = 6
@ -94,8 +94,6 @@
#define WRN_LEN_MAX 160
#define JAM_LEN_MAX (WRN_LEN_MAX)
#define MC_MESSAGE_SIZE_MAX (STR_LEN_MAX)
// max number of motor aram
#define MOT_PARAM_MAX 20
#define STR_ARG_MAX 20
@ -105,15 +103,6 @@
typedef void (*DELEGATE_STRHANDLER)(LPVOID pParam, LPVOID hostDelg);
class MC_MSG_GRP
{
public:
int msgType;
int msgSize;
char msg[MC_MESSAGE_SIZE_MAX];
};
const int DEFAULT_BUFLEN = sizeof(MC_MSG_GRP);
#define DEFAULT_MSG_PORT "7468"
enum MACHINE_MSG_TYPE
{
@ -446,7 +435,12 @@ public:
void SetGenMsg(int iModuleNo, int iMsg);
SOCKET GetClientSock();
__declspec(deprecated("Use SendMachineMsgGrp( int msgType, const std::string &strMsg) instead"))
bool SendMachineMsgGrp(int msgType, int msgSize, char* msg);
//
bool SendMachineMsgGrp( int msgType, const std::string &strMsg);
bool PostRelayedMsg(UINT wp, UINT lp, UINT winMsg);
bool PostAlarmMsg(UINT wp, UINT lp, MACHINE_MSG_TYPE alarmMsgType);
bool PostMaintenanceClearMsg(UINT wp, UINT lp);
@ -828,6 +822,9 @@ private:
bool m_IsCustomizedTowerLight;
int m_current_CustomLightId;
//
};
#endif // !defined __RUNCTRL_H__

Loading…
Cancel
Save