#!/bin/sh

#make sure the modbus test port is defined
if [ "$MOD_SER_PORT" = "" ]; then
    echo Error: MOD_SER_PORT variable is not set
    echo Error: example: export MOD_SER_PORT=ttyS0
    exit
fi

./wr_reg $MOD_SER_PORT 0x102 0x0020
./wr_reg $MOD_SER_PORT 0x202 0x0020
./wr_reg $MOD_SER_PORT 0x302 0x0020


