Skip to content

Commit 48fb62b

Browse files
committed
initial commit
1 parent 392d0c5 commit 48fb62b

30 files changed

+10249
-0
lines changed

ChangeLog

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
1.1
2+
df1d
3+
- Changed acknowledge timeout to be a configurable parameter via
4+
the configuration file.
5+
- Added support for embedded responses.
6+
- Fixed UTF-8 conversion while parsing configuration file.
7+
- Fixed memory leaks during XML configuration parsing.
8+
9+
lib
10+
- Fixed some memory leaks.
11+
- Additional command testing.
12+
- Fixed various return values for connection management functions.
13+
- Added support for string elements.
14+
- Added support for status elements.
15+
- Added checks for calling functions with NULL connection pointers.
16+
- Created more descriptive function return values.
17+
- Fixed a slight ACK delay in rare cases where a reply is received
18+
before the ACK for the originating command.
19+
- More correct reporting of error codes received in replies.
20+
- Modified the transaction number initialization so multiple processes
21+
sending the same command in quick succession get different tranaction
22+
number values.
23+
- Added SetTimeout command.
24+
- Added SetNAKs command.
25+
- Added SetENQs command.
26+
- Added ReadModifyWrite command.
27+
- Changed various function arguments and structure members to size_t
28+
where appropriate.
29+
30+
1.0
31+
- Initial Release

Makefile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
CC = cc
2+
CFLAGS = -Wall -O2
3+
4+
all : common
5+
cd lib && make
6+
cd df1d && make
7+
8+
common : buf.o byteorder.o
9+
10+
buf.o : buf.c common.h
11+
$(CC) $(CFLAGS) -c buf.c
12+
13+
byteorder.o : byteorder.c common.h
14+
$(CC) $(CFLAGS) -c byteorder.c
15+
16+
install :
17+
cd lib && make install
18+
cd df1d && make install
19+
20+
clean :
21+
rm -f *.o *~
22+
cd lib && make clean
23+
cd df1d && make clean

README

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
Allen Bradley PCCC protocol library and DF1 link layer service.
2+
3+
4+
!!!WARNING!!!
5+
=============
6+
These programs are capable of modifying data within programmable logic
7+
controllers, which can result in equipment damage, personal injury and/or
8+
loss of life. I assume no responsibility for the use of these programs.
9+
10+
11+
12+
Requirements
13+
============
14+
15+
libxml2(for df1d only): http:\\www.xmlsoft.org
16+
doxygen(only for libpccc HTML API docs): http:\\www.doxygen.org
17+
18+
19+
Installation
20+
============
21+
22+
make
23+
become root
24+
make install
25+
26+
This will install the libpccc shared library in /usr/local/lib and the df1d
27+
executable in /usr/local/bin. The pccc.h header file will be installed in
28+
/usr/local/include. These defaults can be changed by editing the Makefiles
29+
as desired.
30+
31+
No configuration file is installed for df1d. Modify the example, df1d.cfg.xml,
32+
and place it where you like.
33+
34+
35+
Using libpccc
36+
=============
37+
Programs will need to #include <pccc.h> and add -lpccc when linking.
38+
39+
40+
41+
libpccc documentation
42+
=====================
43+
HTML documentation is available for the libpccc API.
44+
It can be made as follows:
45+
46+
cd lib
47+
make docs
48+
49+
Point your browser to index.html in the lib/docs directory.
50+
51+
52+
53+
Starting the DF1 link layer service
54+
===================================
55+
df1d <config file>
56+
57+
Running df1d without any configuration file specified will print out detailed
58+
usage.
59+
60+
61+
62+
63+
Contact information
64+
===================
65+
Please report any bugs, comments, suggestions, etc to [email protected].

0 commit comments

Comments
 (0)