@ -0,0 +1,44 @@
|
||||
e:\wafermark\common\mappingchart\debug\myqgraphicsrectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\myqgraphicslineitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\mappingui.obj
|
||||
e:\wafermark\common\mappingchart\debug\myqgraphicstextitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\mydrawrectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\mydierectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\dieui.obj
|
||||
e:\wafermark\common\mappingchart\debug\myqgraphicsellipseitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\globaldefine.obj
|
||||
e:\wafermark\common\mappingchart\debug\vc140.pdb
|
||||
e:\wafermark\common\mappingchart\debug\moc_mydierectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_myqgraphicsrectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_myqgraphicstextitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_mydrawrectitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_mappingui.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_dieui.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_myqgraphicslineitem.obj
|
||||
e:\wafermark\common\mappingchart\debug\moc_myqgraphicsellipseitem.obj
|
||||
e:\wafermark\code\wafermark\debug\mappingchart.ilk
|
||||
e:\wafermark\code\wafermark\debug\mappingchart.dll
|
||||
e:\wafermark\code\wafermark\debug\mappingchart.pdb
|
||||
e:\wafermark\common\mappingchart\debug\uic\ui_dieui.h
|
||||
e:\wafermark\common\mappingchart\debug\uic\ui_mappingui.h
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_myqgraphicstextitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_myqgraphicsellipseitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_mydrawrectitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_mydierectitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_myqgraphicslineitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_dieui.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_myqgraphicsrectitem.cpp
|
||||
e:\wafermark\common\mappingchart\debug\moc\moc_mappingui.cpp
|
||||
e:\wafermark\code\wafermark\debug\mappingchart.lib
|
||||
e:\wafermark\code\wafermark\debug\mappingchart.exp
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\cl.command.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\cl.read.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\cl.write.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\link.command.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\link.read.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\link.write.1.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\mappingchart.write.1u.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\moc.read.1u.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\moc.write.1u.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\uic.read.1u.tlog
|
||||
e:\wafermark\common\mappingchart\debug\mappingchart.tlog\uic.write.1u.tlog
|
@ -1,12 +1,31 @@
|
||||
MyDrawRectItem.cpp
|
||||
Reading Qt configuration (D:/Qt/Qt5.9.9/5.9.9/msvc2015/bin/qmake)
|
||||
uic DieUI.ui
|
||||
uic MappingUI.ui
|
||||
moc MyQGraphicsTextItem.h
|
||||
moc MyQGraphicsEllipseItem.h
|
||||
moc MyDrawRectItem.h
|
||||
moc MyDieRectItem.h
|
||||
moc MyQGraphicsLineItem.h
|
||||
moc DieUI.h
|
||||
moc MyQGraphicsRectItem.h
|
||||
moc MappingUI.h
|
||||
DieUI.cpp
|
||||
GlobalDefine.cpp
|
||||
MappingUI.cpp
|
||||
MyDieRectItem.cpp
|
||||
MyDrawRectItem.cpp
|
||||
MyQGraphicsEllipseItem.cpp
|
||||
MyQGraphicsLineItem.cpp
|
||||
moc_DieUI.cpp
|
||||
moc_MappingUI.cpp
|
||||
moc_MyDieRectItem.cpp
|
||||
moc_MyDrawRectItem.cpp
|
||||
MyQGraphicsRectItem.cpp
|
||||
MyQGraphicsTextItem.cpp
|
||||
moc_MyQGraphicsTextItem.cpp
|
||||
moc_MyQGraphicsEllipseItem.cpp
|
||||
moc_MyDrawRectItem.cpp
|
||||
moc_MyDieRectItem.cpp
|
||||
moc_MyQGraphicsLineItem.cpp
|
||||
moc_DieUI.cpp
|
||||
moc_MyQGraphicsRectItem.cpp
|
||||
moc_MyQGraphicsTextItem.cpp
|
||||
moc_MappingUI.cpp
|
||||
正在创建库 E:\WaferMark\code\WaferMark\Debug\MappingChart.lib 和对象 E:\WaferMark\code\WaferMark\Debug\MappingChart.exp
|
||||
MappingChart.vcxproj -> E:\WaferMark\code\WaferMark\Debug\MappingChart.dll
|
||||
MappingChart.vcxproj -> E:\WaferMark\code\WaferMark\Debug\MappingChart.pdb (Full PDB)
|
||||
|
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
@ -0,0 +1,135 @@
|
||||
#include "CommMgr.h"
|
||||
|
||||
CCommMgr::CCommMgr(void)
|
||||
{
|
||||
|
||||
}
|
||||
CCommMgr::~CCommMgr(void)
|
||||
{
|
||||
|
||||
}
|
||||
//打开com 口(dwBaudRate 是波特率)
|
||||
bool CCommMgr::Open(DWORD dwPort, DWORD dwBaudRate)
|
||||
{
|
||||
if(IsOpen())//打开状态直接返回
|
||||
return true;
|
||||
|
||||
//CString str = "Function :[CCommPortMgr::Open][打开com 口]";
|
||||
////gLogMgr->WriteDebugLog(str);
|
||||
|
||||
//CString str1;
|
||||
//str1.Format("%ld",dwPort);
|
||||
|
||||
//str = "Result :[com 口<"+str1+">打开]";
|
||||
bool ret;
|
||||
if(m_Com.Open(dwPort,dwBaudRate) == false)
|
||||
{
|
||||
//gLogMgr->WriteDebugLog(str,_LOG_ERROR);
|
||||
ret = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
//str += "[OK]";
|
||||
//gLogMgr->WriteDebugLog(str);
|
||||
ret = true;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
//打开串口, 使用类似"9600, 8, n, 1"的设置字符串设置串口
|
||||
bool CCommMgr::Open(DWORD dwPort, char *szSetStr)
|
||||
{
|
||||
// CString str = "Function :[CCommPortMgr::Open][打开com 口]";
|
||||
//gLogMgr->WriteDebugLog(str);
|
||||
|
||||
//CString str1;
|
||||
//str1.Format("%ld",dwPort);
|
||||
|
||||
//str = "Result :[com 口<"+str1+">打开]";
|
||||
bool ret;
|
||||
|
||||
int len = MultiByteToWideChar(CP_ACP, 0, szSetStr, -1, NULL, 0); // 计算所需缓冲区大小
|
||||
wchar_t* wStr = new wchar_t[len]; // 分配宽字符缓冲区
|
||||
MultiByteToWideChar(CP_ACP, 0, szSetStr, -1, wStr, len); // 转换
|
||||
LPCTSTR lpctstr = wStr;
|
||||
|
||||
if(m_Com.Open(dwPort, lpctstr) == false)
|
||||
{
|
||||
//gLogMgr->WriteDebugLog(str,_LOG_ERROR);
|
||||
ret = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
//str += "[OK]";
|
||||
//gLogMgr->WriteDebugLog(str);
|
||||
ret = true;
|
||||
}
|
||||
delete[] wStr;
|
||||
return ret;
|
||||
}
|
||||
void CCommMgr::SetWorkMode(BOOL bSleep, DWORD dwOutTime)
|
||||
{
|
||||
m_Com.SetWorkMode(bSleep, dwOutTime);
|
||||
}
|
||||
//绑定串口消息的窗口ID
|
||||
void CCommMgr::SetWnd(HWND hWnd)
|
||||
{
|
||||
//CString str = "Function :[SetWnd][绑定串口消息的响应窗口ID]";
|
||||
//gLogMgr->WriteDebugLog(str);
|
||||
|
||||
//m_Com.SetWnd(hWnd);
|
||||
}
|
||||
|
||||
void CCommMgr::SetNotify(std::function<void()> _pfn)
|
||||
{
|
||||
//CString str = "Function :[SetWnd][绑定串口消息的响应函数ID]";
|
||||
m_Com.SetDataCallBack(_pfn);
|
||||
}
|
||||
//读取串口消息到szBuffer
|
||||
DWORD CCommMgr::ReadBuf(char *szBuffer,DWORD dwBufferLength)
|
||||
{
|
||||
return m_Com.Read(szBuffer,dwBufferLength);
|
||||
}
|
||||
|
||||
std::string CCommMgr::ReadStr()
|
||||
{
|
||||
const int dwBufferLength = 500;
|
||||
char szBuffer[dwBufferLength];
|
||||
memset(szBuffer,'0',dwBufferLength);
|
||||
|
||||
m_Com.ReadString(szBuffer,dwBufferLength);
|
||||
//转化为CString
|
||||
//CString str = szBuffer;
|
||||
|
||||
std::string str(szBuffer);
|
||||
return str;
|
||||
}
|
||||
|
||||
int CCommMgr::Read(LPVOID Buffer, DWORD dwBufferLength)
|
||||
{
|
||||
return m_Com.Read(Buffer,dwBufferLength);
|
||||
}
|
||||
//发送消息到串口
|
||||
DWORD CCommMgr::Write(const char *szBuffer)
|
||||
{
|
||||
return m_Com.Write(szBuffer, strlen(szBuffer));
|
||||
}
|
||||
|
||||
DWORD CCommMgr::WriteBuf(LPVOID Buffer, DWORD dwBufferLength)
|
||||
{
|
||||
return m_Com.Write(Buffer,dwBufferLength);
|
||||
}
|
||||
//关闭串口
|
||||
void CCommMgr::Close()
|
||||
{
|
||||
m_Com.Close();
|
||||
}
|
||||
void CCommMgr::SetBufferSize(DWORD dwInputSize, DWORD dwOutputSize)
|
||||
{
|
||||
//m_Com.SetBufferSize(dwInputSize,dwOutputSize);
|
||||
}
|
||||
int CCommMgr::GetInputSize()
|
||||
{
|
||||
//gLogMgr->WriteDebugLog("BufferSize","",m_Com.GetInputSize());
|
||||
return 0;
|
||||
}
|
||||
|
@ -0,0 +1,26 @@
|
||||
#pragma once
|
||||
#include <functional>
|
||||
#include "ComComm.h"
|
||||
//对第三方com 再封装一次
|
||||
class CCommMgr
|
||||
{
|
||||
public:
|
||||
CCommMgr(void);
|
||||
~CCommMgr(void);
|
||||
bool Open(DWORD dwPort, DWORD dwBaudRate = 9600);
|
||||
bool Open(DWORD dwPort, char *szSetStr);
|
||||
void Close();
|
||||
void SetWnd(HWND hWnd);
|
||||
void SetNotify(std::function<void()> _pfn);
|
||||
void SetWorkMode(BOOL bSleep, DWORD dwOutTime);
|
||||
DWORD Write(const char *szBuffer);
|
||||
DWORD WriteBuf(LPVOID Buffer, DWORD dwBufferLength);
|
||||
std::string ReadStr();
|
||||
DWORD ReadBuf(char *szBuffer,DWORD dwBufferLength);
|
||||
int Read(LPVOID Buffer, DWORD dwBufferLength);
|
||||
bool IsOpen(){return m_Com.IsOpen();};
|
||||
void SetBufferSize(DWORD dwInputSize, DWORD dwOutputSize);
|
||||
int GetInputSize();
|
||||
private:
|
||||
ComComm m_Com;//PLC 串口管理对象
|
||||
};
|
@ -0,0 +1,5 @@
|
||||
1.激光参数
|
||||
2.振镜参数
|
||||
3.焦距
|
||||
4.晶圆属性
|
||||
5.mark具体位置
|
@ -0,0 +1 @@
|
||||
$1IW
|
After Width: | Height: | Size: 348 KiB |
After Width: | Height: | Size: 239 KiB |
After Width: | Height: | Size: 591 KiB |
After Width: | Height: | Size: 311 KiB |
After Width: | Height: | Size: 376 KiB |
After Width: | Height: | Size: 265 KiB |
After Width: | Height: | Size: 380 KiB |
After Width: | Height: | Size: 539 KiB |