#!/bin/bash


#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=com1
    exit
fi

./wr_reg $MOD_SER_PORT 0x303 1


