LAPTOP-SNT8I5JK\Boounion
2025-04-25 a8ce9111f9f907afd921609d1828744cead9bd52
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
88
89
90
91
92
93
94
#include "stdafx.h"
#include "CEFEM.h"
 
 
namespace SERVO {
    CEFEM::CEFEM() : CEquipment()
    {
 
    }
 
    CEFEM::~CEFEM()
    {
 
    }
 
    const char* CEFEM::getClassName()
    {
        static char* pszName = "CEFEM";
        return pszName;
    }
 
    void CEFEM::init()
    {
        CEquipment::init();
    }
 
    void CEFEM::term()
    {
        CEquipment::term();
    }
 
    // ±ØÐëҪʵÏÖµÄÐ麯Êý£¬Ôڴ˳õʼ»¯PinÁбí
    void CEFEM::initPins()
    {
        // ¼ÓÈëPin³õʼ»¯´úÂë
        LOGI("<CEFEM>initPins");
    }
 
    int CEFEM::onStepEvent(CStep* pStep, int code)
    {
        int nRet = CEquipment::onStepEvent(pStep, code);
        if (nRet > 0) return nRet;
 
        if (code == STEP_EVENT_READDATA) {
            if (isCassetteTransferStateStep(pStep)) {
                SERVO::CEqCassetteTransferStateStep* pEqCassetteStep = (SERVO::CEqCassetteTransferStateStep*)pStep;
                int id = pEqCassetteStep->getID();
                if (id == STEP_ID_PORT1_CASSETTIE_EMPTY) {
 
                }
/*
    #define STEP_ID_PORT1_CASSETTIE_LOAD_READY        0x420
    #define STEP_ID_PORT1_CASSETTIE_LOADED            0x428
    #define STEP_ID_PORT1_CASSETTIE_INUSE            0x430
    #define STEP_ID_PORT1_CASSETTIE_UNLOAD_READY    0x438
    #define STEP_ID_PORT1_CASSETTIE_BLOCKED            0x440
*/
            }
        }
 
 
        return 0;
    }
 
    void CEFEM::onTimer(UINT nTimerid)
    {
        CEquipment::onTimer(nTimerid);
    }
 
    void CEFEM::serialize(CArchive& ar)
    {
        CEquipment::serialize(ar);
    }
 
    void CEFEM::getAttributeVector(CAttributeVector& attrubutes)
    {
        __super::getAttributeVector(attrubutes);
    }
 
    int CEFEM::recvIntent(CPin* pPin, CIntent* pIntent)
    {
        return __super::recvIntent(pPin, pIntent);
    }
 
    BOOL CEFEM::glassWillArrive(CGlass* pGlass)
    {
        BOOL bRet = __super::glassWillArrive(pGlass);
        if (!bRet) {
            return FALSE;
        }
 
        return m_glassList.empty();
    }
}