ModBusRTU compile error

Hello

I found error after verify the code per below. Pls help on what possible cause this error?

I try to read data from the device (RS485 interface) with Mega.

Slave address: 254
Register: 113

the error is “READ_INPUT_REGISTERS” was not declared in this scope"

//master mega
#include <SimpleModbusMaster.h>

//////////////////// Port information ///////////////////
#define baud 9600
#define timeout 1000
#define polling 200 // the scan rate
#define retry_count 10

// used to toggle the receive/transmit pin on the driver
#define TxEnablePin 2

// The total amount of available memory on the master to store data
#define TOTAL_NO_OF_REGISTERS 13

// This is the easiest way to create new packets
// Add as many as you want. TOTAL_NO_OF_PACKETS
// is automatically updated.
enum
{
  PACKET1,
  PACKET2,
  PACKET3,
  PACKET4,
  
  TOTAL_NO_OF_PACKETS // leave this last entry
};

// Create an array of Packets to be configured
Packet packets[TOTAL_NO_OF_PACKETS];

// Masters register array
unsigned int regs[TOTAL_NO_OF_REGISTERS];

void setup()

{
  Serial.begin(9600);
  //read data from slave 1 in reg slot 2 and store in regs[0]

 modbus_construct(&packets[PACKET1], 254, READ_INPUT_REGISTERS, 113, 1, 10); //test this line read input 1 to regs0 and 2 to regs1 slave 1 i.e read both reg on slave?
  
  modbus_configure(&Serial1, baud, SERIAL_8N1, timeout, polling, retry_count, TxEnablePin, packets, TOTAL_NO_OF_PACKETS, regs);
 
}

void loop()
{
  modbus_update();
  float Pressure, Pressure1, Pressure2;
  Pressure = regs(10)
  delay(1000);

  Serial.println("CHECK        || OUTPUT");
  Serial.print(packets(PACKET1).requests);
  Serial.print("         || Pressure: ");
  Serial.print(Pressure);
  Serial.println("PSI");
Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"

C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino: In function 'void setup()':

Mod_bus_code:41:43: error: 'READ_INPUT_REGISTERS' was not declared in this scope

  modbus_construct(&packets[PACKET1], 254, READ_INPUT_REGISTERS, 113, 1, 10); //test this line read input 1 to regs0 and 2 to regs1 slave 1 i.e read both reg on slave?

                                           ^~~~~~~~~~~~~~~~~~~~

C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino:41:43: note: suggested alternative: 'READ_HOLDING_REGISTERS'

  modbus_construct(&packets[PACKET1], 254, READ_INPUT_REGISTERS, 113, 1, 10); //test this line read input 1 to regs0 and 2 to regs1 slave 1 i.e read both reg on slave?

                                           ^~~~~~~~~~~~~~~~~~~~

                                           READ_HOLDING_REGISTERS

Mod_bus_code:41:2: error: 'modbus_construct' was not declared in this scope

  modbus_construct(&packets[PACKET1], 254, READ_INPUT_REGISTERS, 113, 1, 10); //test this line read input 1 to regs0 and 2 to regs1 slave 1 i.e read both reg on slave?

  ^~~~~~~~~~~~~~~~

C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino:41:2: note: suggested alternative: 'modbus_configure'

  modbus_construct(&packets[PACKET1], 254, READ_INPUT_REGISTERS, 113, 1, 10); //test this line read input 1 to regs0 and 2 to regs1 slave 1 i.e read both reg on slave?

  ^~~~~~~~~~~~~~~~

  modbus_configure

Mod_bus_code:43:21: error: 'Serial1' was not declared in this scope

   modbus_configure(&Serial1, baud, SERIAL_8N1, timeout, polling, retry_count, TxEnablePin, packets, TOTAL_NO_OF_PACKETS, regs);

                     ^~~~~~~

C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino:43:21: note: suggested alternative: 'Serial'

   modbus_configure(&Serial1, baud, SERIAL_8N1, timeout, polling, retry_count, TxEnablePin, packets, TOTAL_NO_OF_PACKETS, regs);

                     ^~~~~~~

                     Serial

C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino: In function 'void loop()':

Mod_bus_code:49:17: error: too few arguments to function 'unsigned int modbus_update(Packet*)'

   modbus_update();

                 ^

In file included from C:\Users\VDO210919\Desktop\Adruino code\Mod_bus_code\Mod_bus_code.ino:2:0:

C:\Program Files (x86)\Arduino\libraries\SimpleModbusMaster/SimpleModbusMaster.h:142:14: note: declared here

 unsigned int modbus_update(Packet* packets);

              ^~~~~~~~~~~~~

Mod_bus_code:51:21: error: 'regs' cannot be used as a function

   Pressure = regs(10)

                     ^

Mod_bus_code:55:31: error: 'packets' cannot be used as a function

   Serial.print(packets(PACKET1).requests);

                               ^

exit status 1
'READ_INPUT_REGISTERS' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Thanks
Mike

Did you install the library?