1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include "stdafx.h"
#include "CServoUtilsTool.h"
#include "Common.h"
 
 
namespace SERVO {
    CServoUtilsTool::CServoUtilsTool()
    {
 
    }
 
    CServoUtilsTool::~CServoUtilsTool()
    {
 
    }
 
    std::string CServoUtilsTool::getEqUnitName(int eqid, int unit)
    {
        /*
#define EQ_ID_LOADPORT1            1
#define EQ_ID_LOADPORT2            2
#define EQ_ID_LOADPORT3            3
#define EQ_ID_LOADPORT4            4
#define EQ_ID_ARM_TRAY1            5
#define EQ_ID_ARM_TRAY2            6
#define EQ_ID_ALIGNER            7
#define EQ_ID_FLIPER            8
#define EQ_ID_VACUUMBAKE        9
#define EQ_ID_Bonder1            10
#define EQ_ID_Bonder2            11
#define EQ_ID_BAKE_COOLING        12
#define EQ_ID_MEASUREMENT        13
#define EQ_ID_EFEM                100
#define EQ_ID_ARM                101
#define EQ_ID_OPERATOR_REMOVE    102
*/
        char szBuffer[256];
        if (eqid == EQ_ID_LOADPORT1
            || eqid == EQ_ID_LOADPORT2
            || eqid == EQ_ID_LOADPORT3
            || eqid == EQ_ID_LOADPORT4
            ) {
            sprintf_s(szBuffer, 256, "Port%d(Slot%d)", unit, eqid - EQ_ID_LOADPORT1 + 1);
            return std::string(szBuffer);
        }
 
        if (eqid == EQ_ID_ALIGNER) {
            return "Aligner";
        }
 
        if (eqid == EQ_ID_FLIPER) {
            return "Fliper";
        }
 
        if (eqid == EQ_ID_VACUUMBAKE) {
            if (unit == 0) return "ºæ¿¾AÇ»";
            if (unit == 1) return "ºæ¿¾BÇ»";
        }
 
        if (eqid == EQ_ID_VACUUMBAKE) {
            if (unit == 0) return "ºæ¿¾AÇ»";
            if (unit == 1) return "ºæ¿¾BÇ»";
        }
 
        if (eqid == EQ_ID_Bonder1) {
            return "Bonder1";
        }
        
        if (eqid == EQ_ID_Bonder2) {
            return "Bonder2";
        }
 
        if (eqid == EQ_ID_BAKE_COOLING) {
 
            if (unit == 0) return "ºóºæ¿¾AÇ»";
            if (unit == 1) return "ÀäÈ´A";
            if (unit == 0) return "ºóºæ¿¾BÇ»";
            if (unit == 1) return "ÀäÈ´B";
        }
 
        if (eqid == EQ_ID_MEASUREMENT) {
            return "AOI";
        }
 
        return "";
    }
}