An implementation of the basic functionality of the Modbus TCP and UDP based protocol using PHP.