-
Notifications
You must be signed in to change notification settings - Fork 12
/
Globals.h
51 lines (46 loc) · 951 Bytes
/
Globals.h
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
////
//
//
#pragma once
#include <vector>
#include <string>
#include "atlutil.h"
class CGlobals
{
public:
std::string FanucIpAddress;
std::string FanucProtocol;
int FanucPort;
int FocasDelay;
std::string FanucVersion;
std::string szFanucExe;
int AutoVersionDetect;
std::string MachineToolConfig;
//std::vector<std::string> fanucips;
std::vector<std::string> configs;
//std::vector<std::string> fanucports;
bool _bResetAtMidnight;
std::string szServiceName;
std::string szDeviceName;
std::string ProgramLogic;
int nAlarmFlag;
int nAxesLoadFlag;
int nToolingFlag;
CGlobals()
{
#ifdef iSERIESLAN
FanucPort=8193;
FanucProtocol="LAN";
FanucIpAddress="000.000.000.000";
nAlarmFlag=nAxesLoadFlag=nToolingFlag=0;
#else
FanucPort=0;
FanucProtocol="HSSB";
FanucIpAddress="000.000.000.000";
#endif
FocasDelay=1000;
AutoVersionDetect=0;
ProgramLogic="FirstComment";
}
};
__declspec(selectany) CGlobals Globals;