-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathREADME.MTConnect
More file actions
46 lines (33 loc) · 1.04 KB
/
README.MTConnect
File metadata and controls
46 lines (33 loc) · 1.04 KB
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
Building an MTConnect Interface to Go Motion
--------------------------------------------
1. Check out the MTConnect source code from the Git repository:
cd /usr/local
mkdir mtconnect
cd mtconnect
git clone git://github.com/mtconnect/adapter.git
git clone git://github.com/mtconnect/cppagent.git
2. Extend the MTConnect code with a makefile to build an adapter library:
cd /usr/local/mtconnect/adapter/src
cat > Makefile
libmtconnect.a : device_datum.o string_buffer.o client.o server.o adapter.o service.o logger.o condition.o
ar r $@ $+
ranlib $@
%.o : %.cpp
g++ -c -g $< -o $@
install :
- \mkdir ../../include
- \cp -f *.hpp ../../include
- \mkdir ../../lib
- \cp -f libmtconnect.a ../../lib
^D
make
make install
3. Build the stock MTConnect C++ agent:
cd /usr/local/mtconnect/cppagent/agent
cmake .
make
This will build "agent", the generic MTConnect agent.
4. Edit and compile Go Motion's MTConnect adapter:
cd /usr/local/proj/gomotion
make
This will build Go Motion, and the adapter "go_adapter".