MODBUS RTU Slave on P1

Ray's project on the P2 has stirred up a lot of interest and at least one person asked about P1 code. I translated my P2 code to P1 and fleshed it out a bit. The latest version has simple demos of all basic MODBUS functions.
My experiment uses a FLiP on my P1 Eval Board with an RS-485 adapter and four button inputs. The code has a software RTC that can be read and updated via holding registers. The LEDs on P26 and P27 can be modified via coils commands.
It seems to be working -- if you run into problems let me know.
In the screencap the MODBUS software requests the RTC registers.
V0.1.2 adds reading an input register (the firmware version #).
Comments
Thanks Jon!