Instructions:
=============

1. Upload HEX file to your AVR and test it with Hyper Terminal or
any other similar tool, by typing commands as instructed in the
PAS source file. You have 1 second timeout for typing each character,
so it would be best to use copy/paste. If you receive response, proceed.

2. Modbus Poll is a nice tool for direct testing of modbus devices via
serial line (RS232/485) or TCP/IP. Download it from www.wittecom.com.

3. Start Modbus Poll and load workspace MBW configuration file "Avrco
MODBUS Example.mbw". Since you will not have same installation paths as
mine, there will be an error. Never mind. Now load all MBP files one by one.
Now save workspace for next use.

4. Check if you have AVR device with modbus demo attached to COM2. If not,
disconnect, modify it and reconnect. You should now see tags from your AVR
device changing every second.

5. For further testing, change bit JobIsStarted to 1 and watch how tag
ScansPerSecond is changing. You can change it by calling modbus function
number 5 "Change single coil". Just press toolbar icon "05", for "Slave ID"
type 1, for "Address" type 31, and set "Value" to On and press "Send"
button. If everything is ok, you should get message "Response ok". You can
now watch ScansPerSecond changing. Set this coil to 0 and it will stop.