📄 buildnotes.txt
字号:
rem ================================================================================
rem
rem 1.00aA 05 Feb 03 TvR Created the file
rem 2.00eH 04 Dec 03 HLK Updated buildnotes to explain building of OBJ file
rem
rem ==============================================================================*/
These buildnotes explain how to build a modbus client/server for use on the
Protocessor (from FieldServer Technologies)
Tools Required:
1. Microchip MCC18 compiler.
2. ICD2 debugger (or other device to program your PIC)
3. Protocessor hardware.
Make sure that the compiler (mcc18) is installed to one of the following locations:
1. C:\Program Files\Microchip c18\bin\mcc18.exe
2. C:\Program Files\Mcc18\bin\mcc18.exe
3. C:\Programs\mcc18\bin\mcc18.exe
You will need the following files:
application.c \drivers\modbus\
config.c \api\config\
config2.c \api\config\
led.c \api\led\
main.c \app\main\
modbus_client.c \drivers\modbus\
modbus_server.c \drivers\modbus\
sioapi.c \api\sio\
timer.c \api\timer\
uartintc.c \api\sio\
config.h \api\config\
daapi.h \include\
fst.h \include\
led.h \include\
ProtoMod.h \drivers\modbus\
sioapi.h \include\
timer.h \include\
uartintc.h \api\sio\
k.bat \
Creating a server or a client:
To create a server go to ProtoMod.h and make the first #define in the file look like this
#define OPTION_SERVER
for a client make it look like this:
#define OPTION_CLIENT
The points to poll or be polled are stored in config2.c.
If you will be using the k.bat (make) batch file to compile you will need to place these files
in the specified directories.
Procedure for using k.bat:
1. Substitute a driver letter to the path where you have placed all the directories above.
(e.g. subst m: d:\Protocessor )
2. Go to the M: drive.
3. Type K, your source will compile.
4. A file modbus.hex will be generated. Download this to your protocessor using MPLAB or
whatever programmer you have decided to use.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -